ProjNet4GeoAPI icon indicating copy to clipboard operation
ProjNet4GeoAPI copied to clipboard

CoordinateTransformationFactory CreateFromCoordinateSystems south not supported

Open kbza1work opened this issue 8 years ago • 1 comments

When I attempt to create a ICoordinateTransformation to transform from 2053 to 4326 I get the exception: {"Projection Transverse_Mercator_South_Orientated is not supported."} Both 2053 and 4326 are provided by the standard SRID.CSV file. Is there maybe a workaround? Thx...

CoordinateSystemFactory csFact = new CoordinateSystemFactory(); CoordinateTransformationFactory ctFact = new CoordinateTransformationFactory(); ICoordinateSystem CSSrc1 = ProjNet.UnitTests.SRIDReader.GetCSbyID(2053); ICoordinateSystem CSTrg1 = ProjNet.UnitTests.SRIDReader.GetCSbyID(4326); ICoordinateTransformation trans = ctFact.CreateFromCoordinateSystems(CSSrc1, CSTrg1); // exception

kbza1work avatar Jan 10 '17 12:01 kbza1work

According to BlueMarbleGeo Transverse_Mercator_South_Orientated is the same as Transverse_Mercator except that

  • FALSE_EASTING is treated as FALSE_WESTING
  • FALSE_NORTHING is treated as FALSE_SOUTHING

You can try to modify the WKT of these projections or write your own projection class.

FObermaier avatar Jan 10 '17 15:01 FObermaier