[Geoserver-users] SvgParameter versus CSSParameter

Hi List,
Going through the SVG stuff, I came across this page:
http://docs.geoserver.org/stable/en/user/styling/sld-reference/textsymbolizer.html?highlight=label#example

which makes it clear that font’s require a “” for determining font and stuff.

However, this fails in the validator which says it wants SVGParameter, which is also what the specification says.

Is there a reason the documentation says “cssparameter”? It does appear to work anyway, despite failing the validator and not being in the spec.

Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

CssParameter is the element used by the SLD 1.0 spec to supply certain styling parameters. In the Symbology Encoding spec (which is basically SLD 1.1.0) this element name was changed to SvgParameter.

(Thanks very much, OGC. I expect that with the rise in popularity of CSS, this will be changed back in the next version)

GeoServer mostly implements SLD 1.0, with a smattering of SE 1.1.0.

I’m puzzled by your comment that fails validation - when running a trunk version of GeoServer I see the opposite behaviour (CssParameter validates, but SvgParameter doesn’t).

On Wed, Jan 9, 2013 at 9:35 AM, Jonathan Moules <jonathanmoules@anonymised.com> wrote:

Hi List,
Going through the SVG stuff, I came across this page:
http://docs.geoserver.org/stable/en/user/styling/sld-reference/textsymbolizer.html?highlight=label#example

which makes it clear that font’s require a “” for determining font and stuff.

However, this fails in the validator which says it wants SVGParameter, which is also what the specification says.

Is there a reason the documentation says “cssparameter”? It does appear to work anyway, despite failing the validator and not being in the spec.

Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.


Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only – learn more at:
http://p.sf.net/sfu/learnmore_122612


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Martin Davis
OpenGeo - http://opengeo.org
Expert service straight from the developers.

On Wed, Jan 9, 2013 at 6:35 PM, Jonathan Moules <jonathanmoules@anonymised.com.4942…> wrote:

Hi List,
Going through the SVG stuff, I came across this page:
http://docs.geoserver.org/stable/en/user/styling/sld-reference/textsymbolizer.html?highlight=label#example

which makes it clear that font’s require a “” for determining font and stuff.

However, this fails in the validator which says it wants SVGParameter, which is also what the specification says.

Is there a reason the documentation says “cssparameter”? It does appear to work anyway, despite failing the validator and not being in the spec.

The documentation refers to SLD 1.0, which uses cssparameter.
Your SLD is probably using version 1.1 instead, which uses svgparameter for the same task.
GeoServer supports SLD 1.0 quite well, SLD/SE 1.1 not as well (various parts are not supported).

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


Hi Both,
Thanks for the replies.

Yup, the spec in question is 1.1.0, as is the SLD.

Martin:
“I’m puzzled by your comment that fails validation - when running a trunk version of GeoServer I see the opposite behaviour (CssParameter validates, but SvgParameter doesn’t).”

At least for SLD 1.1.0, on GeoServer 2.2.3, CSSParameter definitely fails, and SvgParameter passes, so this part of the spec has been implemented.

Cheers,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.