On Tue, Jan 1, 2013 at 1:32 PM, Ákos Maróy <[email protected]> wrote:
> 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.
>
SLD is not CSS, and the default do make sense within the limits of the
standard specification, what's causing troubles is the extension that
we are discussing.
But I agree that the documentation should point out about possible issues.
That said, if the current list of units:
http://www.opengeospatial.org/se/units/metre
http://www.opengeospatial.org/se/units/foot
http://www.opengeospatial.org/se/units/pixel
is extended with the following two:
http://www.opengeospatial.org/se/x-units/target/mm
http://www.opengeospatial.org/se/x-units/target/inch
I guess the current defaults are still going to be reasonable (ok, one inch
is too large, but the issue is easily fixed, it's not going to give you a
fully
black map like using 1m)
>
> 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.
>
Right, CSS is a better fit for styling than SLD in many respects, and
GeoServer
comes with its own example here:
http://docs.geoserver.org/stable/en/user/community/css/index.html
and in particular here:
http://docs.geoserver.org/stable/en/user/community/css/values.html
That said, the above still has to map do the internal model which is based
1-1
on SLD 1.0/SE 1.1, it just makes things easier to write and then the CSS
is translated on the fly in an eventually very large equivalent SLD.
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