G'day;

Withing a single "layer" the order in which content is drawn is based on the Style object; the style object consists of a list of FeatureTypeStyle objects - each one of which is drawn in order. The FeatureTypeStyle will only engage if the name matches; FeatureTypes form a heirarchy - normally we use the generic "Feature" - but you can be more specific and list the name of your exact FeatureType.

Within a FeatureType style there are rules (where you can define your own filters to determine when to draw) as well as a list of Symbolizers which define what colors, labels and so on are used for drawing.

You can experiment with all of this within uDig - with no coding. Open up the style editor and switch over to the XML page. Try changing the name used for the feature type style to something other than feature and so on ...

Cheers,
Jody
A complicated alernative (since you have a drawing implemenation already) would be to take your custom JUMP rendering code and port it to the Renderer api. You can use the rendering metrics factory to ensure the render is only used for your content. I don't normally recommend this but since you have some drawing code already ...



Wellmann, Harald wrote:
I am writing a pluging for a proprietary file format containing
different feature types. In that file format, the features are sorted
according to drawing order (background to foreground).

I would like to work with the BasicFeatureRenderer and a Theme Style to
draw the features in type-dependent colors in the right order. I would
like to AVOID creating a separate layer for each feature type.

This used to work in JUMP, but I'm not sure whether uDig's design
supports this approach. Does a themed style iterate over the features
and then determine the style per feature, or does it first filter for
all features matching a given attribute value and then draw all
corresponding features, which effectively rearranges the sorting order
of the feature collection?

In the second case, I would need to make sure that the Renderer selects
the attributes in the correct order...

Regards,

Harald *******************************************
innovative systems GmbH Navigation-Multimedia
Geschaeftsfuehrung: Dr. Peter Geiselhart - Kevin Brown - Edwin Summers - Regis Baudot Sitz der Gesellschaft: Hamburg - Registergericht: Hamburg HRB 59980 *******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und 
loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe 
dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to