<div dir="ltr"><div><div>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.<br><br><br>pOutputSRS = (OGRSpatialReference*)OSRNewSpatialReference(NULL);<br>                        pOutputSRS->SetFromUserInput( "EPSG:4326" );<br><br>ogrError = pSrcGeom->transformTo(pOutputSRS);<br><br>I get OGRERR_FAILURE , ogrError = 6<br><br><br>any suggestions ?<br><br></div><div>I have shared the shape file and Filegeodb<br><br><a href="https://drive.google.com/file/d/0B4shTM1bPS5TY2dKbnNFV1RNbUk/view?usp=sharing">https://drive.google.com/file/d/0B4shTM1bPS5TY2dKbnNFV1RNbUk/view?usp=sharing</a><br><br><a href="https://drive.google.com/file/d/0B4shTM1bPS5Td1V1aEVYZVFiNEk/view?usp=sharing">https://drive.google.com/file/d/0B4shTM1bPS5Td1V1aEVYZVFiNEk/view?usp=sharing</a><br><br></div><div><br>ogrinfo -al "SimpleShapeFile_1.shp"<br><br>INFO: Open of `SimpleShapeFile_1.shp'<br>      using driver `ESRI Shapefile' successful.<br><br>Layer name: SimpleShapeFile_1<br>Geometry: Point<br>Feature Count: 1<br>Extent: (-104.960632, 39.736762) - (-104.960632, 39.736762)<br>Layer SRS WKT:<br>GEOGCS["WGS84(DD)",<br>    DATUM["WGS84",<br>        SPHEROID["WGS84",6378137.0,298.257223563]],<br>    PRIMEM["Greenwich",0.0],<br>    UNIT["degree",0.017453292519943295],<br>    AXIS["Geodetic longitude",EAST],<br>    AXIS["Geodetic latitude",NORTH]]<br>Label: String (254.0)<br>OGRFeature(SimpleShapeFile_1):0<br>  Label (String) = 1<br>  POINT (-104.960632 39.736762)<br>  <br>  <br>  <br>  ogr2ogr -f "FileGDB" "SimpleShapeFile.gdb" "SimpleShapeFile_1.shp"<br>  <br>  <br>ogrinfo -al "SimpleShapeFile.gdb"<br><br>INFO: Open of 'SimpleShapeFile.gdb'<br>      using driver `FileGDB' successful.<br><br>Layer name: SimpleShapeFile_1<br>Geometry: Point<br>Feature Count: 1<br>Extent: (-104.960632, 39.736762) - (-104.960632, 39.736762)<br>Layer SRS WKT:<br>COMPD_CS[<br>    PROJCS[,<br>        AUTHORITY["EPSG","0"]],<br>    VERT_CS[,<br>        VERT_DATUM[,2005,<br>            AUTHORITY["EPSG","0"]],<br>        AXIS["Up",UP],<br>        AUTHORITY["EPSG","0"]]]<br>FID Column = OBJECTID<br>Geometry Column = SHAPE<br>Label: String (0.0)<br>OGRFeature(SimpleShapeFile_1):1<br>  Label (String) = 1<br>  POINT (-104.960632 39.736762)<br>  <br></div> </div><div><br><div>  <br></div></div></div>