Module: RGeo::Geos::ZMMultiPolygonMethods
- Included in:
- ZMMultiPolygonImpl
- Defined in:
- lib/rgeo/geos/zm_feature_methods.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#area ⇒ Object
327 328 329 |
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 327 def area @zgeometry.area end |
#centroid ⇒ Object
331 332 333 |
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 331 def centroid @factory._create_feature(ZMPointImpl, @zgeometry.centroid, @mgeometry.centroid) end |
#coordinates ⇒ Object
339 340 341 |
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 339 def coordinates each.map(&:coordinates) end |
#point_on_surface ⇒ Object
335 336 337 |
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 335 def point_on_surface @factory._create_feature(ZMPointImpl, @zgeometry.centroid, @mgeometry.centroid) end |