-
Notifications
You must be signed in to change notification settings - Fork 790
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
Database: add constraint for unicity of CRS and operation names #4071
Conversation
More exactly on projected_crs, vertical_crs, compound_crs, helmert_transformation, grid_transformation, other_transformation and concatenated_operation tables. Bump database layout version to 1.4
Expected yes, but probably not necessary. Is it problematic that they are the same? |
Mostly a matter of clarity. Unless the transformations do the same thing (and here it is clearly not the case as at least some of them are Helmert vs grid-based, or using different grids), I believe they should have different names. For example "projinfo -s X -t Y" reports a coordinate operation name for each operation it synthetizes and being able to 1-1 match the name to an elementary operation can make understanding easier" |
I haven't looked too closely but there's probably quite a bit of doing the same thing even though it looks different. Re-use is a big feature of this set of transformations. But I see your point and will give this a review when I have time for it in a couple of weeks. |
If I understand correctly, it is also blocking in case an entry (crs, transformation, ...) has the same name between different authorities. For instance, if there is a |
…rities provided by upstream PROJ
We have a mind connection, because I've just pushed a commit, that restricts the unicity check to only the objects for the authorities we provide (thanks to a new |
If we add a ISO registry with duplicated entries, we might revisit the current check. We could for example allow duplicate names when one objects belongs to EPSG and the other one to ISO, but not within the same authority |
If I understand Roger Lott of the IOGP geodetic committee correctly, EPSG, as a matter of policy, mirrors the contents of the ISO register, so adding ISO should not be necessary/will add duplicates |
Good to know. |
A consequence of new database constrains introduced in OSGeo#4071.
A consequence of new database constrains introduced in OSGeo#4071.
A consequence of new database constrains introduced in OSGeo#4071.
A consequence of new database constrains introduced in OSGeo#4071.
More exactly on projected_crs, vertical_crs, compound_crs, helmert_transformation, grid_transformation, other_transformation and concatenated_operation tables.
Bump database layout version to 1.4
CC @jjimenezshaw : triggered by our exchange with IOGP
@kbevers I've noticed a few duplicates of transformation with same names in the NKG namespace. Is that expected or copy&paste errors ?