[gdal-dev] Projection different when converting to filegeodb:
Gane R
gane.prog at gmail.com
Wed Dec 23 00:12:21 PST 2015
I have a shapefile, I convert to Filegeodb, when I convert, the SRS WKT are
different, later when I convert the geom in filegeodb to EPSG:4326 WGS 84 I
get a n error code.
pOutputSRS = (OGRSpatialReference*)OSRNewSpatialReference(NULL);
pOutputSRS->SetFromUserInput( "EPSG:4326" );
ogrError = pSrcGeom->transformTo(pOutputSRS);
I get OGRERR_FAILURE , ogrError = 6
any suggestions ?
I have shared the shape file and Filegeodb
https://drive.google.com/file/d/0B4shTM1bPS5TY2dKbnNFV1RNbUk/view?usp=sharing
https://drive.google.com/file/d/0B4shTM1bPS5Td1V1aEVYZVFiNEk/view?usp=sharing
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"
ogrinfo -al "SimpleShapeFile.gdb"
INFO: Open of 'SimpleShapeFile.gdb'
using driver `FileGDB' successful.
Layer name: SimpleShapeFile_1
Geometry: Point
Feature Count: 1
Extent: (-104.960632, 39.736762) - (-104.960632, 39.736762)
Layer SRS WKT:
COMPD_CS[
PROJCS[,
AUTHORITY["EPSG","0"]],
VERT_CS[,
VERT_DATUM[,2005,
AUTHORITY["EPSG","0"]],
AXIS["Up",UP],
AUTHORITY["EPSG","0"]]]
FID Column = OBJECTID
Geometry Column = SHAPE
Label: String (0.0)
OGRFeature(SimpleShapeFile_1):1
Label (String) = 1
POINT (-104.960632 39.736762)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20151223/8c361e22/attachment.html>
More information about the gdal-dev
mailing list