Script changes for MIL stuff
This code required a bit of a refactor to accommodate map components.
-
There is now a “Context” object to make passing things between methods a little cleaner.
-
When an object is a map set, the script descends into the components. This is hard to do using just the metadata (because the relationship direction goes the other way), but easy to do by scraping the ADRL webpage, so that is what this does.
-
Collections now actually use the collection metadata rather than trying to scrape the metadata from the webpage, thanks to some of the other refactors making this easier to do.
-
There are some MIL‐specific behaviours hidden under a
is_mappyflag, which is just set depending on whether the CSV starts withmil-. -
Bounding box information is pulled from the
extentof the object, which previously wasn’t handled.