Closed lambdatronic closed 13 years ago
this issue results from a complete misunderstanding of what a context is vs. a gazetteer location. The way to use locations in contexts has been documented before (in emails only I'm afraid). I'll write a doc page on contexts on the wiki when I can, although at this point just a look at a defcontext should suggest what the difference is. The fact that you can do 'list locations' and 'list contexts' with different outputs should also suggest that they're not out of sync, just different things that must not be in sync.
Closing the issue as nothing in it makes any sense.
Closing the issue as nothing in it makes any sense.
Now that is just rude.
My description of the issue was extremely clear with lots of examples. If locations and contexts are different things, perhaps you could simply state that and give a documented explanation of how we can use locations in our modelling (as currently neither Ken, Brian, nor I have any clue as to how to do this). Furthermore, perhaps you could describe a mechanism to extract locations from contexts so we could use some of these commands (e.g. locate and coverage) to aid in our model debugging.
Sheesh.
The gazetteer system has seen numerous iterations, and over time they have fallen out of sync with one another. This should be remedied prior to a stable release of ARIES.
The locate command provides this list of locations to choose from:
Running locate for any location in this list, correctly returns its polygon in WKT format:
However, attempting to use this command on any of the contexts defined in core.contexts.beta, leads to failure:
Similarly, the coverage command's --area option only accepts locations from the locate-printable list:
This is unintuitive because the observe, model, and storyline commands now expect contexts defined in core.contexts.beta and disregard those printed by locate.
It seems desirable that all available locations/contexts should be centrally available via the locate command, and that all commands using location/context information should work with those defined both via defcontext statements and via the external gazetteer file mechanism.
Additionally, the gazetteer command should also be linked into this to also make its imported layers available via locate, observe, coverage, model, and storyline.