Class GeoRuby::SimpleFeatures::MultiLineString
In: lib/geo_ruby/simple_features/multi_line_string.rb
Parent: GeometryCollection

Represents a group of line strings (see LineString).

Methods

Public Class methods

Creates a new multi line string from sequences of points : (((x,y)…(x,y)),((x,y)…(x,y)))

[Source]

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

Creates a new multi line string from an array of line strings

[Source]

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

[Source]

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

[Validate]