I'm not sure why, but usual suspects are the gml being encoded in a
mixin of GML2 and GML3 formats and confusing the parser, or GeoServer
not reprojecting to native crs.
On Tue, 2011-03-22 at 10:43 +0100, Bart van den Eijnden (OSGIS) wrote:
Hi list,
does anyone have an idea why the following request (an SLD with a BBOX
filter in EPSG:900913, probably native dataset in EPSG:4326) does not work
(empty image whereas selection expected)? It works fine when using a
similar BBOX filter in the native projection of the dataset (EPSG:4326).
The SLD used is:
<sld:StyledLayerDescriptor xmlns:sld="http://www.opengis.net/sld"
version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml"><sld:NamedLayer><sld:Name>topp:tasmania\_water\_bodies</sld:Name><sld:UserStyle><sld:Name>default</sld:Name><sld:FeatureTypeStyle><sld:Rule><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc"><ogc:BBOX><ogc:PropertyName>the\_geom</ogc:PropertyName><gml:Box
xmlns:gml="http://www.opengis.net/gml"
srsName="EPSG:900913"><gml:coordinates decimal="." cs="," ts="
">16237781.240227,-5319824.9118939
16308714.802466,-5247668.3572028</gml:coordinates></gml:Box></ogc:BBOX></ogc:Filter><sld:PolygonSymbolizer><sld:Fill><sld:CssParameter
name="fill">#FF0000</sld:CssParameter></sld:Fill></sld:PolygonSymbolizer></sld:Rule></sld:FeatureTypeStyle></sld:UserStyle></sld:NamedLayer></sld:StyledLayerDescriptor>
Full GetMap url:
http://demo.opengeo.org/geoserver/wms?LAYERS=topp%3Atasmania_water_bodies&FORMAT=image%2Fgif&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&SLD_BODY=<sld%3AStyledLayerDescriptor%20xmlns%3Asld%3D"http%3A%2F%2Fwww.opengis.net%2Fsld"%20version%3D"1.0.0"%20xsi%3AschemaLocation%3D"http%3A%2F%2Fwww.opengis.net%2Fsld%20http%3A%2F%2Fschemas.opengis.net%2Fsld%2F1.0.0%2FStyledLayerDescriptor.xsd"%20xmlns%3Axsi%3D"http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance"%20xmlns%3Aogc%3D"http%3A%2F%2Fwww.opengis.net%2Fogc"%20xmlns%3Agml%3D"http%3A%2F%2Fwww.opengis.net%2Fgml"><sld%3ANamedLayer><sld%3AName>topp%3Atasmania_water_bodies<%2Fsld%3AName><sld%3AUserStyle><sld%3AName>default<%2Fsld%3AName><sld%3AFeatureTypeStyle><sld%3ARule><ogc%3AFilter%20xmlns%3Aogc%3D"http%3A%2F%2Fwww.opengis.net%2Fogc"><ogc%3ABBOX><ogc%3APropertyName>the_geom<%2Fogc%3APropertyName><gml%3ABox%20xmlns%3Agml%3D"http%3A%2F%2Fwww.opengis.net%2Fgml"%20srsName%3D"EPSG%3A900913"><gml%3Acoordinates%20decimal%3D"."%20cs%3D"%2C"%20ts%3D"%20">16237781.240227%2C-5319824.9118939%2016308714.802466%2C-5247668.3572028<%2Fgml%3Acoordinates><%2Fgml%3ABox><%2Fogc%3ABBOX><%2Fogc%3AFilter><sld%3APolygonSymbolizer><sld%3AFill><sld%3ACssParameter%20name%3D"fill">%23FF0000<%2Fsld%3ACssParameter><%2Fsld%3AFill><%2Fsld%3APolygonSymbolizer><%2Fsld%3ARule><%2Fsld%3AFeatureTypeStyle><%2Fsld%3AUserStyle><%2Fsld%3ANamedLayer><%2Fsld%3AStyledLayerDescriptor>&BBOX=16280475.86625,-5322462.8128125,16593561.934062,-5009376.745&WIDTH=256&HEIGHT=256
TIA.
Best regards,
Bart
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Gabriel Roldan
groldan@anonymised.com
Expert service straight from the developers
On Tue, Mar 22, 2011 at 11:34 AM, Gabriel Roldán <groldan@anonymised.com> wrote:
I'm not sure why, but usual suspects are the gml being encoded in a
mixin of GML2 and GML3 formats and confusing the parser, or GeoServer
not reprojecting to native crs.
I also recently fixed a problem with the renderer not drawing small
lines and polygons
in a projected srs. The fix is in the nightlies but not in 2.1RC2
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 333 8128928
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------