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()

TO DO

  • Vectorize raster data

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-0.2.4.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

geotile-0.2.4-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: geotile-0.2.4.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for geotile-0.2.4.tar.gz
Algorithm Hash digest
SHA256 611993ea3969550f812fa2415c735e1e4fdfb1b872b080e25a66ad9ca61d6600
MD5 cdb2435ce716cb7d36fc8da26b16f88c
BLAKE2b-256 b82390e453a55b3a2db6eaddb7982a7ece13635b5557681ae5c737bd4b54f9cb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: geotile-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for geotile-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e253a7ac824eb2d13f6b9024f0ba91e78f742a9bf6382aac30fc86c5ec0c40e3
MD5 758856360bac2cf7b3ab3039e735566a
BLAKE2b-256 af060cad4801483997548fba19d9d4bef6c51c18b96c468a04e4194f75b41bd0

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