HuidaeCho / projpicker

Projection picker
GNU General Public License v3.0
5 stars 2 forks source link

WKT not working in ArcGIS Pro #52

Open HuidaeCho opened 2 years ago

HuidaeCho commented 2 years ago

WKT output from ProjPicker:

GEOGCRS["Korean 1995",
    DATUM["Korean Datum 1995",
        ELLIPSOID["WGS 84",6378137,298.257223563,
            LENGTHUNIT["metre",1]]],
    PRIMEM["Greenwich",0,
        ANGLEUNIT["degree",0.0174532925199433]],
    CS[ellipsoidal,2],
        AXIS["geodetic latitude (Lat)",north,
            ORDER[1],
            ANGLEUNIT["degree",0.0174532925199433]],
        AXIS["geodetic longitude (Lon)",east,
            ORDER[2],
            ANGLEUNIT["degree",0.0174532925199433]],
    USAGE[
        SCOPE["Geodesy."],
        AREA["Republic of Korea (South Korea) - onshore."],
        BBOX[33.14,124.53,38.64,131.01]],
    ID["EPSG",4166]]

EPSG:4166 defined by ArcGIS Pro (with added newlines for formatting; ArcGIS Pro doesn't like formatted WKT):

GEOGCS["GCS_Korean_Datum_1995",
    DATUM["D_Korean_Datum_1995",
        SPHEROID["WGS_1984",6378137.0,298.257223563]],
    PRIMEM["Greenwich",0.0],
    UNIT["Degree",0.0174532925199433]]

The following changes are needed to make the ProjPicker WKT work:

  1. Change GEOGCRS to GEOGCS
  2. Add UNIT["Degree",0.0174532925199433]
  3. Remove newlines

Working WKT with added newlines:

GEOGCS["Korean 1995",
    DATUM["Korean Datum 1995",
        ELLIPSOID["WGS 84",6378137,298.257223563,
            LENGTHUNIT["metre",1]]],
    PRIMEM["Greenwich",0,
        ANGLEUNIT["degree",0.0174532925199433]],
    CS[ellipsoidal,2],
        AXIS["geodetic latitude (Lat)",north,
            ORDER[1],
            ANGLEUNIT["degree",0.0174532925199433]],
        AXIS["geodetic longitude (Lon)",east,
            ORDER[2],
            ANGLEUNIT["degree",0.0174532925199433]],
    USAGE[
        SCOPE["Geodesy."],
        AREA["Republic of Korea (South Korea) - onshore."],
        BBOX[33.14,124.53,38.64,131.01]],
    UNIT["Degree",0.0174532925199433],
    ID["EPSG",4166]]
HuidaeCho commented 2 years ago

Check #53 as well.