Jody Garnett ha scritto:
> Thanks Andrea; this is the kind of thing I should of looked up :-(
>>> The Java API is using an Expression there? Darn. Well Andrea we can 
>>> also honestly use ExternalGraphic
>>> it has the ability to supply vendor specific parameters that are 
>>> expressions (and this is already used in our project).
>> Sorry, I don't see this possibility in the schema?
> The method name is:
> ExternalGraphic.setCustomProperties( Map<String,Object> )
> 
> Looking at the call hierarchy SLDParser uses this method to store a 
> paramList .. generated by parsing the Format child.

This is nowhere in the standard. Another hack to get past the
SLD limitations I guess?

> Understood; so my idea was to make up a "non" http url - say 
> "internal:mil2525b" and use the format to pass in the code? Theunsgis 
> had this kind of thing as one of his examples he sent me in email.

Sure, just don't see how using ExternalGraphic is any better than
using Mark (I've provided examples of how it seems worse below).

>> All in all I still prefer using marks and WellKnownName, given a
>> certain domain the mil stuff is well known and it's, afaik,
>> pure lineart graphic that fits well the Mark definition.
> Okay - that is honestly my preference as well  - as a beginner I would 
> find the WellKnownName thing easier to handle - the hard part is 
> figuring out if we can use an Expression to determine the WellKnownName.
> 
> For things like MIL2525B the actual code to use is sometimes a data 
> field; or at least an function call.
>> ExternalGraphic seems more geared towards internet accessible 
>> resources and you don't have control on color and painting attributes 
>> of what you're going to draw.
> Understood; the only remaining attraction I have to the idea is defining 
> a factory so we could intercept requests to external graphics and handle 
> them locally as an optimization I guess.

I lost you there. How is this any better than rolling the plugin
system against the WellKnownName?
Cheers
Andrea

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to