-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
GeometryValidator-Different results than OGC Cite tests for left-handed CRS #1480
Comments
As proposals to solve this issue, we may suggest different approaches to obtain the same results than CITE, considering: a) Revise the source code at ExteriorRingOrientation.java class by modifying the condition applied to left-handed CRSs b) Revise the source code at AbstractGeometryValidationEvent.java class, modifying the method isLeftHand() in order to apply special conditions to adapt it to the behaviour of CITE. c) Revise the definition of the CRS in order to adapt it to left-handed/right-handed definition of of CITE. |
The problem reported is becoming quite critical for the INSPIRE community and we need to implement a solution for it in the INSPIRE Reference Validator, which is in turn based on the ETF validation tool, which uses deegree. I would like to clarify that we can take care of the pull request, but we would need some feedback from the deegree community/PSC on which approach (among the proposed ones, or a new one) would be best. Thank you. |
@jenriquesoriano Thank you for sharing your findings. You mentioned that OGC TEAM Engine is reporting the correct results as expected for EPSG:3035. Do I read the entries in the column "Team Engine" correctly? Are you aware that similar geometries in other left-handed CRS are also affected? To fix this issue I do propose to prepare a pull request wich contains:
And to discuss the proposed approaches I invite you all @MarcoMinghini @jenriquesoriano @fernandocuevasgdtel to one of our next TMC meetings: next meeting is Wednesday 2023-04-19 at 1700-1800 CEST. See https://www.deegree.org/community/ and https://github.com/deegree/deegree3/blob/main/CONTRIB.md#irc-channel Any contribition is welcome. |
@tfr42 . Thanks for your feedback. We will attend to the next TMC meeting on Wednesday 2023-04-19 at 1700-1800 CEST. |
Dear deegree community,
we have noticed an issue with the validation of the geometry's orientation results provided by deegree. This is the same issue to which we have contributed some years ago. deegree is reused by the open source ETF validation framework, which is in turn used by the INSPIRE Reference Validator and the latter is the source application where we spotted the issue.
Test results for geometry orientation using deegree and the OGC TEAM Engine are different for the same geometry and declared CRS.
After some investigation, it seems that this issue is related with the coordinates treatment, in particular the algorithm that decides if a CRS is left-handed or right-handed and how to deal with the coordinates.
For this CRS: http://www.opengis.net/def/crs/EPSG/0/3035, the obtained results are as follows:
We have tested it in our own application, but we have created this piece of code to help reproduce the issue (thanks to the source code in the initial comment.
We have investigated the issue and it seems to us that it is related to the ExteriorRingOrientation.java class or to how a CRS is considered right-handed or left-handed in the AbstractGeometryValidationEvent.java class.
In the ExteriorRingOrientation.java class the method that would be related to this matter would be is Exterior():
Or in the AbstractGeometryValidationEvent.java class the method would be isLeftHand():
It may also be that the order of the axis in certain systems when reading them is not the same as the one described in the CRS, causing a different treatment of their coordinates than the one that should be used.
Thus, as the results provided by deegree are different for this left-handed CRSs compared with the OGC TEAM Engine, what would be the correct output so they would both be the same? @tfr42 @jechterhoff
Thanks for your attention.
Best,
The text was updated successfully, but these errors were encountered: