Method: GeoRuby::SimpleFeatures::MultiPolygon.from_polygons
- Defined in:
- lib/geo_ruby/simple_features/multi_polygon.rb
.from_polygons(polygons, srid = DEFAULT_SRID, with_z = false, with_m = false) ⇒ Object
Creates a multi polygon from an array of polygons
35 36 37 38 39 |
# File 'lib/geo_ruby/simple_features/multi_polygon.rb', line 35 def self.from_polygons(polygons,srid=DEFAULT_SRID,with_z=false,with_m=false) multi_polygon = new(srid,with_z,with_m) multi_polygon.concat(polygons) multi_polygon end |