Re: [gdal-dev] Questions about SQL cursors in GDAL driver

2009-07-10 Thread Frank Warmerdam
Jorge Arévalo wrote: So, clearly, I have a mistake. Think in a table with tiles of 100x100 px. We have 30 tiles. When I create RasterBands, their block size will be 100x100. So, IReadBlock(0, 0, bufffer) indicates the block going from (0, 0) to (100, 100). Does it mean that the block from (0, 0)

Re: [gdal-dev] Questions about SQL cursors in GDAL driver

2009-07-10 Thread Jorge Arévalo
On Sat, Jul 11, 2009 at 1:32 AM, Tamas Szekeres wrote: > > > 2009/7/11 Frank Warmerdam >> >> Jorge Arévalo wrote: >>> >>> Hello, >>> >>> 2009/7/10 Tamas Szekeres : Jorge, I'm a bit hesitant to think using a server cursor would be the best approach here. Could you expl

Re: [gdal-dev] Questions about SQL cursors in GDAL driver

2009-07-10 Thread Tamas Szekeres
2009/7/11 Frank Warmerdam > Jorge Arévalo wrote: > >> Hello, >> >> 2009/7/10 Tamas Szekeres : >> >>> Jorge, >>> >>> I'm a bit hesitant to think using a server cursor would be the best >>> approach >>> here. Could you explain why is this needed? >>> >> >> Yes. As now I'm working basically with reg

Re: [gdal-dev] Questions about SQL cursors in GDAL driver

2009-07-10 Thread Frank Warmerdam
Jorge Arévalo wrote: Hello, 2009/7/10 Tamas Szekeres : Jorge, I'm a bit hesitant to think using a server cursor would be the best approach here. Could you explain why is this needed? Yes. As now I'm working basically with regularly tiled coverages, an operation like SELECT rast FROM table gi

Re: [gdal-dev] Questions about SQL cursors in GDAL driver

2009-07-10 Thread Jorge Arévalo
Hello, 2009/7/10 Tamas Szekeres : > Jorge, > > I'm a bit hesitant to think using a server cursor would be the best approach > here. Could you explain why is this needed? Yes. As now I'm working basically with regularly tiled coverages, an operation like SELECT rast FROM table gives me all the til

[gdal-dev] Invitation to my XING network

2009-07-10 Thread Gokul Kartha
Hi, I'd like to invite you to be part of my XING network. I use XING to manage my professional contacts and get in touch with other people in my industry. Take a look--it has paid off for me. Kind regards, Gokul Kartha

Re: [gdal-dev] Question about GDALDataType::GDT_Float32

2009-07-10 Thread Adeel Raza
Hi, Thanks for the quick reply Frank. Frank Warmerdam wrote: Adeel Raza wrote: Hi, I'm using the GDALRasterBand::RasterIO() function to write a buffer of C/C++ float types to a raster band of data type GDALDataType::GDT_Float32. I assumed that this conversion would not be problem since the

Re: [gdal-dev] Question about GDALDataType::GDT_Float32

2009-07-10 Thread Frank Warmerdam
Adeel Raza wrote: Hi, I'm using the GDALRasterBand::RasterIO() function to write a buffer of C/C++ float types to a raster band of data type GDALDataType::GDT_Float32. I assumed that this conversion would not be problem since the size of a C/C++ float is also 32 bits, but I wanted to be sure

Re: [gdal-dev] Questions about SQL cursors in GDAL driver

2009-07-10 Thread Tamas Szekeres
Jorge, I'm a bit hesitant to think using a server cursor would be the best approach here. Could you explain why is this needed? I my understanding each IReadBlock would trigger a normal "SELECT" without the cursor, this will give you all the data at once, just like FETCH ALL. This select would in

[gdal-dev] Question about GDALDataType::GDT_Float32

2009-07-10 Thread Adeel Raza
Hi, I'm using the GDALRasterBand::RasterIO() function to write a buffer of C/C++ float types to a raster band of data type GDALDataType::GDT_Float32. I assumed that this conversion would not be problem since the size of a C/C++ float is also 32 bits, but I wanted to be sure. If the conversion

[gdal-dev] gdalbuildvrt and nulls again - now from Photoshop

2009-07-10 Thread William Kyngesburye
This time I'm taking some Photoshop-created tiffs that I georeference with a TFW. These tiffs I save with transparency mask (not layers) to handle nulls. Reported by gdalinfo, they appear as: Band 1 Block=12775x5 Type=Byte, ColorInterp=Red Mask Flags: PER_DATASET ALPHA Band 2 Block=12775x

Re: [gdal-dev] Questions about SQL cursors in GDAL driver

2009-07-10 Thread Jorge Arévalo
Hello, 2009/7/10 Frank Warmerdam : > Jorge Arévalo wrote: >> >> Hello, >> >> Context: GDAL WKTRaster Driver. When creating Dataset, I declare a >> cursor to read all the rows (tiles) of a table with a raster column >> (DECLARE cursor CURSOR FOR SELECT * FROM TABLE). The RasterBand should >> read o

Re: [gdal-dev] Questions about SQL cursors in GDAL driver

2009-07-10 Thread Frank Warmerdam
Jorge Arévalo wrote: Hello, Context: GDAL WKTRaster Driver. When creating Dataset, I declare a cursor to read all the rows (tiles) of a table with a raster column (DECLARE cursor CURSOR FOR SELECT * FROM TABLE). The RasterBand should read one of the rows' band Question 1: The cursor is created

[gdal-dev] Re: Questions about SQL cursors in GDAL driver

2009-07-10 Thread Jorge Arévalo
Answering myself... 2009/7/10 Jorge Arévalo : > Hello, > > Context: GDAL WKTRaster Driver. When creating Dataset, I declare a > cursor to read all the rows (tiles) of a table with a raster column > (DECLARE cursor CURSOR FOR SELECT * FROM TABLE). The RasterBand should > read one of the rows' band

[gdal-dev] Questions about SQL cursors in GDAL driver

2009-07-10 Thread Jorge Arévalo
Hello, Context: GDAL WKTRaster Driver. When creating Dataset, I declare a cursor to read all the rows (tiles) of a table with a raster column (DECLARE cursor CURSOR FOR SELECT * FROM TABLE). The RasterBand should read one of the rows' band Question 1: The cursor is created during the Dataset crea

[gdal-dev] mean of pixel stack

2009-07-10 Thread Greg Fiske
Dear list, Does anyone have some code (or methodology) that they are willing to share that will take a stack of images and return the mean or std dev. of each pixel stack (pixels that occupy the same space), while ignoring a user define pixel value? Thanks for any advice, Greg G

Re: [gdal-dev] can't open grib2 files

2009-07-10 Thread Scott Sinclair
Hi Alberto, I'm not sure what's going on, without poking into the GDAL source code (with which I'm really not that familiar). I typically use the pygrib2 package to handle GRIB2 data (http://code.google.com/p/pygrib2). Under the hood this package uses g2clib (found at http://www.nco.ncep.noaa.gov

Re: [gdal-dev] ogr2ogr natgrids option ignored?

2009-07-10 Thread Frank Warmerdam
Sven Geggus wrote: Hi there, looks like ogr2ogr just ignores my nadgrids projection parameters :( Here is what I have: ogr2ogr -s_srs '+proj=tmerc +lat_0=0 +lon_0=12 +x_0=450 +y_0=0 \ +k=1.00 +ellps=bessel +units=m +nadgrids=./BETA2007.gsb' \ -t_srs '+proj=longlat +datum=WGS84' -f "ESR

Re: [gdal-dev] CSV filesize and OVF

2009-07-10 Thread Frank Warmerdam
bart...@osgis.nl wrote: Hi list, I've got a CSV file with about 50.000 lines. Running ogrinfo on it directly goes smoothly, but if I access it using an ovf file it won't work. It will work if I split up the large file in 2 files. Is there a known limit I am running into? Bart, I have no id

RE: [gdal-dev] gdal NITF complex driver question

2009-07-10 Thread Gong, Shawn (Contractor)
Thanks Even. I will try the patch and report back. Shawn -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Thursday, July 09, 2009 5:08 PM To: gdal-dev@lists.osgeo.org Cc: Gong, Shawn (Contractor) Subject: Re: [gdal-dev] gdal NITF complex driver questio

[gdal-dev] CSV filesize and OVF

2009-07-10 Thread bartvde
Hi list, I've got a CSV file with about 50.000 lines. Running ogrinfo on it directly goes smoothly, but if I access it using an ovf file it won't work. It will work if I split up the large file in 2 files. Is there a known limit I am running into? Best regards, Bart __

[gdal-dev] ogr2ogr natgrids option ignored?

2009-07-10 Thread Sven Geggus
Hi there, looks like ogr2ogr just ignores my nadgrids projection parameters :( Here is what I have: ogr2ogr -s_srs '+proj=tmerc +lat_0=0 +lon_0=12 +x_0=450 +y_0=0 \ +k=1.00 +ellps=bessel +units=m +nadgrids=./BETA2007.gsb' \ -t_srs '+proj=longlat +datum=WGS84' -f "ESRI Shapefile" out.shp

Re: [gdal-dev] thuban/ gdal : ERROR 4 not recognized format

2009-07-10 Thread Didrik Pinte
On Thu, 2009-07-09 at 19:58 +0200, Even Rouault wrote: > I see in a call to GDALDestroyDriverManager() in > http://wald.intevation.org/plugins/scmsvn/viewcvs.php/trunk/thuban/libraries/thuban/gdalwarp.cpp?rev=2866&root=thuban&view=markup. > > This is a very bad idea if you intend to call the Proj