On Tue, Jan 1, 2013 at 11:43 AM, Ákos Maróy <[email protected]> wrote:

>  for Stroke is see that the defaults are specified in
> ConstantStroke.DEFAULT, and there is a reference there to the SLD spec, in
> terms of default values. you mentioned earlier that real-world uoms are
> part of SLD 1.1 - I wonder if this spec also deals with default values in
> cases of non-pixel uoms? I trued to find defaults in the SLD spec as found
> here: http://www.opengeospatial.org/standards/sld in document #05-078r4,
> and also in the schema definitions - but, didn't really find them. Most
> probably I was looking at the wrong place.
>

>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.

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)

Cheers
Andrea


-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
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