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

Uploaded Source

Built Distribution

geotile-0.3.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for geotile-0.3.0.tar.gz
Algorithm Hash digest
SHA256 39e9382ede2eedcd21c26ebbbd81d94d3fd7c6f4d9bc8718c9987f5b20497b24
MD5 016a07962f318f9b6b803e05d58eb4a8
BLAKE2b-256 59b70ea49c171e1f508c5d56276958599c446d90143fa91ef8f1c1648211fab9

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for geotile-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e52e63dc012b2909a7a7b690919857fe81a23ea7fd46f959270b8dd101a5d574
MD5 4e26f0c28105da9925d69178d7ca8e27
BLAKE2b-256 754e452db4f5bf6dfc24d5512d7bc10a6d5757084e04d2b04cac2977d1b1f49a

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