[gdal-dev] OGR to Mysql problems
pablotcarreira at hotmail.com
Thu Mar 4 07:27:28 EST 2010
I don't know much of programming. I'am using the GRASS v.out.ogr tool to export from GRASS to Mysql.
Do you think it's a GRASS bug?
I had tryied ogr2ogr from command line in windows but I got this error:
c:\>ogr2ogr -f mysql MYSQL:geodados,user=root,password=xxxxxx,host=localhost /grassdata/utmwgs23/geral/vector/areas_recuperacao_trabalhado/head -overwrite -lco spatial_index=no
Warning 1: GRASS warning: Line♦ of ellipsoid table file <c:\osgeo4w\apps\grass\grass-6.a.0svn/etc/ellipse.table> is invalid
More than 1000 errors or warnings have been reported. No more will be reported from now.
Thank you very much.
>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().
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
> 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?
> Pablo Torres Carreira
> Navegue sem medo com o Internet Explorer 8. Clique aqui para instalar
> gratuitamente. http://go.microsoft.com/?linkid=9707132
Com o Internet Explorer 8 você fica mais protegido contra ameaças da web. Saiba mais.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev