Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow COMPD_CS parsing stripping it #16

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

luipir
Copy link

@luipir luipir commented Feb 26, 2020

Compound SRS remain unsupported but at least no parsing error.
Vertical datum is tripped leaving only the horizontal part.
would fix proj4js/proj4js#282

Note: I didn't find a way to leave the wkt object with COMPD_CS and vertical datum and at the same time use the same API (wktParser)

@@ -388,4 +388,85 @@
"lat2": 0.7280931862903012,
"srsCode": "NAD83 / Massachusetts Mainland"
}
}, {
"code": "COMPD_CS[\"GCS_WGS_1984\",PROJCS[\"WGS 84 / UTM zone 30N\",GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",0],PARAMETER[\"central_meridian\",-3],PARAMETER[\"scale_factor\",0.9996],PARAMETER[\"false_easting\",500000],PARAMETER[\"false_northing\",0],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"Easting\",EAST],AXIS[\"Northing\",NORTH],AUTHORITY[\"EPSG\",\"32630\"]],VERT_CS[\"unknown\",VERT_DATUM[\"unknown\",2005],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"Up\",UP]]]",
"intermediate": [],
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not clear how it is used

@luipir luipir changed the title Allow _ in keyworks => allow COMPD_CS parsing [WIP] Allow _ in keyworks => allow COMPD_CS parsing Feb 26, 2020
@luipir luipir changed the title [WIP] Allow _ in keyworks => allow COMPD_CS parsing Allow _ in keyworks => allow COMPD_CS parsing Feb 26, 2020
@luipir luipir changed the title Allow _ in keyworks => allow COMPD_CS parsing Allow COMPD_CS parsing stripping it Feb 26, 2020
@yurivangeffen
Copy link

Is there any progress on this, or a way to support progress on this branch? Running into this issue while using ngageoint/geopackage-js.

Tim-Koordinates added a commit to Tim-Koordinates/wkt-parser that referenced this pull request Nov 7, 2022
code taken from: proj4js#16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compound SRS does not create a correct wkt output
2 participants