ProjNet4GeoAPI icon indicating copy to clipboard operation
ProjNet4GeoAPI copied to clipboard

UTM ITRF96 3-30 TO WGS94 (GOOGLE EARTH) TRANSFORMATION

Open shadowq7 opened this issue 4 years ago • 1 comments

                    var csTgt = GeographicCoordinateSystem.WGS84;
                    var csSrc = new CoordinateSystemFactory().CreateFromWkt(@"PROJCS[""ITRF96 / TM30"",
GEOGCS[""GCS_ITRF_1996"",
    DATUM[""D_ITRF_1996"",
        SPHEROID[""GRS_1980"",6378137.0,298.257222101]],
    PRIMEM[""Greenwich"",0.0],
    UNIT[""Degree"",0.017453292519943295]],
PROJECTION[""Transverse_Mercator""],
PARAMETER[""central_meridian"",30.0],
PARAMETER[""latitude_of_origin"",0.0],
PARAMETER[""scale_factor"",1.0],
PARAMETER[""false_easting"",500000.0],
PARAMETER[""false_northing"",0.0],
UNIT[""m"",1.0]]");
                    var transformer = new CoordinateTransformationFactory().CreateFromCoordinateSystems(csSrc, csTgt);

                    double[] longitudeAndLatitude = {4194530.44 ,  411686,23};
                    double[] xy = transformer.MathTransform.Transform(longitudeAndLatitude);

IT GIVES x[0] =28,9961815329297 x[1] = 37,8788903617676

But i want to x[0] = 37.335091 x[1] = 28.100131

shadowq7 avatar Apr 15 '20 17:04 shadowq7

double[] eastingNorthingAlt = {411686,4194530,23}; double[] longitudeLatitude = transformer.MathTransform.Transform(eastingNorthingAlt);

Also your question should be marked WGS84, not 94

pchilds avatar May 17 '21 09:05 pchilds