AnsweredAssumed Answered

How to specify a datum transformation

Question asked by MCederholm on Oct 7, 2014
Latest reply on Oct 29, 2014 by mnielsen-esristaff

If I want to project a point from WGS1984 (4326) to NAD1983 (4269) using transformation NAD_1983_To_WGS_1984_5 (1515), how do I go about doing it?  Apparently I need to build a well-known text, but when I try the following it doesn't give the correct result:



string sGEOGCS = "GEOGCS[...";

string sGEOGTRAN = "GEOGTRAN[...";

string sWKT = sGEOGCS + " " + sGEOGTRAN;


MapPoint ptWGS84 = new MapPoint(dLon, dLat, new SpatialReference(4326));

SpatialReference srTrans = new SpatialReference(sWKT);

MapPoint ptNAD83 = (MapPoint)GeometryEngine.Project(ptWGS84, srTrans);