Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Layer Selection vs Current Layer

Adrian Custer wrote:
Hey all,

I'm a bit lost as well and still sipping the morning brew...

As part of my "Geospatial operations" workflow, I imagine the user
starts by selecting the "Geospatial data" they want to work with. I
imagine this happens by users selecting a Map to work with and
subselecting some the elements of the map by choosing:
        - 1 or more "Layers" in the "Layers" view (using shift or ctrl
        to select several layers).
        - 1 or more selection areas on the Map (using bounding boxes
        (shift) or more generally a filter of some kind (by hand/gui)).
That's the selection I'm about to go after. So far things look broken.
The "Selection" view shows all the elements in the top selected layer of
the "Layers" view no matter what the "Filter" element says in the
"Selection" view. Also, the Filter bounding box only acts on the top
layer selected in the "Layers" view for highlighting elements in the
"Map" graphical view.

So is my intuitive feel for how to select "Geospatial resources" wrong?
Not at all ... I am afraid I am confusing things because we have three definitions of "selected":
1. There is the workbench selection (aka what that article was about)
- if the layer view is the active part then the workbench selection would consist of 1 or more Layer objects - if the Map editor was selected then the workbench selection would depend on what tool you were using, a Feature object would be selected if you were using an edit tool for example

2. There is a Filter associated with each layer (perhaps this should be called "filter" or "indicated") - this indicates which features are considered "selected" for rendering (or for any code that wants to check that care about such things)

3. There is the concept of a Map having a "selected" Layer (perhaps this should be called "current"?) - note a map may also have a "selected" feature selected for those editing tools etc... - more generally this can be viewed as anything on the Map blackboard used for collaboration

Sigh I am not even sure if things are always this nice:
- I suspect you you can ask the currently selected object to "adapt" to something else, so your Feature could be asked to adapt to the Layer it was from ...

Jody



Back to the top