You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the Web Mercator projection is not available in the ProjectionsRegistry.TypeRegistry dictionary. For example, following code throws "Projection Mercator_Auxiliary_Sphere is not supported." exception.
publicstaticvoidCheckProjection_Mercator_Auxiliary_Sphere(){// Shapefile projection created in ArcGISProvarprojection="PROJCS[\"WGS_1984_Web_Mercator_Auxiliary_Sphere\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Mercator_Auxiliary_Sphere\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0.0],PARAMETER[\"Standard_Parallel_1\",0.0],PARAMETER[\"Auxiliary_Sphere_Type\",0.0],UNIT[\"Meter\",1.0]]";varcsFactory=newCoordinateSystemFactory();varsourceCs=csFactory.CreateFromWkt(projection);vartargetCs=GeographicCoordinateSystem.WGS84;vartargetCsEnvelope=GetWgs84Envelope();vartransformationFactory=newCoordinateTransformationFactory();vartransformation=transformationFactory.CreateFromCoordinateSystems(sourceCs,targetCs);// System.NotSupportedException : Projection Mercator_Auxiliary_Sphere is not supported.varsourceCoords=newdouble[]{2063341,7268244};vartergetCoords=transformation.MathTransform.Transform(sourceCoords);}
Is there a way to support the use of Mercator_Auxiliary_Sphere projection within ProjNet4GeoAPI library? If so, any guidance on implementation would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
It looks like the Web Mercator projection is not available in the
ProjectionsRegistry.TypeRegistry
dictionary. For example, following code throws "Projection Mercator_Auxiliary_Sphere is not supported." exception.Is there a way to support the use of
Mercator_Auxiliary_Sphere
projection within ProjNet4GeoAPI library? If so, any guidance on implementation would be greatly appreciated.The text was updated successfully, but these errors were encountered: