Re: [gdal-dev] zonal statistics with gdal

2012-06-23 Thread jdmorgan
Anssim, Petteri and others, Thanks for you great feedback on this topic. Cheers, Derek On 6/20/2012 5:26 AM, anssi wrote: If you first rasterize your shapefile to the extent of your raster, you can compute some basic stats and/or full histogram for your polygons using Open Foris Geospatial Too

Re: [gdal-dev] gdaltransform with gcps from file

2012-06-23 Thread Brent Fraser
Jan, Dunno about using the parameter in gdaltransform, but while using gdal_translate, I have used the "--optfile" option and put multiple "-gcp" commands in it. Perhaps it would work with gdaltransform too... Best Regards, Brent Fraser On 6/23/2012 6:23 AM, Jan Hartmann wrote: Silly que

[gdal-dev] gdaltransform with gcps from file

2012-06-23 Thread Jan Hartmann
Silly question, perhaps. I use gdaltransform with gcps given at the command line. According to the documentation, gcps can also be put into the parameter to the program. What is the format of that file? Most of the time I get an error message like "file fomat not supported". With four numbers

[gdal-dev] DXF files: Is it possible to handle layer names? (I get only “entities”)

2012-06-23 Thread Mac Wind
I'm using Python to extract the layers of a DXF file and convert them into SHP. I began with: import ogr, os, sys driver = ogr.GetDriverByName('DXF') datasource = driver.Open('test1.dxf', 0) numberLayers = datasource.GetLayerCount() for i in range(0, numberLayers): la