[![Downloads](https://pepy.tech/badge/geotile)](https://pepy.tech/project/geotile)
[![PyPI version](https://badge.fury.io/py/geotile.svg)](https://pypi.org/project/geotile/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/iamtekson/geotile/blob/master/LICENSE)
# 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,
```shell
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/
```shell
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()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/iamtekson/geotile",
"name": "geotile",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "geotile,geotiling,geoTiler,geospatial,geospatial data,geospatial raster tiles,raster tiles,raster,tiles,tile,tiling python,python",
"author": "Tek Kshetri",
"author_email": "iamtekson@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d4/f9/52a217111df73cc9ad34081692b221d4d67c24bd15532bd124833f323b50/geotile-1.1.0.tar.gz",
"platform": null,
"description": "[![Downloads](https://pepy.tech/badge/geotile)](https://pepy.tech/project/geotile)\n[![PyPI version](https://badge.fury.io/py/geotile.svg)](https://pypi.org/project/geotile/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/iamtekson/geotile/blob/master/LICENSE)\n\n# GeoTile\n\nGeoTile 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.\n\n## Full documentation\n\nThe complete documentation of this package is available here: https://geotile.readthedocs.io/en/latest/\n\n## Installation\n\nThe easy installation of `geotile` is by using `conda` environment,\n\n```shell\nconda install -c conda-forge geotile\n```\n\nIf you want to install it for `pip`, check the documentation here: https://geotile.readthedocs.io/en/latest/pages/install.html\n\n## Some basic examples\n\nPlease check the complete documentation here: https://geotile.readthedocs.io/en/latest/\n\n```shell\nfrom geotile import GeoTile\ngt = GeoTile(r\"path/to/raster/data.tif\")\n\n# to generate the tiles of raster\ngt.generate_tiles(r'/path/to/output/folder', tile_x=256, tile_y=256, stride_x=256, stride_y=256)\n\n# to generate the tiles of selected bands only\ngt.generate_tiles(r'/path/to/output/folder', bands=[4, 3, 2], tile_x=256, tile_y=256, stride_x=256, stride_y=256)\n\n# to merge the tiles\nfrom geotile import mosaic\nmosaic('/path/to/input/folder/tiles', output_file='path/to/output/file.tif')\n\n# to generate the raster mask from shapefile\ngt.mask('/path/to/shapefile.shp', '/path/to/output/file.tif')\n\n# to rasterize the shapefile based on column value,\ngt.rasterization(input_vector='path/to/shp.shp', out_path='path/to/output.tif' value_col=\"value_col\")\n\n# to close the file\ngt.close()\n```\n\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Package for working with geographic raster tiles",
"version": "1.1.0",
"project_urls": {
"Homepage": "https://github.com/iamtekson/geotile"
},
"split_keywords": [
"geotile",
"geotiling",
"geotiler",
"geospatial",
"geospatial data",
"geospatial raster tiles",
"raster tiles",
"raster",
"tiles",
"tile",
"tiling python",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "34832b9ea813fa27a8e2ce0351b53b16c185a28fd58bbfd50a83cee554a1962f",
"md5": "100ed626cb95d14c0823a934a097d32f",
"sha256": "6f920b2cda5a5086a02364edf2a0aab9689800d76f0dd2d3fc08e8aeba6d92e5"
},
"downloads": -1,
"filename": "geotile-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "100ed626cb95d14c0823a934a097d32f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 12078,
"upload_time": "2023-12-21T22:02:38",
"upload_time_iso_8601": "2023-12-21T22:02:38.370129Z",
"url": "https://files.pythonhosted.org/packages/34/83/2b9ea813fa27a8e2ce0351b53b16c185a28fd58bbfd50a83cee554a1962f/geotile-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d4f952a217111df73cc9ad34081692b221d4d67c24bd15532bd124833f323b50",
"md5": "e8e05e7d780006196dbb4897d23e1f0a",
"sha256": "98d08dbda7011a624fa93ea43e97001c801985dccf04f495b98e1a7c7f144979"
},
"downloads": -1,
"filename": "geotile-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "e8e05e7d780006196dbb4897d23e1f0a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 12299,
"upload_time": "2023-12-21T22:02:39",
"upload_time_iso_8601": "2023-12-21T22:02:39.657503Z",
"url": "https://files.pythonhosted.org/packages/d4/f9/52a217111df73cc9ad34081692b221d4d67c24bd15532bd124833f323b50/geotile-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-21 22:02:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "iamtekson",
"github_project": "geotile",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "geotile"
}