Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] [jira] Created: (UDIG-1456) uDig WMS style dialog tricked by duplicated titles

uDig WMS style dialog tricked by duplicated titles
--------------------------------------------------

                 Key: UDIG-1456
                 URL: http://jira.codehaus.org/browse/UDIG-1456
             Project: uDIG
          Issue Type: Bug
          Components: wms
    Affects Versions: UDIG 1.1.0
            Reporter: Andrea Aime
             Fix For: UDIG 1.1.1


If a capabilities document contains something like:

{code:xml}
<Style>
          <Name>giant_polygon</Name>
          <Title>Default Styler</Title>
          <Abstract/>
          <LegendURL width="20" height="20">
            <Format>image/png</Format>
            <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:type="simple" xlink:href="http://localhost:8080/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&amp;FORMAT=image/png&amp;WIDTH=20&amp;HEIGHT=20&amp;LAYER=tiger:giant_polygon"/>
          </LegendURL>
        </Style>
        <Style>
          <Name>green</Name>
          <Title>Default Styler</Title>
          <Abstract/>
          <LegendURL width="20" height="20">
            <Format>image/png</Format>
            <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:type="simple" xlink:href="http://localhost:8080/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&amp;FORMAT=image/png&amp;WIDTH=20&amp;HEIGHT=20&amp;LAYER=tiger:giant_polygon"/>
          </LegendURL>
        </Style>
{code:xml}

Only one style called "Default Styler" will appear in the WMS named styles UI. The format of drop down items in the UI should be somethig like "<name>: <title>", or simply name and have a separate title field, as what is supposed to be unique is the name, not the title (thought I admit having dupe titles is not good practice)

-- 
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

        


Back to the top