Skip to main content

Package for working with geographic raster tiles

Project description

Downloads PyPI version License: MIT

GeoTile

GeoTile is an open-source python library for creating and manipulating the tiles of the raster dataset. The package will be very useful for managing the raster tiles which can be used for deep learning traing dataset.

Full documentation

The complete documentation of this package is available here: https://geotile.readthedocs.io/en/latest/

Installation

The easy installation of geotile is by using conda environment,

conda install -c conda-forge geotile

If you want to install it for pip, check the documentation here: https://geotile.readthedocs.io/en/latest/pages/install.html

Some basic examples

Please check the complete documentation here: https://geotile.readthedocs.io/en/latest/

from geotile import GeoTile
gt = GeoTile(r"path/to/raster/data.tif")

# to generate the tiles of raster
gt.generate_tiles(r'/path/to/output/folder', tile_x=256, tile_y=256, stride_x=256, stride_y=256)

# to generate the tiles of selected bands only
gt.generate_tiles(r'/path/to/output/folder', bands=[4, 3, 2], tile_x=256, tile_y=256, stride_x=256, stride_y=256)

# to merge the tiles
from geotile import mosaic
mosaic('/path/to/input/folder/tiles', output_file='path/to/output/file.tif')

# to generate the raster mask from shapefile
gt.mask('/path/to/shapefile.shp', '/path/to/output/file.tif')

# to rasterize the shapefile based on column value,
gt.rasterization(input_vector='path/to/shp.shp', out_path='path/to/output.tif' value_col="value_col")

# to close the file
gt.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geotile-1.0.7.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

geotile-1.0.7-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file geotile-1.0.7.tar.gz.

File metadata

  • Download URL: geotile-1.0.7.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for geotile-1.0.7.tar.gz
Algorithm Hash digest
SHA256 92ffa3f2560d2f2f3445ff7db8ce3e9b298bc1968e2ea6a19a04613ec8288ebc
MD5 bbc4f72a92bd2b5d9eeef173d459b0d8
BLAKE2b-256 80a9418fbecc396d38fae6e6e1dc6b37c8b0b3ff7d398b025b516311c7f3eca7

See more details on using hashes here.

Provenance

File details

Details for the file geotile-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: geotile-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for geotile-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 075cea36331b974601fd09cb5a4471096fbacbabb30750914a1f0bc4be5ebfb0
MD5 5bef41953365e826c4bb3244c2421c74
BLAKE2b-256 8aa1ccce9849a444f42d4f0703a2f99c577591d23c077cd68d87c1c203438d2d

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page