[Geoserver-devel] [jira] Created: (GEOS-1811) BBOX filters created by the SLDParser cannot be encoded or cloned properly

BBOX filters created by the SLDParser cannot be encoded or cloned properly
--------------------------------------------------------------------------

                 Key: GEOS-1811
                 URL: http://jira.codehaus.org/browse/GEOS-1811
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 1.6.2
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 1.6.3

The following WMS request using SLD_BODY:

{panel}
http://localhost:8080/geoserver/wms?HEIGHT=317&WIDTH=800&SRS=EPSG%3A4326&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=-145.489487296875,17.49445597548828,-46.21178370312501,56.83324602451172&SLD_BODY=<StyledLayerDescriptor+version%3D'1.0.0' ++xmlns%3D'http%3A%2F%2Fwww.opengis.net%2Fsld' ++xmlns%3Axsi%3D'http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance' ++xsi%3AschemaLocation%3D'http%3A%2F%2Fwww.opengis.net%2Fsld http%3A%2F%2Fschemas.opengeospatial.net%2Fsld%2F1.0.0%2FStyledLayerDescriptor.xsd'> ++<NamedLayer> ++++<Name>topp%3Astates<%2FName> ++++<UserStyle> ++++++<FeatureTypeStyle> ++++++++<Rule> ++++++++++<Filter+xmlns%3D"http%3A%2F%2Fwww.opengis.net%2Fogc"> ++++++++++++<BBOX> ++++++++++++++<PropertyName>the_geom<%2FPropertyName> ++++++++++++++<gml%3ABox+xmlns%3Agml%3D"http%3A%2F%2Fwww.opengis.net%2Fgml"+srsName%3D"EPSG%3A4326"> ++++++++++++++++<gml%3Acoordinates>-100%2C41+-88%2C44<%2Fgml%3Acoordinates> ++++++++++++++<%2Fgml%3ABox> ++++++++++++<%2FBBOX> ++++++++++<%2FFilter> ++++++++++<PolygonSymbolizer> ++++++++++++<Fill> ++++++++++++++<CssParameter+name%3D'fill'>%23FF0000<%2FCssParameter> ++++++++++++<%2FFill> ++++++++++<%2FPolygonSymbolizer> ++++++++<%2FRule> ++++++<%2FFeatureTypeStyle> ++++<%2FUserStyle> ++<%2FNamedLayer> <%2FStyledLayerDescriptor>
{panel}

whose SLD, in non url encoded form, is:

{code:xml}
<StyledLayerDescriptor version='1.0.0'
  xmlns='http://www.opengis.net/sld
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance
  xsi:schemaLocation='http://www.opengis.net/sld
http://schemas.opengeospatial.net/sld/1.0.0/StyledLayerDescriptor.xsd’>
  <NamedLayer>
    <Name>topp:states</Name>
    <UserStyle>
      <FeatureTypeStyle>
        <Rule>
          <Filter xmlns="http://www.opengis.net/ogc&quot;&gt;
            <BBOX>
              <PropertyName>the_geom</PropertyName>
              <gml:Box xmlns:gml="http://www.opengis.net/gml&quot; srsName="EPSG:4326">
                <gml:coordinates>-100,41 -88,44</gml:coordinates>
              </gml:Box>
            </BBOX>
          </Filter>
          <PolygonSymbolizer>
            <Fill>
              <CssParameter name='fill'>#FF0000</CssParameter>
            </Fill>
          </PolygonSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
{code}

won't work properly because the SLDParser builds a filter using a code path that leaves the minx,miny,maxx,maxy fields in a BBOX filter to 0.

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