Module: RGeo::Geos::ZMGeometryCollectionMethods

Includes:
Enumerable
Included in:
ZMGeometryCollectionImpl, ZMMultiLineStringImpl, ZMMultiPointImpl, ZMMultiPolygonImpl
Defined in:
lib/rgeo/geos/zm_feature_methods.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#eachObject



303
304
305
306
307
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 303

def each
  num_geometries.times do |i_|
    yield geometry_n(i_)
  end
end

#geometry_n(n_) ⇒ Object Also known as: []



298
299
300
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 298

def geometry_n(n_)
  @factory._create_feature(nil, @zgeometry.geometry_n(n_), @mgeometry.geometry_n(n_))
end

#num_geometriesObject Also known as: size



293
294
295
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 293

def num_geometries
  @zgeometry.num_geometries
end