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