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
359 360 361 |
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 359 def area @zgeometry.area end |
#centroid ⇒ Object
363 364 365 |
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 363 def centroid @factory.create_feature(ZMPointImpl, @zgeometry.centroid, @mgeometry.centroid) end |
#coordinates ⇒ Object
371 372 373 |
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 371 def coordinates each.map(&:coordinates) end |
#point_on_surface ⇒ Object
367 368 369 |
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 367 def point_on_surface @factory.create_feature(ZMPointImpl, @zgeometry.centroid, @mgeometry.centroid) end |