Hi, I'm using an SLD which consists of two rules. One of these rules brings all features from a Postgis table to apply style, while the other only applies style to certain features. This features are filtered using an OGC Filter 1.0:
<ogc:Filter> <ogc:Intersects xmlns:gml="http://www.opengis.net/gml"> <ogc:PropertyName>the_geom</ogc:PropertyName> <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"> <gml:coordinates decimal="." cs="," ts=" ">-6328615.2541744,-3602007.5134508 -6326221.1716141,-3599613.4308905</gml:coordinates> </gml:Box> </ogc:Intersects> </ogc:Filter> I guess filtering is done in memory, because of the generated SQL query. That's ok, because all features must be retrieved so the other rule can be applied. SELECT "gid","name",encode(ST_AsBinary(ST_Force_2D("the_geom")),'base64') as "the_geom" FROM "states" WHERE "the_geom" && ST_GeomFromText('POLYGON ((-664654.4810732275 5932107.581542441, -664654.4810732275 6814520.154880204, 1663166.8368132845 6814520.154880204, 1663166.8368132845 5932107.581542441, -664654.4810732275 5932107.581542441))', 15146542) The problem raises when the projection used in srsName is not the same than the one used in the Postgis table. In this case, the rule used for styling the filtered features it is not applied -the resulting map doesn't have the colors it should have-. Note: I'm using a custom projection for my postgis tables which was properly loaded in Postgis and Geoserver projections. I don't think this is related with the problem but I presented the example as is, just in case. Any idea? Thanks.
------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users