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

Obtain coordinate reference system from parsed GEF-file #7

Open
martijnkriebel opened this issue Aug 5, 2022 · 2 comments
Open

Obtain coordinate reference system from parsed GEF-file #7

martijnkriebel opened this issue Aug 5, 2022 · 2 comments

Comments

@martijnkriebel
Copy link

After parsing a GEF-file, the GefCpt object contains much of the metadata of the GEF-file. However, there doesn't seem to be a way to access the code of the coordinate reference system (CRS) while this is possible for the vertical datum (the "vertical_datum" attribute).

Even though one can assume that if the vertical datum code is 31000 (NAP), the CRS is probably also 31000 (RD), it would be best to explicitly check this. I would expect the CRS code to be located either in the "coordinates" attribute or as a separate attribute called "crs"/"coordinate_reference_system".

@EleniSmyrniou
Copy link
Collaborator

Could you maybe provide a gef file were this happens?
So we can investigate and have a common point of reference.

@martijnkriebel
Copy link
Author

An example GEF file can be downloaded here.

Additionally I found that Geolib+ determines the CRS and vertical datum using the data that is located on the line of MEASUREMENTTEXT=7 (CRS) and MEASUREMENTTEXT=8 (vertical datum). However, wouldn't it be better to use the XYID and ZID parameters for this? Not all GEF files contain MEASUREMENTTEXT 7 and 8, while they are all required to have XYID and ZID (which contain the reference system codes as well).

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

No branches or pull requests

2 participants