Class GeoRuby::SimpleFeatures::MultiPolygon
In: lib/geo_ruby/simple_features/multi_polygon.rb
Parent: GeometryCollection

Represents a group of polygons (see Polygon).

Methods

Public Class methods

Creates a multi polygon from sequences of points : ((((x,y)…(x,y)),((x,y)…(x,y)),((x,y)…(x,y)))

[Source]

    # File lib/geo_ruby/simple_features/multi_polygon.rb, line 31
31:       def self.from_coordinates(point_sequence_sequences,srid= DEFAULT_SRID,with_z=false,with_m=false)
32:         multi_polygon = new(srid,with_z,with_m)
33:         multi_polygon.concat( point_sequence_sequences.collect {|point_sequences| Polygon.from_coordinates(point_sequences,srid,with_z,with_m) } )
34:         multi_polygon
35:       end

Creates a multi polygon from an array of polygons

[Source]

    # File lib/geo_ruby/simple_features/multi_polygon.rb, line 25
25:       def self.from_polygons(polygons,srid=DEFAULT_SRID,with_z=false,with_m=false)
26:         multi_polygon = new(srid,with_z,with_m)
27:         multi_polygon.concat(polygons)
28:         multi_polygon
29:       end

[Source]

    # File lib/geo_ruby/simple_features/multi_polygon.rb, line 8
 8:       def initialize(srid = DEFAULT_SRID,with_z=false,with_m=false)
 9:         super(srid)
10:       end

[Validate]