Package for working with geographic raster tiles
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file geotile-1.0.3.tar.gz
.
File metadata
- Download URL: geotile-1.0.3.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20a6776aecdc3252b9cdc68d1cb4c4543b8bd6ff08fface6bf8efba375a4cb0f |
|
MD5 | 338a88eb0adfe7e5628725d6597f77fa |
|
BLAKE2b-256 | e4ca36b7856a6186a655d0154fd7b8a19971841e3469cbaa60c817a472e0b34d |
Provenance
File details
Details for the file geotile-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: geotile-1.0.3-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d756c662c6a0ce1b10282e8a5e12ac195a8e43595f49bb58bd37d912afc7f193 |
|
MD5 | 5f7bd0bfbb8c6a5ea6897719be70a819 |
|
BLAKE2b-256 | 7a9c77ead8a60c4c8823434681da29d3a58c1c96979eab9c883fd8f121841ba2 |