Project with Transformation - where to get projection engine file?

982
2
Jump to solution
05-22-2020 02:10 AM
WaldemarNowak
New Contributor III

I try to use projection with specific transformation for bigger accuracy. In my case I need to convert from 

  • WGS84 (WKID=4326

to

  • EPSG:2229 NAD83 / California zone 5 (ftUS)

using the best transformation for Southern California:

  • NAD_1983_To_WGS_1984_southern_California_54 1750

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

0 Kudos
1 Solution

Accepted Solutions
MichaelBranscomb
Esri Frequent Contributor

Hi,

Additional information on this file is included in Spatial references—ArcGIS Runtime SDK for .NET | ArcGIS for Developers.

Thanks

Mike

View solution in original post

2 Replies
MichaelBranscomb
Esri Frequent Contributor

Hi,

Additional information on this file is included in Spatial references—ArcGIS Runtime SDK for .NET | ArcGIS for Developers.

Thanks

Mike

WaldemarNowak
New Contributor III

After following the documentation you indicated I was able to download Projection Engine Data Files and indicated them for transformation. It works.

Thank you.

0 Kudos