Re: [gdal-dev] Using OGRLayer::GetNextFeature() to read Dgn file ?

2013-06-14 Thread taibc
The problem is: after the last while loop. I need to set SetSpatialFilter and Feature again (The spatialfilter that used in the previous while loop), by using below codes: poLayer->SetSpatialFilter (poGeometry); poLayer->SetNextByIndex (index2-1); Kind regards, Tai -- View this message in con

[gdal-dev] GDAL formats list order

2013-06-14 Thread Jorge Arévalo
Hello, I read at http://trac.osgeo.org/gdal/wiki/GDAL20Changes that GDAL formats, when calling gdalinfo --formats, "are returned in a meaningful order - the order they are tried - which is important to know sometimes". I see at http://trac.osgeo.org/gdal/browser/tags/1.10.0/gdal/frmts/gdalall

Re: [gdal-dev] ECW reading is taking too much time

2013-06-14 Thread Jorge Arévalo
Hello, El viernes 14 de junio de 2013 a las 20:50, Even Rouault escribió: > Le vendredi 14 juin 2013 19:43:22, Jorge Arévalo a écrit : > > Hello, > > > > I'm having problems reading a ECW file with GDAL. It's taking several hours > > to get an equivalent GeoTIFF file, executing gdal_translat

Re: [gdal-dev] Motion: Commit Access for Wolf Bergenheim

2013-06-14 Thread Frank Warmerdam
On Wed, Jun 12, 2013 at 2:09 PM, Frank Warmerdam wrote: > Motion: Extend GDAL/OGR commit access to Wolf Bergenheim. > > > Folks, I declare this motion passed with PSC support from Even, Howard, Daniel, and Tamas. Welcome Wolf! I've enabled your commit access. Your first task is to add yourself

Re: [gdal-dev] SQLite driver and drop table problem

2013-06-14 Thread Piotr Tracz
W dniu 2013-06-14 20:58, Even Rouault pisze: http://svn.osgeo.org/gdal/trunk/autotest/ogr/data/poly_spatialite.sqlite and then do : ogrinfo poly_spatialite.sqlite -sql "drop table poly" ? This works for me with SQLITE 3.6.22 and 3.7.13. Yes it works. False alarm. Error was a reason of some orp

Re: [gdal-dev] SQLite driver and drop table problem

2013-06-14 Thread Even Rouault
Le vendredi 14 juin 2013 20:18:19, Piotr Tracz a écrit : > Hello, > > I think there might be a bug in OGRSQLiteDataSource::ExecuteSQL but > before I make bug ticket, I want to be sure I'm not missing anything. > When one try to execute SQL command "DROP TABLE xxx", error "In > ExecuteSQL(): sqlite

Re: [gdal-dev] ECW reading is taking too much time

2013-06-14 Thread Even Rouault
Le vendredi 14 juin 2013 19:43:22, Jorge Arévalo a écrit : > Hello, > > I'm having problems reading a ECW file with GDAL. It's taking several hours > to get an equivalent GeoTIFF file, executing gdal_translate. Besides, the > ECW file is 1.9GB and the resulting GeoTIFF is 21GB. Not choking at al

[gdal-dev] SQLite driver and drop table problem

2013-06-14 Thread Piotr Tracz
Hello, I think there might be a bug in OGRSQLiteDataSource::ExecuteSQL but before I make bug ticket, I want to be sure I'm not missing anything. When one try to execute SQL command "DROP TABLE xxx", error "In ExecuteSQL(): sqlite3_step(DROP TABLE xxx): SQL logic error or missing database" oc

[gdal-dev] ECW reading is taking too much time

2013-06-14 Thread Jorge Arévalo
Hello, I'm having problems reading a ECW file with GDAL. It's taking several hours to get an equivalent GeoTIFF file, executing gdal_translate. Besides, the ECW file is 1.9GB and the resulting GeoTIFF is 21GB. The CPU is at almost 80% during the read operation. Same problem trying to load it i

Re: [gdal-dev] NITF Chip

2013-06-14 Thread Even Rouault
Le lundi 10 juin 2013 22:43:52, Baker, Anthony W a écrit : > One possible answer seems to be to use ICHIP_OP_**_** and ICHIP_FI_**_** > > Using the _OP_ metadata I form a row-wise 2x2 projection matrix with _12 - > _11 as one row and _21 - _11 as the other. With _FI_ I form a column-wise > 2x2 p

Re: [gdal-dev] Aggregate bands

2013-06-14 Thread Frank Warmerdam
Siebe, There are many ways to aggregate. What do you want? Just one band summing each pixel stack? Best regards, On Jun 14, 2013 3:55 AM, "Siebe Bosch" wrote: > Hi List, > > The question was originally mine. Thanks to Paul for posting it. > Here's what I did (calling GDAL tools from VB.NET):

Re: [gdal-dev] Combining quantized png files in gdal2tiles

2013-06-14 Thread Andre Joost
Am 14.06.2013 00:55, schrieb Phil Scadden: Okay, but how is the best way to fix it? Since pnqnq runs on individual tiles, I would not expect tiles to have the same palette. What is needed is to read the nq tiles into memory, convert to RGBA raster, then put that into overview tile. How tricky is

Re: [gdal-dev] Aggregate bands

2013-06-14 Thread Siebe Bosch
Hi List, The question was originally mine. Thanks to Paul for posting it. Here's what I did (calling GDAL tools from VB.NET): 1. Warping the NetCDF-file to match my desired co-ordinate system and crop the image. outputFile = OutputDir & "\" & Str(OrderNum).Trim & "_NSL_" & Str(i).Trim

Re: [gdal-dev] Using OGRLayer::GetNextFeature() to read Dgn file ?

2013-06-14 Thread taibc
I resolved this error. Thanks and regards, -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Using-OGRLayer-GetNextFeature-to-read-Dgn-file-tp5060084p5060120.html Sent from the GDAL - Dev mailing list archive at Nabble.com. ___ gd

[gdal-dev] Using OGRLayer::GetNextFeature() to read Dgn file ?

2013-06-14 Thread taibc
Hi everyone, I am trying read features in a dgn file and convert to shape file. Everything is ok before I adding the last while loop. After adding this while loop, I can't exit the program. Please see my below codes. Do you know why ? OGRRegisterAll(); OGRDataSource *poDS, *poSHPDS; OGRLa

Re: [gdal-dev] Aggregate bands

2013-06-14 Thread Paul Meems
Hi Even, I've just tried and I get this result: Warning 1: dimension #2 (x) is not a Longitude/X dimension. Warning 1: dimension #1 (y) is not a Latitude/Y dimension. Input file size is 257, 329 ERROR 6: AAIG driver doesn't support 24 bands. Must be 1 band. So you are right, it doesn't work. I