add srsName to geometry filters written out by OpenLayers.Control.SLDSelect, this fixes the issue on the OpenLayers side, but not yet on the GeoServer side, although this might have been fixed after 2.1RC2 as aaime pointed out on geoserver-users, r=ahocevar (closes #3182)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11720 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2011-03-22 12:30:41 +00:00
parent bb1c61acc2
commit 991a7314c3
2 changed files with 4 additions and 3 deletions

View File

@@ -11,6 +11,7 @@
* @requires OpenLayers/Handler/Path.js
* @requires OpenLayers/Handler/Click.js
* @requires OpenLayers/Filter/Spatial.js
* @requires OpenLayers/Format/SLD/v1_0_0.js
*/
/**
@@ -272,7 +273,7 @@ OpenLayers.Control.SLDSelect = OpenLayers.Class(OpenLayers.Control, {
maxScaleDenominator: layer.options.minScale})
]});
}
return new OpenLayers.Format.SLD().write(sld);
return new OpenLayers.Format.SLD({srsName: this.map.getProjection()}).write(sld);
},
/**