Re: [gdal-dev] Updating shapefile fields name with ogr2ogr

2012-06-22 Thread Hermann Peifer
On 2012-06-20 19:50, Even Rouault wrote: I know this is going to sound a bit counter-intutive at first... ogrinfo opens datasources in read/write mode by default... Just out of curiosity: why does an ...info tool use read/write mode by default? One would expect that it only needs to *read*

[gdal-dev] Problem exporting from postgis: no valid pixels found

2012-06-22 Thread Tom van Tilburg
Hi, It seems since my last update of postgis (2.0.0) and gdal(1.9.1) I can't get exports from postgis rasters anymore. This is what happens: 1) Uploaded my raster file with raster2pgsql 2) Check existence of raster data in postgis with: SELECT (ST_SummaryStats(rast,1)).* FROM

Re: [gdal-dev] Updating shapefile fields name with ogr2ogr

2012-06-22 Thread Eli Adam
I've also found this very confusing and unexpected. Once I did figure it out it has been very useful. Could ogrinfo CHEMIN.shp -sql ALTER TABLE CHEMIN RENAME COLUMN prec_alti TO foo or similar be added as an example to http://gdal.org/ogrinfo.html and perhaps also as a 'note about ogrinfo with