[OpenLayers-Users] Multipolygon to Polygons
Tondo
gpktondo at gmail.com
Fri Sep 21 01:16:05 PDT 2012
Hi,
Each multipolygon feature geometry
<http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Geometry/MultiPolygon-js.html>
is an array of polygon geometry.
So try stuff like this:
for(var i in features){
for(var j in features[i].components) {
//do what you need with features[i].components[j] - polygon geometry
}
}
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Multipolygon-to-Polygons-tp5003436p5003448.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list