I try to use projection with specific transformation for bigger accuracy. In my case I need to convert from
to
using the best transformation for Southern California:
The code should be simple:
// 1. Prepare transformation:
SpatialReference spCaliforniaNAD = new SpatialReference(2229);
GeographicTransformationStep geoStep = new GeographicTransformationStep(1750);
GeographicTransformation geoTransform = new GeographicTransformation(geoStep);// 2. Transform myPoint into projected coordinate system:
MapPoint myPoint = new MapPoint(-117.82739800, 34.64073000, SpatialReferences.Wgs84);
MapPoint projectedPoint = (MapPoint)GeometryEngine.Project(myPoint, spCaliforniaNAD, geoTransform);
The problem is that both GeographicTransformationStep and GeographicTransformation have missing projection engine files (IsMissingProjectionEngineFiles==true). Of course it results with exception in the last line.
How can I get that missing projection engine file?
Thanks,
Waldek
Solved! Go to Solution.
Hi,
Additional information on this file is included in Spatial references—ArcGIS Runtime SDK for .NET | ArcGIS for Developers.
Thanks
Mike
Hi,
Additional information on this file is included in Spatial references—ArcGIS Runtime SDK for .NET | ArcGIS for Developers.
Thanks
Mike
After following the documentation you indicated I was able to download Projection Engine Data Files and indicated them for transformation. It works.
Thank you.