py-gdalogr-cookbook
py-gdalogr-cookbook copied to clipboard
A cookbook full of recipes for using the Python GDAL/OGR bindings.
Hi, can you share the code you used to generate the final image for the "Create least cost path" section in Raster layers? showing the slope AND the path in...
There are small typos in: - raster_layers.rst - vector_layers.rst Fixes: - Should read `utilities` rather than `utilties`. - Should read `specified` rather than `specfied`. - Should read `polygon` rather than...
...and move in/out files nearer to top as parameters because that's just better practice (all the pieces to edit to make this fully working in a different environment are in...
So I found a little typo that took me quite a while to fix regarding this recipe for getting centroids for features in an input layer, as seen in [this](http://pcjericks.github.io/py-gdalogr-cookbook/vector_layers.html#save-centroids-of-input-layer-to-an-output-layer)...
Still an essential python reference, the cookbook snippets would be easier to test and run if the code was compatible with python 2 or 3. attn: @pcjericks @jericks ### Changes...
Hi, I'am a newbie programmer so I use the cookbook on a regular basis as it is easier to follow than the GDAL python API documentation. I imagine differences I...
The Calculate zonal statistics exemple in the page have a little problem. The variable "feat" of the funtion "zonal_stats" is being overwritten by the line feat = lyr.GetNextFeature(). Please, correct...
The Calculate zonal statistics exemple in the page have a little problem. The variable "feat" of the funtion "zonal_stats" is being overwritten by the line feat = lyr.GetNextFeature(). Please, correct...
Is there any way to calculate the volume of the DEM?