theunsgis ha scritto:

>> So your case matches the ExternalGraphic case, not the well known
>> mark, since some of the symbol name elements imply a color.
>> My case instead is supporting the usage of font based shapes freely
>> as let the SLD specify how to stroke/fill them (think using
>> Wingdings font as a source of symbols), as well as MapServer
>> symbol definitions and, in the long term, Autocad symbol definitions
>> as well (since there is a ton of them around in the web).
>>
>> All of these are better suited for the Mark approach.
>>
> 
> I agree , with you in the instance of a certain character in a font , to use
> the mark approach.
> Maybe if someone just can confirm that the idea of sending params with a
> custom URL , if that is possible according to the URL standard?

The SLD standard allow you to specify params in the URL, but the
URL itself is static, you cannot pass feature parameters is it,
that's the main issue.
If you need to drive symbolization using feature attributes, by
following the standard as is, you'd have to create a rule
for each possible symbol. Which is not what you'd like to do
afaik, no?

If you're creating the styles programmaticaly (that is, not declaring
them in SLD) then I guess we could make the URL and Expression and
allow you to whatever you want with it.
Another possibility, that would work with SLD as well, is to always
provide the symbol factory with the full Feature object, and embed
attribute dependencies into the URL, something like:

mil://mySymbolName?param1=cqlExpression1&param2=cqlExpression2&...

where cqlExpressions are CQL expressions, they may be as simple
as an attribute name or very complex, some examples here:
http://docs.codehaus.org/display/GEOTDOC/01+CQL+Examples (ok, all
of these are filters, but you can make math/string/whatever expressions 
too).

> Just out of curiosity , i presume this is a short coming in the API to
> specify an font and a character
> for a mark? 

Yeah. Afaik the specification after SLD 1.0 (Symbology encoding 1.1) has 
some support for it (Mark has a "markindex" property that can be used
to refer a specific one in a library of symbols)

> I quickly scanned the mapserver page you revered to and i saw that they also
> can combine shapes to create a single 'mark' , if you will, Is that also
> your intention , in my opinion that would be great?

Well, combinining symbols with SLD is possible (just use multiple point 
symbolizers, as they use multiple STYLE directives) but you'd have to
create a monster SLD if you have attribute dependent styles (you'd
have to create a rule with filter on attributes for each possible
combination).

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to