Mark Presling wrote:
Thanks Jody. I was afraid that it might come down to SLD styles. I
fair that it will be more work to put together an SLD style to do what
I want because of the complexity of what I need to do. I have a
feeling that I am heading down the wrong path with this now.
I have a "Road Event" WFS layer (points). Road events are of different
types (hazard, road works, etc) and have different statuses (open,
closed, deleted). For each road event I have to display an icon that
represents the type and the status (eg, a roadworks symbol with an O
for open). That's cool, I am doing that with SLD rules like the one
you provided.
The problem arises when I want to filter what events are displayed on
the map. For example, the user can enter the start date and end date,
filter on type, etc. The problem would be that the events would still
be returned by a query on the layer - ie, when I click to create a new
road event it checks that there is not one there already...
bah... this is getting WAY too off topic... sorry. I'll have to stop
and have a bit of a think about where I am going with this.
It is okay I think I understand, you have SLD figured out already in
order to describe how to display things. Seperate from that you want to
configure what will be displayed. James Machill and SLD 1.1 have some
interesting environment variable ideas that may work out ...
Now for my other architecture response, when defining your own workflow.
1. Put something new on the layer black board, in your case a Filter
2. Construct someway for the user to modify that filter (a Tool, a
StyleConfigurator whatever)
3. Subclass BasicStyleRenderer and have your subclass make use of the
additional filter
4. Implement the extention point to let uDig know about the new workflow
That is it, when the user places a filter on the layer blackboard, uDig
will notice and choose your renderer ;-)
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel