FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Re-projection issues · Issue #232 · SharpMap/SharpMap · GitHub

Repository navigation

Re-projection issues #232

Description

I have a shapefile layer in WGS 84 coordinate system, and want to re-project it to some other CS, for example North Pole Stereographic (ESRI:102018) or North Pole Lambert Azimuthal Equal Area (ESRI:102017).
I use the following code, where I set up source CS (scs) and create target CS (tcs) from WKT.

ProjNet.CoordinateSystems.CoordinateSystemFactory cFac = new ProjNet.CoordinateSystems.CoordinateSystemFactory();
GeoAPI.CoordinateSystems.IGeographicCoordinateSystem scs = ProjNet.CoordinateSystems.GeographicCoordinateSystem.WGS84;
GeoAPI.CoordinateSystems.ICoordinateSystem tcs = cFac.CreateFromWkt("PROJCS[\"North_Pole_Stereographic\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"WGS_1984\",SPHEROID[\"WGS_1984\",6378137,298.257223563]],PRIMEM[\"Greenwich\",0],UNIT[\"Degree\",0.017453292519943295]],PROJECTION[\"Stereographic\"],PARAMETER[\"False_Easting\",0],PARAMETER[\"False_Northing\",0],PARAMETER[\"Central_Meridian\",0],PARAMETER[\"Scale_Factor\",1],PARAMETER[\"Latitude_Of_Origin\",90],UNIT[\"Meter\",1],AUTHORITY[\"EPSG\",\"102018\"]]");
wrld.CoordinateTransformation = new ProjNet.CoordinateSystems.Transformations.CoordinateTransformationFactory().CreateFromCoordinateSystems(scs, tcs);        

But when it comes to CoordinateTransformation, I get an error System.NotSupportedException: Projection Stereographic is not supported. What am I doing wrong?

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL