Pablo, 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, Even 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 _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev