-
Notifications
You must be signed in to change notification settings - Fork 17
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
GMLAS mode: retrieve external codelists #38
Comments
@rouault Would calling GMLAS on the xlink href in "append" mode on the database work ? If yes, how could the link between the existing layers and the xlink href be made ? Would it be handled by gdal or does it have to be handled application-side by the QGIS plugin ? |
Probably in some (most ?) cases, but I don't think we can guarantee that in all cases, given the way the driver tries to generate unique layer names fitting in 64 characters (with truncation logic and addition of serial numbers when duplicates are found). When done on the same set of input schemas, this will of course always give the same result. But on another set of schemas, desambiguation might result in different layer names, for XML types that are identical.
Should be done by QGIS. ogr2ogr append mode just appends. But you may also need to create new fields like parent_child_pkid if they don't exist initially. |
So, a possible scenario would be:
|
+1 |
@sgrellet I'm not sure yet of the details, but I am leaning toward something non destructive. "Replacing" the external key would mean deleting "_href" fields and replacing them by a link to another layer. |
@mhugo : ok. In a way makes sense not to modify content added by the dataprovider |
non testable on v1.2.0-rc2 (linked to #53 bug report on the load layer button issue).
The load layer button approach as it is right now won't work for codeLists (no LoadLayer List capabilities). |
@rouault About the loading of new codeList, I guess the only way to make GMLAS aware of new codeList is to add it to the gmlasconf.xml and reload everything ? Or is there a smarter way to do ? |
@mhugo Yes if you declare a new codeList "repository" (ie a new URLSpecificResolution.URLPrefix in gmlasconf.xml parlance), you need to reload everything (or implement that behaviour on your side adding new fields, etc...) |
Under GMLAS toolbox plugin : v1.2.0-rc7 Works fine with INSPIRE codeLists for example using Version de Python : 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] |
We will need to be able to configure in the Plugin settings what format (http Accept) should be used with which URI. |
Enable the user to do 'Resolve external' from the forms when DB structure was generated by the GMLAS driver mode
The text was updated successfully, but these errors were encountered: