Re: [gdal-dev] FileGDB -preserve_fid

2012-12-13 Thread Jeremy Palmer
o.org Subject: Re: [gdal-dev] FileGDB -preserve_fid Le jeudi 13 décembre 2012 09:56:14, Jeremy Palmer a écrit : > > At first sight, I would say it is a limitation of the FileGDB API. > > > > In FGdbLayer::CreateFeature( OGRFeature *poFeature ), > > > > you c

Re: [gdal-dev] FileGDB -preserve_fid

2012-12-13 Thread Jeremy Palmer
Great thanks. -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of rburhum Sent: Friday, 14 December 2012 8:41 a.m. To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] FileGDB -preserve_fid Although FileGDB does have

Re: [gdal-dev] FileGDB -preserve_fid

2012-12-13 Thread rburhum
Although FileGDB does have programmatic ways to preserve the FID, these are not exposed through the FileGDB API yet. What people normally do in these cases is to copy the fid to the target dataset as a non-primary key value. I guess we could add something along these lines as an enhancement request

Re: [gdal-dev] FileGDB -preserve_fid

2012-12-13 Thread Even Rouault
Le jeudi 13 décembre 2012 09:56:14, Jeremy Palmer a écrit : > > At first sight, I would say it is a limitation of the FileGDB API. > > > > In FGdbLayer::CreateFeature( OGRFeature *poFeature ), > > > > you can see the following commented code : > > /* Cannot write to FID field - it is managed by

Re: [gdal-dev] FileGDB -preserve_fid

2012-12-13 Thread Jeremy Palmer
> > At first sight, I would say it is a limitation of the FileGDB API. > > In FGdbLayer::CreateFeature( OGRFeature *poFeature ), > > you can see the following commented code : > > /* Cannot write to FID field - it is managed by GDB*/ >//std::wstring wfield_name = StringToWString(m_strOIDFiel

Re: [gdal-dev] FileGDB -preserve_fid

2012-12-13 Thread Even Rouault
Le jeudi 13 décembre 2012 02:24:40, Jeremy Palmer a écrit : > Hi, > > I'm trying to copy data from PostgreSQL to FileGDB. My PostgreSQL table has > a primary key column and ogr indenties it as the FID e.g > > CREATE TABLE public.test_fileGDB ( > id INTEGER PRIMARY KEY, > data1 TEXT, >

[gdal-dev] FileGDB -preserve_fid

2012-12-12 Thread Jeremy Palmer
Hi, I'm trying to copy data from PostgreSQL to FileGDB. My PostgreSQL table has a primary key column and ogr indenties it as the FID e.g CREATE TABLE public.test_fileGDB ( id INTEGER PRIMARY KEY, data1 TEXT, shape GEOMETRY(POINT, 4167) ); INSERT INTO public.test_fileGDB (id, data1,