Project references #449
Unanswered
MattReimer
asked this question in
XML - Project/Program
Replies: 1 comment
-
@MattReimer can you provide a little update on with 3.x wareshouse when you get a chance. My impression is you have implemented this as you envisioned in your answers here, but I am not sure if that is the case. I guess more to the point, what do XML business logic and project curators need to know. This is not a top priority to answer. Just sometime before the release of Beta Warehouse 3.x for lab to test. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note: this is for @KellyMWhitehead, @joewheaton and @philipbaileynar.
It relates to how we can safely reference upstream projects in the refactored version of the warehouse and some of the caveats I foresee.
The
extRef=""
attribute external project referencesThe extRef attribute is a way of referencing an upstream dataset inside your projects.
The main, universal purpose of the
extRef=""
attribute is to create a path for metadata to flow downwards in the system from the outputs of one project to the inputs of the next.When you use the
extRef=""
attribute and upload your project into the warehouse the dataset in question in theproject.rs.xml
file will be augmented with the metadata from the upstream project.A secondary benefit of using the
extRef
attribute is the system may only keep one copy of that layer and corresponding map tiles. This sharing will only happen in cases where the layers and the datasets share a 1:1 relationship like a TIF file, SHP file etc. Geopackages will not be able to use this functionality for reasons we will explain below.The simple 1:1 case (Geotiff, SHP):
For 1:1 layer:dataset types like GeoTiff, SHP, etc. The mechanism for referencing an upstream project is pretty simple:
An example of the complex Geopackages case:
FAQ
When do I use
extRef
inside<Geopackage>
like:<Geopackage extRef="#########">
?What happens to a tif/shp file if I mutate a layer a little bit but still use
extRef
before uploading it.extRef
is only for when you're referencing an upstream project dataset in its original form. If you need to change the layer in any way you should make it an intermediate project and you are responsible for migrating the Metadata yourself.What happens when the upstream project is deleted?
What happens if the upstream project changes this layer and re-uploads
Beta Was this translation helpful? Give feedback.
All reactions