-
Notifications
You must be signed in to change notification settings - Fork 10
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
No requirement can be found for test "feature S R Sconsistency" #78
Comments
What is the test file that reproduces the false-positive? |
Since this test is not in the current spec, it is only implied by requirement 13; and due to the fact that the test is being added to the upcoming specification, I recommend that this version of the test be removed at this time until it can be added for the upcoming specification. |
@lgoltz I do not feel comfortable answering this question until I can see a proper test case. Without it, I can't envision how we can go wrong. |
@jyutzler The test fails with https://hawk.compusult.net/ogc/PR_GGDM_3.0_Profile_File_Geodatabase.gpkg |
The issue is that since srs_id is held in both gpkg_contents and gpkg_geometry_columns, it is possible for data integrity issues to occur. The test is to ensure that for each table_name within gpkg_contents, verify that srs_id is consistent between gpkg_contents and gpkg_geometry_columns. A better SQL for this test for the FEATURES is: |
Requirement 146 was added to the specification to specifically address this issue and I believe that requirement is also coded into the ets-gpkg20. Therefore the FeatureSRSConsistency method may be removed and this issue can be closed. |
My assessment is that the check comparing the row counts of This test file is a bit big to add to the ETS so I will reproduce the issue elsewhere. Since there is already a test for R146 at FeaturesTests.featureGeometryColumnsDataValuesSrsId(), I see no need for the existing FeaturesTests.featureSRSconsistency(). |
We are fine with the solution and changes are successfully tested on the local environment. |
Test:
ets-gpkg12/src/main/java/org/opengis/cite/gpkg12/features/FeaturesTests.java
Lines 304 to 361 in 4770263
Test fails because the results of two sql statements are not equal (first if):
The test expects that both counts are equal.
In http://www.geopackage.org/spec/ I cannot find a test case with id
/base/core/contents/data/table_def/srs_id
, and I don't see that Requirement 13 makes the test necessary.Furthermore the if-else-statement in the end of the test can be simplified.
The text was updated successfully, but these errors were encountered: