[gdal-dev] OGR random read optimization?

2009-11-30 Thread Ray Gardener
The OGRLayer::SetNextByIndex() function can be sped up by keeping track of the previously used index, and calling ResetReading() only if the new index is lesser than it. Otherwise, read forward and skip features by the difference of the new and old indices. For thread safety, the old index sho

Re: [gdal-dev] Problem with readraster in C#

2009-11-30 Thread Tamas Szekeres
Patrik, Do you have this data available to reproduce the problem? Best regards, Tamas 2009/11/29 patsv > Hi, I am trying to read GDEM data from the ASTER dataset. > > But all I get is a buffer with zeroes, is there something wrong with my > code or is it something with the readraster func

Re: [gdal-dev] VSIFile from a string

2009-11-30 Thread Upendra Dadi
Hi, I found out how to do it. I just had to read the documentation for void VSIInstallMemFileHandler. Upendra Original Message - From: Upendra Dadi To: gdal-dev@lists.osgeo.org Sent: Monday, November 30, 2009 8:51 AM Subject: [gdal-dev] VSIFile from a string Hi, In

[gdal-dev] VSIFile from a string

2009-11-30 Thread Upendra Dadi
Hi, In reference to my previous post, one way I could solve my problem is to create a memory file from a c++ string which contains a Geotiff file. Can anyone please tell how to create a memory file using a char array? How do I read from and write to memory files? Thanks. Upendra - Orig

Re: [gdal-dev] Why does OCI driver fail with SRID?

2009-11-30 Thread Rahkonen Jukka
Hi Mike, Oh, naturally. I had forgotten that even I seem to have -lco SRID parameter included in all the scripts I have written myself. But how about appendind the data? Using -a_srs does not work and using "-lco SRID=2393" together with "-append" gives a message "WARNING: Layer creation optio

Re: [gdal-dev] Why does OCI driver fail with SRID?

2009-11-30 Thread Smith, Michael ERDC-CRREL-NH
Jukka, To set the SRID when loading to Oracle, you have to use the layer creation option -lco srid=2393 Mike -- Michael Smith RSGIS Center US Army Corps of Engineers On 11/30/09 7:25 AM, "Jukka Rahkonen" wrote: > Hi, > > Short question: I cannot get ogr2ogr to co-operate with me and Or

[gdal-dev] Why does OCI driver fail with SRID?

2009-11-30 Thread Jukka Rahkonen
Hi, Short question: I cannot get ogr2ogr to co-operate with me and Oracle Spatial if I want to set the table SRID by using its EPSG code. I can do what I want by using SQL*Plus but not with ogr2ogr. What am I doing wrong? Longish description follows. I was trying to use ogr2ogr that comes with