On Thu, Jul 4, 2013 at 1:42 PM, Sergey Kolosov <[email protected]>wrote:

> I have a style with next snippet:
>
> <se:PolygonSymbolizer>
>     <se:Fill>
>         <se:SvgParameter name="fill">#ffaa00</se:SvgParameter>
>     </se:Fill>
>     <se:Stroke>
>         <se:SvgParameter name="stroke">#000000</se:SvgParameter>
>         <se:SvgParameter name="stroke-width">0.26</se:SvgParameter>
>     </se:Stroke>
> </se:PolygonSymbolizer>
>
>
> When i load this style with REST, geoserver truncates symbolizer:
>
> <sld:PolygonSymbolizer>
>     <sld:Fill/>
>     <sld:Stroke/>
> </sld:PolygonSymbolizer>
>
>
> Style is loaded without truncating with CssParameter instead of
> SvgParameter. So i think it is because of version of SLD.
> But on the other hand geoserver understand SvgParameter. I can load style
> in version 1.1 with SvgParameter in Style Editor and it works fine.
>
> So i wonder why doesn't REST allow to load style in version 1.1 if
> geoserver can work with that version (at least partly).
>

GeoServer reads and reformats the SLD file on upload to care for automatic
editors that do generate styles
programmatically and create a style that is unreadable (because there are
no spaces and newlines in it).
My guess is that the SLD 1.1 rewrite fails to re-write some of the elements.

As far as I know it's not possible to turn off this reformat functionality
at the moment (patches welcomed,
but mind, the current behavior should be preserved, a flag should be added
to choose whether to reformat
or not)

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

-------------------------------------------------------
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to