[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

[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

[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

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

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 ivan.luc...@pmldnet.com wrote: On Sep 7, 2010, at 8:59 AM, Anders Moe wrote: Hi everyone

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

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: