[gdal-dev] python SetCacheMax, GetCacheMax

2012-05-11 Thread Gregory, Matthew
Hi all, Probably a newbie question. I'm trying to investigate some read rates without the benefit of caching from Python. When I do this: from osgeo import gdal gdal.SetCacheMax(0) print gdal.GetCacheMax() I always get the environment variable value GDAL_CACHE_MAX instead of 0. Throug

RE: [gdal-dev] OGC services requests in VRT?

2012-05-11 Thread Ethan Alpert
Interesting thanks! I always for get to try just convering to VRT and seeing what GDAL does. -e -Original Message- From: Paolo Corti [mailto:pco...@gmail.com] Sent: Thursday, May 10, 2012 7:00 AM To: Ethan Alpert Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] OGC services requests

Re: [gdal-dev] Force bounding box test for spatial filter in OGR

2012-05-11 Thread Frank Warmerdam
Martin, I have no objection to your adding a configuration option to control whether this test in ogrlayer.cpp should be done: */ /* Fallback to full intersect test (using GEOS) if we still*/ /* don't know for

[gdal-dev] Force bounding box test for spatial filter in OGR

2012-05-11 Thread Martin Dobias
Hi all, when fetching features in OGR with an active spatial filter, first a bounding box test is used to resolve simple cases and then exact intersection with GEOS is done to determine whether the feature is really within the filter (if compiled with GEOS). I would like to have an option to force

[gdal-dev] python gdal.gdal.ReprojectImage not masking NoData in signed byte geotifs

2012-05-11 Thread Colin Talbert
Hello all, I'm running into an issue reprojecting a single band geotif in python. My code works fine on pixel types other than signed byte. What I'm seeing is that the interpolation that includes a nodata pixel uses the literal nodata value (-128 is the nodata but I think this is being inter

[gdal-dev] bug: OGRDataSource, Postgis driver

2012-05-11 Thread Rui L. Pires
Hello everyone, this is a bug report concerning OGRDataSource, for the Postgis driver, using GDAL 1.9.0. TestCapability _reports_ being able to create and delete layers, irrespective of the data source being opened with the update flag activated in the driver registrar. A (postgis) data source o

Re: [gdal-dev] Batch Processing for gdal_calc.py

2012-05-11 Thread Chaitanya kumar CH
Swapnil, I'm not sure which shell script you are running, but in bash, you need to have semicolons somewhere there. The -scale option does a linear stretch of the pixel values. So, if you have values ranging from 0 to 250, "-scale 0 250 0 25" will do the job you are trying to do. Please add the

Re: [gdal-dev] Creating a VRT dataset from overviews in C++

2012-05-11 Thread Dmitry Baryshnikov
11.05.2012 11:50, Thomas Sevaldrud написал: 10.05.2012 23:14, Thomas Sevaldrud написал: Hi Dmitry, and thanks for your answer! Hi Thomas! I was actually looking at this patch earlier today, but I also wanted to see if I could solve it without patching. Will this patc

Re: Re: [gdal-dev] Creating a VRT dataset from overviews in C++

2012-05-11 Thread Thomas Sevaldrud
> > 10.05.2012 23:14, Thomas Sevaldrud написал: > > Hi Dmitry, and thanks for your answer! > > Hi Thomas! > > > I was actually looking at this patch earlier today, but I also wanted to > see if I could solve it without patching. > > Will this patch be included in the official source? > > My patch