[gdal-dev] spatial filter problem

2012-02-10 Thread Mohammed Rashad
OGRLinearRing oSpatialFilter; oSpatialFilter.setNumPoints(5); oSpatialFilter.setPoint(0, rect.minx, rect.miny); oSpatialFilter.setPoint(1, rect.maxx, rect.miny); oSpatialFilter.setPoint(2, rect.maxx, rect.maxy); oSpatialFilter.setPoint(3, rect.minx, rect.maxy);

[gdal-dev] is there a way to concatenate the band in raster file name

2012-02-10 Thread Paolo Corti
Hi all Using the netCDF driver, I have noticed that there is a nice syntax for getting the dataset and the single raster in the dataset. For example, in my case, for accessing the dataset: $ gdalinfo NETCDF:/my/path/data/mynetcdf_dataset.nc and for accessing the single raster: $

Re: [gdal-dev] is there a way to concatenate the band in raster file name

2012-02-10 Thread Etienne Tourigny
Paolo, This feature would have to be driver-specific, so adding it to netcdf would not benefit other drivers (in fact not all of them support this). Some time ago there was a discussion about standardizing the driver:filename syntax , it seems to have stalled. It could be a nice addition to have

[gdal-dev] Possible statistics computation issue

2012-02-10 Thread Alex Speder
Greetings all, I recently attempted to update a Java project from GDAL 1.8.1 to GDAL 1.9.  However, I noticed the statistics being computed on my output rasters were off.  After doing some digging, it seems that something changed in the HFA driver's handling of minimum and maximum values. IN GDAL

Re: [gdal-dev] Possible statistics computation issue

2012-02-10 Thread Even Rouault
Selon Alex Speder alex.spe...@gmail.com: Greetings all, I recently attempted to update a Java project from GDAL 1.8.1 to GDAL 1.9.  However, I noticed the statistics being computed on my output rasters were off.  After doing some digging, it seems that something changed in the HFA driver's

Re: [gdal-dev] gdalenhance -config file how you do linear interpolation of the colors?

2012-02-10 Thread Nikolaos Hatzopoulos
How you define the min max from this documentation: http://www.gdal.org/gdal_vrttut.html --Nikos On Thu, Feb 9, 2012 at 10:59 PM, Chaitanya kumar CH chaitanya...@gmail.comwrote: Nikolaos, The gdalenhance utility is not really recommended. I don't know the config file format. GDAL's VRT

Re: [gdal-dev] spatial filter problem

2012-02-10 Thread Even Rouault
Selon Mohammed Rashad mohammedrasha...@gmail.com: OGRLinearRing oSpatialFilter; oSpatialFilter.setNumPoints(5); oSpatialFilter.setPoint(0, rect.minx, rect.miny); oSpatialFilter.setPoint(1, rect.maxx, rect.miny); oSpatialFilter.setPoint(2, rect.maxx, rect.maxy);

Re: [gdal-dev] PostGIS SRID conundrum

2012-02-10 Thread pcreso
ESRI does not use a SRID, it uses a text string that needs complex parsing to work. If ESRI supported EPSG codes it would be easier... The spatial_ref_sys table contains entries for all EPSG recognised projections. If you have a reasonable case to have a projection inluded by EPSG, submit a

RE: [gdal-dev] PostGIS SRID conundrum

2012-02-10 Thread Martin Chapman
Brent, Thank you very much for the advice. What I resorted to (at least for the present) is: 1.I try to get the geogcs or projcs (if projected) authority code from OGR. If successful, I try to find a match in the spatial_ref_sys table. If I find a match then I compare the wkt,