SLDTransformer does not encode vendor extensions properly with respect to the
schema
------------------------------------------------------------------------------------
Key: GEOT-3269
URL: http://jira.codehaus.org/browse/GEOT-3269
Project: GeoTools
Issue Type: Bug
Reporter: Justin Deoliveira
Fix For: 2.6.6, 2.7-M4
Attachments: GEOT-3269.patch, test.sld
This can be seen with GeoServer (who has an SLD schema that the extensions
validate against) by uploading a style (via RESTConfig, did not try other
means) that looks like this:
{code}
...
<sld:Graphic>
<sld:ExternalGraphic>
<sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" x
link:type="simple" xlink:href="file:/opt/opengeo/suite/data_dir/styles/interstat
e_524.png"/>
<sld:Format>image/png</sld:Format>
</sld:ExternalGraphic>
<sld:Size>
<ogc:Literal>24</ogc:Literal>
</sld:Size>
</sld:Graphic>
<sld:VendorOption name="group">no</sld:VendorOption>
<sld:VendorOption name="spaceAround">150</sld:VendorOption>
</sld:TextSymbolizer>
...
{code}
Looking at the that gets written on disk looks like this:
{code}
<sld:VendorOption name="group">no</sld:VendorOption>
<sld:VendorOption name="spaceAround">150</sld:VendorOption>
<sld:Graphic>
<sld:ExternalGraphic>
<sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" x
link:type="simple" xlink:href="file:/opt/opengeo/suite/data_dir/styles/interstat
e_524.png"/>
<sld:Format>image/png</sld:Format>
</sld:ExternalGraphic>
<sld:Size>
<ogc:Literal>24</ogc:Literal>
</sld:Size>
</sld:Graphic>
</sld:TextSymbolizer>
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel