ProjNet4GeoAPI icon indicating copy to clipboard operation
ProjNet4GeoAPI copied to clipboard

Getting an error saying PROJCRS not recognized

Open donnyv opened this issue 5 years ago • 1 comments

Trying to use this WKT and its not liking the PROJCRS. I copied this from QGIS projection dialog box.

var SourceCoordSystem = new CoordinateSystemFactory().CreateFromWkt(FromWKT);

PROJCRS["NAD83 / New Jersey (ftUS)",
    BASEGEODCRS["NAD83",
        DATUM["North American Datum 1983",
            ELLIPSOID["GRS 1980",6378137,298.257222101,
                LENGTHUNIT["metre",1]]],
        PRIMEM["Greenwich",0,
            ANGLEUNIT["degree",0.0174532925199433]]],
    CONVERSION["SPCS83 New Jersey zone (US Survey feet)",
        METHOD["Transverse Mercator",
            ID["EPSG",9807]],
        PARAMETER["Latitude of natural origin",38.8333333333333,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8801]],
        PARAMETER["Longitude of natural origin",-74.5,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8802]],
        PARAMETER["Scale factor at natural origin",0.9999,
            SCALEUNIT["unity",1],
            ID["EPSG",8805]],
        PARAMETER["False easting",492125,
            LENGTHUNIT["US survey foot",0.304800609601219],
            ID["EPSG",8806]],
        PARAMETER["False northing",0,
            LENGTHUNIT["US survey foot",0.304800609601219],
            ID["EPSG",8807]]],
    CS[Cartesian,2],
        AXIS["easting (X)",east,
            ORDER[1],
            LENGTHUNIT["US survey foot",0.304800609601219]],
        AXIS["northing (Y)",north,
            ORDER[2],
            LENGTHUNIT["US survey foot",0.304800609601219]],
    AREA["USA - New Jersey"],
    BBOX[38.87,-75.6,41.36,-73.88],
    ID["EPSG",3424]]

donnyv avatar Dec 02 '20 19:12 donnyv

PROJCRS is WKT2, see #83.

FObermaier avatar Dec 03 '20 07:12 FObermaier