[FWTools] GDAL OGRSpatialReference::Validate()
Martin Fix
Martin.Fix at ptv.de
Wed May 4 07:36:27 EDT 2005
Dear all,
I'm having a bit trouble using the method OGRSpatialReference::Validate().
When I define a projection Mercator
PROJCS["World_Mercator",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["W
GS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.01745
3292519943295]],PROJECTION["Mercator"],PARAMETER["False_Easting",0],PARAMETE
R["False_Northing",0],PARAMETER["Central_Meridian",0],PARAMETER["Standard_Pa
rallel_1",0],UNIT["Meter",1]]
as it is the exact definition of ESRI, the validate method fails with the
error code "OGR_CORRUPT_DATA".
I use the following steps:
1. create a new new OGRSpatialReference myRef
2. call myRef.importFromWkt() with the string above as argument
3. call myRef.morphFromESRI()
4. call myRef.Validate() returning OGR_CORRUPT_DATA
Do you have any idea what's going wrong?
The definition string is taken from ESRI ArcGIS 9.0
Thanks for any help
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/fwtools/attachments/20050504/ba2ad413/attachment.html
More information about the FWTools
mailing list