Re: [gdal-dev] C++ interface to lists of coordinate systems in data dir ?

2010-09-08 Thread Lucena, Ivan
Hi Alexandre, Yes, that is an interesting idea. You can actually read the CSV files as OGR data source: % ogrinfo gcs.csv -al | more INFO: Open of `gcs.csv' using driver `CSV' successful. Layer name: gcs Geometry: None Feature Count: 438 Layer SRS WKT: (unknown) COORD_REF_SYS_CODE: Strin

Re: [gdal-dev] OGR: Get FID of last set feat in PG

2010-09-08 Thread Even Rouault
Tom, yes you need to call ReleaseResultSet after every ExecuteSQL, otherwise you'll have memory leaks Ideally you should have been able to call GetFID() after CreateFeature(), but this is currently not implemented in the postgresql driver. I have a patch to solve the issue, but it raises some

RE: [gdal-dev] OGR OVF has no identified FID column

2010-09-08 Thread David Lowther
Brent, Finally got back to this today. I upgraded my GDAL to version 1.7.1. The only thing I notice that is different is that I get: OGR: OGRGeometryFactory::createFromWkb() - got corrupt data. That gave me a hint. I added a WKT column to the MS SQL Server table and calculated it to the STAsTex

Re: [gdal-dev] C++ interface to lists of coordinate systems in data dir ?

2010-09-08 Thread Alexandre Gacon
The OGR CSV support is a supported driver and I think it will work better than the built-in GDAL support (but perhaps it the same think). Alexandre On Tue, Sep 7, 2010 at 8:58 PM, Ivan Lucena wrote: > > On Sep 7, 2010, at 8:59 AM, Anders Moe wrote: > > > > > > > > Hi everyone > > > > > > C

Re: [gdal-dev] Re: cut a .dem file

2010-09-08 Thread Joaquim Luis
On 08-09-2010 16:38, Carmelo Terrasi wrote: Yes, you're right, if I need a portion I have to use that utility. Thank you so much Hermann, regards, Carmelo Not so simple. The problem will be that your bmp image is not referenced but the DEM is, so you'll need to find the correspondence between

[gdal-dev] Re: cut a .dem file

2010-09-08 Thread Carmelo Terrasi
Yes, you're right, if I need a portion I have to use that utility. Thank you so much Hermann, regards, Carmelo 2010/9/8 Hermann Peifer > On 08/09/2010 15:26, Carmelo Terrasi wrote: > >> Hello everybody, >> >> does anybody know how to cut a smaller dem file from another one??? >> I have my origin

Re: [gdal-dev] OGR: Get FID of last set feat in PG

2010-09-08 Thread Tom van der Putte
In reply to my own question, I've created something that works: Layer tempLayer = ds2.ExecuteSQL("SELECT currval(pg_get_serial_sequence('wells', 'well_id')) as seqval;", null, null); Feature seqFeat = tempLayer.GetNextFeature(); //always only 1 row in the resultset, so no *while* tempFID = seqF

[gdal-dev] OGR: Get FID of last set feat in PG

2010-09-08 Thread Tom van der Putte
Hi All, I'm adding several new features to a PostGIS table using OGR (in C#). After each CreateFeature I'd like to somehow get the FID of the created feature. Is there any possible way to do this? If not elegant, any hack is also welcome :D Cheers, Tom _

[gdal-dev] Re: cut a .dem file

2010-09-08 Thread Hermann Peifer
On 08/09/2010 15:26, Carmelo Terrasi wrote: Hello everybody, does anybody know how to cut a smaller dem file from another one??? I have my original file /terrain.dem /but my /image.bmp/ is smaller so I would cut a portion just to create another suitable dem file for my /image.bmp/ Is it possible

[gdal-dev] cut a .dem file

2010-09-08 Thread Carmelo Terrasi
Hello everybody, does anybody know how to cut a smaller dem file from another one??? I have my original file *terrain.dem *but my *image.bmp* is smaller so I would cut a portion just to create another suitable dem file for my * image.bmp* Is it possible to do it or am I off-board? Thanks in advan