[Geoserver-devel] [jira] Created: (GEOS-3892) Discrete ColorMap ignores the final ColorMap entry

Discrete ColorMap ignores the final ColorMap entry
--------------------------------------------------

                 Key: GEOS-3892
                 URL: http://jira.codehaus.org/browse/GEOS-3892
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 2.0.1
         Environment: Windows XP
            Reporter: Mike Pumphrey
            Assignee: Simone Giannecchini
            Priority: Minor
             Fix For: 2.0.2

Given the following SLD, one would expect three discrete colors in the resulting style. However, the last (highest) entry is always ignored, so any values higher than 200 are rendered as blank.

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
    xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
    xmlns="http://www.opengis.net/sld&quot;
    xmlns:ogc="http://www.opengis.net/ogc&quot;
    xmlns:xlink="http://www.w3.org/1999/xlink&quot;
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
  <NamedLayer>
    <UserStyle>
      <FeatureTypeStyle>
        <Rule>
          <RasterSymbolizer>
            <ColorMap type="intervals">
              <ColorMapEntry color="#008000" quantity="150" />
              <ColorMapEntry color="#000000" quantity="200" />
              <ColorMapEntry color="#663333" quantity="256" />
            </ColorMap>
          </RasterSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

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

     [ http://jira.codehaus.org/browse/GEOS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simone Giannecchini reopened GEOS-3892:
---------------------------------------

Discrete ColorMap ignores the final ColorMap entry
--------------------------------------------------

                Key: GEOS-3892
                URL: http://jira.codehaus.org/browse/GEOS-3892
            Project: GeoServer
         Issue Type: Bug
         Components: WMS
   Affects Versions: 2.0.1
        Environment: Windows XP
           Reporter: Mike Pumphrey
           Assignee: Simone Giannecchini
           Priority: Minor
            Fix For: 2.0.x, 2.1.x

        Attachments: Data_Artificial_Endpoint.png, Data_No_Endpoint.png, Legend_Artificial_Endpoint.png, Legend_No_Endpoint.png, rain_intervals.jpeg, rain_normal.jpeg, SLD_Artificial_Endpoint.png, SLD_No_Endpoint.png

Given the following SLD, one would expect three discrete colors in the resulting style. However, the last (highest) entry is always ignored, so any values higher than 200 are rendered as blank.
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
    xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
    xmlns="http://www.opengis.net/sld&quot;
    xmlns:ogc="http://www.opengis.net/ogc&quot;
    xmlns:xlink="http://www.w3.org/1999/xlink&quot;
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
  <NamedLayer>
    <UserStyle>
      <FeatureTypeStyle>
        <Rule>
          <RasterSymbolizer>
            <ColorMap type="intervals">
              <ColorMapEntry color="#008000" quantity="150" />
              <ColorMapEntry color="#000000" quantity="200" />
              <ColorMapEntry color="#663333" quantity="256" />
            </ColorMap>
          </RasterSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

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