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=%3CStyledLayerDescriptor+version%3D%271%2E0%2E0%27%0D%0A++xmlns%3D%27http%3A%2F%2Fwww%2Eopengis%2Enet%2Fsld%27%0D%0A++xmlns%3Axsi%3D%27http%3A%2F%2Fwww%2Ew3%2Eorg%2F2001%2FXMLSchema%2Dinstance%27%0D%0A++xsi%3AschemaLocation%3D%27http%3A%2F%2Fwww%2Eopengis%2Enet%2Fsld%0D%0Ahttp%3A%2F%2Fschemas%2Eopengeospatial%2Enet%2Fsld%2F1%2E0%2E0%2FStyledLayerDescriptor%2Exsd%27%3E%0D%0A++%3CNamedLayer%3E%0D%0A++++%3CName%3Etopp%3Astates%3C%2FName%3E%0D%0A++++%3CUserStyle%3E%0D%0A++++++%3CFeatureTypeStyle%3E%0D%0A++++++++%3CRule%3E%0D%0A++++++++++%3CFilter+xmlns%3D%22http%3A%2F%2Fwww%2Eopengis%2Enet%2Fogc%22%3E%0D%0A++++++++++++%3CBBOX%3E%0D%0A++++++++++++++%3CPropertyName%3Ethe%5Fgeom%3C%2FPropertyName%3E%0D%0A++++++++++++++%3Cgm
 
l%3ABox+xmlns%3Agml%3D%22http%3A%2F%2Fwww%2Eopengis%2Enet%2Fgml%22+srsName%3D%22EPSG%3A4326%22%3E%0D%0A++++++++++++++++%3Cgml%3Acoordinates%3E%2D100%2C41+%2D88%2C44%3C%2Fgml%3Acoordinates%3E%0D%0A++++++++++++++%3C%2Fgml%3ABox%3E%0D%0A++++++++++++%3C%2FBBOX%3E%0D%0A++++++++++%3C%2FFilter%3E%0D%0A++++++++++%3CPolygonSymbolizer%3E%0D%0A++++++++++++%3CFill%3E%0D%0A++++++++++++++%3CCssParameter+name%3D%27fill%27%3E%23FF0000%3C%2FCssParameter%3E%0D%0A++++++++++++%3C%2FFill%3E%0D%0A++++++++++%3C%2FPolygonSymbolizer%3E%0D%0A++++++++%3C%2FRule%3E%0D%0A++++++%3C%2FFeatureTypeStyle%3E%0D%0A++++%3C%2FUserStyle%3E%0D%0A++%3C%2FNamedLayer%3E%0D%0A%3C%2FStyledLayerDescriptor%3E
{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";>
            <BBOX>
              <PropertyName>the_geom</PropertyName>
              <gml:Box xmlns:gml="http://www.opengis.net/gml"; 
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

       

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to