Re: [gdal-dev] how to hide warning information?

2012-03-18 Thread Frank Warmerdam
On 12-03-18 10:49 PM, chenliang wang wrote: > hello: > Is there any option to hide warning when I load some raster by means of > gdal functions? Thanks! Chen, When using the GDAL C/C++ API you can call: CPLPushErrorHandler( CPLQuietErrorHandler ); You may find it helpful to read: http://ww

Re: [gdal-dev] How to overlay a raster with shapes to calc statistics?

2012-03-18 Thread Petteri Packalen
Andreas, Look at: http://starspan.projects.atlas.ca.gov Starspan is a command line tool that uses GDAL/OGR lib. This functionality is also available in many GIS packages with the name 'zonal statistics'. -- Best regards, Petteri Packalen ***

Re: [gdal-dev] how to hide warning information?

2012-03-18 Thread Zoltan Szecsei
On 2012/03/19 07:49, chenliang wang wrote: > hello: > Is there any option to hide warning when I load some raster by means of > gdal functions? Thanks! > > chen liang wang > ___ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/m

[gdal-dev] how to hide warning information?

2012-03-18 Thread chenliang wang
hello: Is there any option to hide warning when I load some raster by means of gdal functions? Thanks! chen liang wang ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] requesting tiles without using xml file (c++)

2012-03-18 Thread Frank Warmerdam
On 12-03-17 11:22 PM, len0001 wrote: i have been able to request a specific tile with my xml through gdal lib; but is there is another way of requesting the tiles from a web server without using xml ? i wanna do it directly through my c++ code; i will appreciate any directions or examples; h

[gdal-dev] Re: gdal_translate: invalid tile byte error

2012-03-18 Thread Frank Warmerdam
On 12-03-18 06:29 AM, Andrea Peri wrote: Effectively I use the libtiff 3.9. Now I update to libtiff 4.0.1. Recompile gdal and retry. Update also the call following your suggestions. and using the gdaladdo to produce the overviews. My new batch is a set of calls like this two: gdal_translate -o

[gdal-dev] Seg-Y : CDP-X/Y and Group-X/Y

2012-03-18 Thread Glen Atkins
Hi there, When getting the properties from the Trace Header of the Seg-Y file the CDP X (181-184) and CDP Y (185-188) are not included. This first appeared to be because the CDP X and CDP Y were being used to set the OGRPoint X and Y but these values are coming from GROUP_ X (81-84) and GROUP_Y

[gdal-dev] Re: Mapinfo driver does not recognise certain datums properly

2012-03-18 Thread Tamas Szekeres
Hi Devs, Got no answer, so I call up this thread for discussion again. In fact the approach of identifying datums by the mapinfo driver (by using the WKT name) is quite fragile causing problems for me and for others in the past as well, for example with the issues described in: http://trac.osgeo.

[gdal-dev] How to overlay a raster with shapes to calc statistics?

2012-03-18 Thread Andreas H.
Hi all, I have a GeoTiff file covering the whole globe at approx. 1km resolution. And I have a shapefile containing say 20 of polygons. For each of the 20 polygons, I want to know the mean value of the raster data falling inside the polygon, and possibly more statistics (max, min, medeian, std, .

[gdal-dev] gdal_translate: invalid tile byte error

2012-03-18 Thread Andrea Peri
>Effectively I use the libtiff 3.9. >Now I update to libtiff 4.0.1. >Recompile gdal and retry. >Update also the call following your suggestions. > >and using the gdaladdo to produce the overviews. > >My new batch is a set of calls like this two: > >gdal_translate -ot Byte -of GTiff -b 1 -b 2 -b 3 -