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

Compound SRS does not create a correct wkt output #282

Open
jessyst opened this issue Jan 23, 2018 · 3 comments · May be fixed by proj4js/wkt-parser#16
Open

Compound SRS does not create a correct wkt output #282

jessyst opened this issue Jan 23, 2018 · 3 comments · May be fixed by proj4js/wkt-parser#16

Comments

@jessyst
Copy link

jessyst commented Jan 23, 2018

I am using the EPSG:7514 projection which is a compound projection. When trying to get this projection it creates a cleanWKT but with no projName. I think this is due to the nested Projection. Therefore the projection fails.

Do you have a solution for this?

REPRODUCE
proj4('COMPD_CS["Amersfoort / RD New + NAP",PROJCS["Amersfoort / RD New",GEOGCS["Amersfoort",DATUM["D_Amersfoort",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.017453292519943295]],PROJECTION["Oblique Stereographic"],PARAMETER["central_meridian",5.387638888888891],PARAMETER["latitude_of_origin",52.15616055555556],PARAMETER["scale_factor",0.9999079],PARAMETER["false_easting",155000.0],PARAMETER["false_northing",463000.0],UNIT["m",1.0]],VERT_CS["Normaal Amsterdams Peil",VERT_DATUM["Normaal Amsterdams Peil",2005],UNIT["m",1.0]]]')

@calvinmetcalf
Copy link
Member

we don't currently support compound projections, that being said, is that even the correct projection? http://epsg.io/7514 looks completely different

@jessyst
Copy link
Author

jessyst commented Jan 23, 2018

oops I mean 7415 Typo!

@luipir
Copy link

luipir commented Feb 26, 2020

as far I can see there are two problems:

  1. COMPD_CS are not supporte from the geodesic point of view
  2. if someone want to get rid of the vertical part have error parsing the wkt string. A temporary workaround is to parte the WKT, get the horizontal SRS and define proj basing on this. but wkt-parser module have error parsing it not considering "_" char as possible element of the keywords.

Fixing the parse would be enough to extract horizontal SRS and use it to create proj4 string

@luipir luipir linked a pull request Feb 26, 2020 that will close this issue
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 a pull request may close this issue.

3 participants