Module: RGeo::Geos::ZMGeometryCollectionMethods
- Includes:
- Enumerable
- Defined in:
- lib/rgeo/geos/zm_feature_methods.rb
Overview
:nodoc:
Instance Method Summary collapse
- #each ⇒ Object
- #geometry_n(n_) ⇒ Object (also: #[])
- #num_geometries ⇒ Object (also: #size)
Instance Method Details
#each ⇒ Object
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_geometries ⇒ Object Also known as: size
293 294 295 |
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 293 def num_geometries @zgeometry.num_geometries end |