[gdal-dev] Projection different when converting to filegeodb:

Gane R gane.prog at gmail.com
Fri Dec 25 00:11:44 PST 2015


I used FileGDB SDK 1.4 with gdal gdal-1.11.3, I changed the Shape file
projection to EPSG:4326 it then worked for me.

Thanks
Gane

On Thu, Dec 24, 2015 at 5:32 PM, Even Rouault <even.rouault at spatialys.com>
wrote:

> >
> > ogrinfo -al "SimpleShapeFile_1.shp"
> >
> > INFO: Open of `SimpleShapeFile_1.shp'
> >       using driver `ESRI Shapefile' successful.
> >
> > Layer name: SimpleShapeFile_1
> > Geometry: Point
> > Feature Count: 1
> > Extent: (-104.960632, 39.736762) - (-104.960632, 39.736762)
> > Layer SRS WKT:
> > GEOGCS["WGS84(DD)",
> >     DATUM["WGS84",
> >         SPHEROID["WGS84",6378137.0,298.257223563]],
> >     PRIMEM["Greenwich",0.0],
> >     UNIT["degree",0.017453292519943295],
> >     AXIS["Geodetic longitude",EAST],
> >     AXIS["Geodetic latitude",NORTH]]
> > Label: String (254.0)
> > OGRFeature(SimpleShapeFile_1):0
> >   Label (String) = 1
> >   POINT (-104.960632 39.736762)
> >
> >
> >
> >   ogr2ogr -f "FileGDB" "SimpleShapeFile.gdb" "SimpleShapeFile_1.shp"
>
> Which version of the FileGDB SDK did you use ? With v1.3 this fails for me
> with :
> ERROR 1: Failed at creating table for \SimpleShapeFile_1 (General function
> failure.)
> which isn't completely surprising since the SDK is quite picky on the
> projection strings, and I guess the "WGS84(DD)" must not please it. The
> SRS it
> generated for you is completely invalid, hence the reprojection error you
> get
> later.
> If you add -a_srs EPSG:4326 this will work fine.
>
> Even
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20151225/fcb8cbd6/attachment.html>


More information about the gdal-dev mailing list