On 01/01/13 12:09, Andrea Aime wrote:
>
> From the SE specification, page 18:
>
> The “stroke-width” SvgParameter element gives the absolute width
> (thickness) of a
> stroke in units of measure as defined in the LineSymbolizer encoded as
> a float. The
> default is 1.0. Fractional numbers are allowed (with a
> system-dependent interpretation)
> but negative numbers are not.
>
thanks.
> Long story short, the default are fixed and independent of the unit of
> measure.
> They do make sense for the intended usage of SE uom (real world meters),
> not for your case of device units but... there is nothing we can do
> about it,
> I'm afraid using different defaults per unit would be a mess to handle
> in the code too.
>
> My suggestion would be to make the SLD parser recognize target device
> units
> that do make sense, and that also avoid having to specify decimal numbers,
> such as millimeter (and inches to a degree, although the inch is large
> and decimal
> numbers would have to be used anyways, but at least not too long ones)
>
I understand your point, and indeed it would be quite big a work to
implement all this in the code. so I'll go with your suggestion as above.

although I do feel inclined to point out that having values without
their respective units of measurement is quite lax. even in CSS, one
never has any value without the measurement type (say, 1px, 1em, 1pt,
etc.) moreover, I would recommend adding a remark / caution / warning on
the documentation page about UOM, that if an UOM attribute is supplied,
it is suggested that nothing is left as a default value, as the defaults
don't make sense / don't work as expected anymore.

also, this approach doesn't allow to mix units of measurements for the
same rule, although sometimes it makes sense. for example, it would make
sense to have the size of a box specified in device-size millimeters (or
real-world meters), but to have the stroke width that surrounds the box
specified in pixels. as now I see it, this is not possible in SLD. when
using CSS on the web, this is all possible, and is totally regularly used.

but, well, this is beyond my current scope now.


Akos


------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to