Class GeoRuby::SimpleFeatures::MultiPoint
In: lib/geo_ruby/simple_features/multi_point.rb
Parent: GeometryCollection

Represents a group of points (see Point).

Methods

Public Class methods

Creates a new multi point from a list of point coordinates : ((x,y)…(x,y))

[Source]

    # File lib/geo_ruby/simple_features/multi_point.rb, line 33
33:       def self.from_coordinates(points,srid= DEFAULT_SRID,with_z=false,with_m=false)
34:         multi_point= new(srid,with_z,with_m)
35:         multi_point.concat(points.collect {|point| Point.from_coordinates(point,srid,with_z,with_m)})
36:         multi_point
37:       end

Creates a new multi point from an array of points

[Source]

    # File lib/geo_ruby/simple_features/multi_point.rb, line 26
26:       def self.from_points(points,srid= DEFAULT_SRID,with_z=false,with_m=false)
27:         multi_point= new(srid,with_z,with_m)
28:         multi_point.concat(points)
29:         multi_point
30:       end

[Source]

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

[Validate]