Luca Morandini ha scritto:
>> - have it recognize a wktlib:// prefix too that points to a file,
>>     something like "wktlib://path#name"
>>     Possibly so that the path can be a relative reference into the
>>     GeoServer data dir, would be nice to have wktlib://mylib#star
>>     where the data dir contains $data_dir/styles/mylib.properties.
>>     Should be doable by allowing for pluggable path resolvers
>>     of some kind... or to make it easier, just do the abstract class
>>     in GeoTools and then make a subclass in GeoServer that has the
>>     lookup logic.
> 
> Do you mean a property file like:
> star=LINESTRING(10 20, 20 20, ...)
> square=POLYGON((10 10, ...))
> 
> ?

Yep, that's the idea indeed

> 
>> What do you think?
> 
> Well, while I clearly see the need for SVG, the implementation of this 
> library 
> looks to me like overstretching the requirement a bit... but it would be a 
> rather 
> elegant solution :)
> 
> 
>>> I've considered Batik too... but that piece of code (the "orphan" one) does
>>> exactly what's needed, doesn't it ?
>> Err... no, I was just refererring to an idea, which is to let Batik
>> draw to a Graphics (which it can do) and have a special Graphics
>> implementation that steals the Shape objects passed down to it
> 
> Never programmed Batik, I will have to study it first.
> 
> One question: shall WKT and SVG be confined in a coordinate space of (-0.5 
> -0.5, 
> 0.5 0.5) for the GraphicMark to work ?

The once had to be confined and be square, I know Milton removed the 
squareness requirement with one of his patches already, but I think
the shapes still need to be cehtered around 0... anyways, if they are 
not it's just a matter of creating a AffineTransform and apply it to the
shape to make it 0 centered

Cheers
Andrea


-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to