WKT Format reprojects geometrycollection components twice. Fixed by anonymous

contributor. (Closes #1554) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7413 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-06-21 13:09:23 +00:00
parent 96aa44f516
commit e4ada9ea2f
2 changed files with 25 additions and 2 deletions

View File

@@ -67,7 +67,9 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
features.CLASS_NAME == "OpenLayers.Feature.Vector") {
features.geometry.transform(this.externalProjection,
this.internalProjection);
} else if (features && typeof features == "object") {
} else if (features &&
type != "geometrycollection" &&
typeof features == "object") {
for (var i = 0; i < features.length; i++) {
var component = features[i];
component.geometry.transform(this.externalProjection,