[gdal-dev] OGR to Mysql problems

Even Rouault even.rouault at mines-paris.org
Wed Mar 3 15:08:33 EST 2010


This could happen if you pass to CreateFeature() features that have the same 
id set by OGRFeature::SetFID() as being 1... Check with OGRFeature::GetFID() 
what you pass to CreateFeature().

Best regards,


Le Wednesday 03 March 2010 21:00:47 Pablo Carreira, vous avez écrit :
>  Hi, I'am trying to export some vectors to Mysql but I got the following
> problem:
> ERROR 1: MySQL error message:Duplicate entry '1' for key 'OGR_FID'
> For every vector it try to use the same OGR_FID and at the end It exports
> only the first vector becouse the other has duplicated FID.
> Any help?
> Thanks.
> Pablo Torres Carreira
> _________________________________________________________________
> Navegue sem medo com o Internet Explorer 8. Clique aqui para instalar
> gratuitamente. http://go.microsoft.com/?linkid=9707132

More information about the gdal-dev mailing list