[gdal-dev] Re: Weird gdal2tiles performance inconsistency

2012-02-08 Thread mladen-g
Hi Vadim, Just wanted to say thanks for suggesting the tilers-tools package. Over the past few weeks I've done some testing with it, and while it has some minor quirks, I think it's overall a better solution for me. I do still see the strange performance drop in low zoomlevels, but since

[gdal-dev] Re: Can RasterIO write one band at a time or must I combine my separate R,G,B buffers first?

2012-02-08 Thread Ethan
Thanks Kyle that worked perfectly, much obliged. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Can-RasterIO-write-one-band-at-a-time-or-must-I-combine-my-separate-R-G-B-buffers-first-tp4376337p4376431.html Sent from the GDAL - Dev mailing list archive at Nabble.com. ___

Re: [gdal-dev] Can RasterIO write one band at a time or must I combine my separate R,G,B buffers first?

2012-02-08 Thread Kyle Shannon
Ethan, you can fetch single bands using GDALRasterBand* poBand = GetRasterBand(1) and use poBand->RasterIO(...). See docs here: http://gdal.org/classGDALRasterBand.html /** * * Kyle Shannon * ksshan...@gmail.com * */ On Wed, Feb 8, 2012 at 08:39, Ethan wrote: > I am writing a C++ prog

[gdal-dev] Can RasterIO write one band at a time or must I combine my separate R,G,B buffers first?

2012-02-08 Thread Ethan
I am writing a C++ program that reads in 3 separate single band geotiffs, applies some math to them, then outputs a single geotiff files that contains the data from those 3 files in the bands 1,2 and 3. I've so far set up the code to follow the methods from the gdal api tutorial and have read in t

[gdal-dev] Detect if File Geodatabase has a schema lock

2012-02-08 Thread Pouliot, Christopher (DNR)
Hi All, I am writing to an ESRI File Geodatabase and need to test to see if a layer has a schema lock on it (if it is loaded in ArcMap). I test with layer.TestCapability("SequentialWrite") and it always returns true yet when I attempt to write a feature to that layer it chokes saying that the

Re: [gdal-dev] Geolocation Arrays ??

2012-02-08 Thread Anton Korosov
Hi Etienne! probably yes. At least that's what I got from an answer from Brian some time ago: > > EOS_SWATH has 2 geolocation arrays, you might try the -geoloc switch to > > gdalwarp, otherwise it creates a handfull of gcps from the arrays, if > > you get a error about points failing to tran

Re: [gdal-dev] Geolocation Arrays ??

2012-02-08 Thread Etienne Tourigny
Thanks Anton, The latitudes of this dataset span from 26.77687 to 33.82318 , so nowhere near the poles! I tried your suggestion, using the extents from the hdf metadata: :Northernmost\ Latitude = 33.82318f ; :Southernmost\ Latitude = 26.77687f ; :E

Re: [gdal-dev] Does GDAL API for Python use and in VRT?

2012-02-08 Thread Even Rouault
Selon Anton Korosov : > Hello everybody! > > I'm trying to read values from a VRT file in Python. When I modify > or it seem not to make any effect. > > I have a simple VRT of a Landsat7 file (below). It has neither scale nor > offset. I launch the given script twice: > 1st time to test the val

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Alessandro Candini
Yeah Paolo, your solution is probably the easiest way to reach my goal, I did't thought at it... Thanks! On Wed, Feb 8, 2012 at 11:38 AM, Alessandro Candini wrote: You are right: I have put ogr2ogr.py file inside /usr/bin and... user@office ~ $ ogr2ogr.py ERROR: Python bindings of GDAL 1.8.

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Paolo Corti
On Wed, Feb 8, 2012 at 11:38 AM, Alessandro Candini wrote: > You are right: I have put ogr2ogr.py file inside /usr/bin and... > > user@office ~ $ ogr2ogr.py > ERROR: Python bindings of GDAL 1.8.0 or later required > > The problem is that I cannot update my GDAL version at the moment, it will > mes

[gdal-dev] Does GDAL API for Python use and in VRT?

2012-02-08 Thread Anton Korosov
Hello everybody! I'm trying to read values from a VRT file in Python. When I modify or it seem not to make any effect. I have a simple VRT of a Landsat7 file (below). It has neither scale nor offset. I launch the given script twice: 1st time to test the value of scale and the value from a

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Alessandro Candini
You are right: I have put ogr2ogr.py file inside /usr/bin and... user@office ~ $ ogr2ogr.py ERROR: Python bindings of GDAL 1.8.0 or later required The problem is that I cannot update my GDAL version at the moment, it will mess up all my dependencies and so on... Is there an alternative? Mayb

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Even Rouault
Selon Alessandro Candini : > Thanks. > > But is it already included in GDAL distribution? > > I have version 1.7.2 on my system and I did not found this file in the > whole system... It is relatively new (perhaps 1.8. don't remember). And anyways it is in the sample category that is generally not

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Alessandro Candini
Thanks. But is it already included in GDAL distribution? I have version 1.7.2 on my system and I did not found this file in the whole system... Maybe I can include that file into my python shared lib direcory such as /usr/share/pyshared/ Does it exist an analogue tool in python? Yes, see

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Even Rouault
> Does it exist an analogue tool in python? Yes, see http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/ogr2ogr.py > Or should I open the file and launch several manipulation functions in > order to achieve the same result? > > Thanks in advance. > _

[gdal-dev] ogr2ogr in python

2012-02-08 Thread Alessandro Candini
Hi list. I have to perform the following command: ogr2ogr -t_srs EPSG:900913 output.shp input.shp but inside a python script. So I have included the OGR library with import ogr but I do not know what are the commands in python that substitute the ogr2ogr tool. Does it exist an analogue t

Re: [gdal-dev] Geolocation Arrays ??

2012-02-08 Thread Anton Korosov
Hello Etienne! I also got such error when trying to process MODIS L1B images taken near the pole. Try to set some limited extent with the -te option for gdalwarp. It helped me, at least. Best regards! Anton On 02/07/2012 10:22 PM, Etienne Tourigny wrote: Even, Frank, thanks for your answer

Re: [gdal-dev] PGeo driver fails to open .mdb

2012-02-08 Thread Even Rouault
Selon Nicolas Garel : > Hi All, > Gdal 1.9 fails to open Esri Personal geodatabase file (.mdb) in some cases. > The new PGeo driver looks into the header of the file for the GDB_GeomColumns > table (http://trac.osgeo.org/gdal/changeset/21550) and cannot find it due to > (I assume) the limited size