David Winslow ha scritto:

> This is a really cool feature, so I'm pretty excited about ripping it 
> off for GeoServer CSS :)  However, when I looked at the spec I was 
> really surprised to see that UOM is an attribute of the symbolizer 
> instead of the parameter  (a Symbolizer isn't a measurement!!)  

Yeah, it means every measure inside the symbolizer will be in, say,
meters. The CSS ability to specify each bit in a different UOM
has yet to come (not sure if it ever will actually).

> I also 
> saw this little tidbit:
> 
>> It is also possible to use pixel values inside a Symbolizer that uses 
>> a uom: px
>> has to be appended to the corresponding values in this case (e.g. 5px 
>> stands for 5 pixel).

Oh? I did not know about this one. But yeah, found it:

"It is also possible to use pixel values inside a Symbolizer that uses a 
uom: px has to be appended to the corresponding values in this case 
(e.g. 5px stands for 5 pixel)."

> By my reading, the UomRescalingVisitor doesn't handle this option.  (And 
> it seems like fully supporting this via a visitor will be a problem; 
> with weird enough filter functions in a parameter the "px" suffix might 
> appear and disappear for different features in the same symbolizer.)
> 
> In either case, I won't be able to faithfully represent styles like this 
> one (hopefully pretty rare, but quite naturally encoded in CSS):
> 
> * {
>    stroke-width: 2m;
>    stroke-dashoffset: 2ft;
> }
> 
> but it would be nice to at least be able to mix in pixel values with 
> real-world measures.  Anyone care to point out how I misread the visitor 
> code?  I'm crossing my fingers.

You did not misread the code, it has been designed to support just the
uom at the symbolizer level.
In GeoTools we lack the very support for representing an uom attached
to each stroke width, size and whatnot, so adding support for what
you're saying might require major changes around in the code...

Cheers
Andrea


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

------------------------------------------------------------------------------

_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to