H R created Bug GEOT-4228
Issue Type: Bug Bug
Affects Versions: 8.0
Assignee: Jody Garnett
Attachments: 1.3.0Capabilities_StyleAbstractTest.xml, WMSSchema_StyleAbstractTest.java
Components: wms extension
Created: 13/Aug/12 10:37 AM
Description:

In a WMS 1.3.0 capabilities document it is possible to define an abstract for a layer style like this:

<Layer>
...
<Style>
...
<Abstract>Default Abstract</Abstract>
...
</Style>
...
</Layer>

But when this abstract is specified for a style, GeoTools does not return the correct legend URL. Instead it just returns the content of the abstract tag. If the abstract tag is empty, it just returns an empty string. When no abstract tag is present for a layer style, all works as expected.

I've attached a test case to show the problem. I've used a modified version of the WMSSchemaTest from the gt-wms project (geotools/modules/extension/wms) with a modified 1.3.0Capabilities.xml file for this purpose.

The problem is probably connected with hard coded element positions in the org.geotools.data.wms.xml.WMSComplexTypes class (see lines 4172-4174). This came with the patch for GeoTools issue 4149 (see http://jira.codehaus.org/browse/GEOT-4149) to get legend URLs from WMS capabilites documents and was set the fixed for version 8.0-RC2.

Project: GeoTools
Priority: Major Major
Reporter: H R
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to