osgeonepal / geotile

GeoTile is the python library for tiling the geographic raster data (eg. Tiff etc)
https://geotile.readthedocs.io
MIT License
74 stars 9 forks source link

Small filename issue when generating tiles #12

Closed CornelisseMichael closed 1 year ago

CornelisseMichael commented 1 year ago

I run into a small issue regarding the file names when I generate tiles like below: gt.generate_tiles(r'../output/', tile_x=256, tile_y=256, stride_x=128, stride_y=128)

The resulting file names will have an additional dot appended to them like: /output_tiles_file/tile_7424_6144..tif'

Expected behavior just add a single dot for the file format extension itself: /output_tiles_file/tile_7424_6144.tif'

peanutbutter-memory commented 1 year ago

Encountered the same.

Use the optional image_format="tif" in generate tiles to omit the double dot for file extension.

iamtekson commented 1 year ago

Hi, I just solved this bug. The bug will be solved in next version. Thank you for your information.

iamtekson commented 1 year ago

Solved here: https://github.com/iamtekson/geotile/releases/tag/v0.3.2

peanutbutter-memory commented 1 year ago

Awesome :)

peanutbutter-memory commented 1 year ago

Great tool by the way!