[gdal-dev] Copying FIDs into existing PG schema

2012-02-06 Thread Jeremy Palmer
Hi When using the config PG_USE_COPY option the copy command does not include the destination FID in the field list. In my case the destination FID field is a primary key with a not null constraint, so the copy fails. e.g. ogr2ogr --config PG_USE_COPY TRUE -append -preserve_fid -f "PostgreSQL"

Re: [gdal-dev] Thread safe?

2012-02-06 Thread Even Rouault
Le mardi 07 février 2012 00:41:38, Even Rouault a écrit : > Le mardi 07 février 2012 00:23:20, Billy Newman a écrit : > > Is the DataSource.delete() method (from java binding) thread safe? > > Yes, it should To avoid any ambiguities, you can call the delete() method on 2 distinct datasources"si

Re: [gdal-dev] Thread safe?

2012-02-06 Thread Even Rouault
Le mardi 07 février 2012 00:23:20, Billy Newman a écrit : > Is the DataSource.delete() method (from java binding) thread safe? Yes, it should > > Thanks > > On Wed, Jan 11, 2012 at 3:09 PM, Even Rouault > > wrote: > > ** > > > > Le mercredi 11 janvier 2012 22:32:45, Billy Newman a écrit : > >

Re: [gdal-dev] Thread safe?

2012-02-06 Thread Billy Newman
Is the DataSource.delete() method (from java binding) thread safe? Thanks On Wed, Jan 11, 2012 at 3:09 PM, Even Rouault wrote: > ** > > Le mercredi 11 janvier 2012 22:32:45, Billy Newman a écrit : > > > I am using a third party lib (imageio-ext) to leverage gdal in java code. > > > I have notice

[gdal-dev] Re: Getting SRID from ESRI shapefile

2012-02-06 Thread Etienne Tourigny
The ticket is sort of a mess as there are 2 experimental features in there... I have updated the ticket with more information and a modified shell script. Etienne On Mon, Feb 6, 2012 at 2:29 PM, Hermann Peifer wrote: > On 06/02/2012 14:52, Etienne Tourigny wrote: >> >> >> I have been working on

[gdal-dev] Re: Getting SRID from ESRI shapefile

2012-02-06 Thread Hermann Peifer
On 06/02/2012 14:52, Etienne Tourigny wrote: I have been working on experimental EPSG lookup, see ticket #4345 http://trac.osgeo.org/gdal/ticket/4345 It requires gdalsrsinfo from gdal-1.9 and some extra data files installed in the gdal data directory (see the ticket) It could perhaps be an

Re: [gdal-dev] Getting SRID from ESRI shapefile

2012-02-06 Thread Etienne Tourigny
Alessandro, unfortunately there is not a reliable tool on GDAL at the moment, but I have been working on experimental EPSG lookup, see ticket #4345 http://trac.osgeo.org/gdal/ticket/4345 It requires gdalsrsinfo from gdal-1.9 and some extra data files installed in the gdal data directory (see the

[gdal-dev] Getting SRID from ESRI shapefile

2012-02-06 Thread Alessandro Candini
Is it possible to get a SRID code from an ESRI shapefile? For example, I've got the following: ~ $ ogrinfo -al LC_FIN_smooth.shp | head -n 30 INFO: Open of `LC_FIN_smooth.shp' using driver `ESRI Shapefile' successful. Layer name: LC_FIN_smooth Geometry: Polygon Feature Count: 33308 Extent: