geotrellis / python-geotrellis

Python utilities around working with GeoTrellis data.
Other
13 stars 5 forks source link

Have flag to write constant tile if tile is single value when converting raster to tiled arg. #5

Open lossyrob opened 10 years ago

blairdgeo commented 10 years ago

Thanks Rob. I will dig into this.

lossyrob commented 10 years ago

@geobdawg nice. This is the function that should check if the values of the raster are all the same: https://github.com/geotrellis/python-geotrellis/blob/master/gtloader/arg.py#L35

If so it should write out a constant arg for that tile: e.g. https://github.com/geotrellis/geotrellis/blob/master/raster-test/data/data/constant.json