Module: RGeo::Geos::FFIMultiPolygonMethods
- Included in:
- FFIMultiPolygonImpl
- Defined in:
- lib/rgeo/geos/ffi_feature_methods.rb
Overview
:nodoc:
Instance Method Summary collapse
- #area ⇒ Object
- #centroid ⇒ Object
- #coordinates ⇒ Object
- #geometry_type ⇒ Object
- #point_on_surface ⇒ Object
Instance Method Details
#area ⇒ Object
557 558 559 |
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 557 def area @fg_geom.area end |
#centroid ⇒ Object
561 562 563 |
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 561 def centroid @factory._wrap_fg_geom(@fg_geom.centroid, FFIPointImpl) end |
#coordinates ⇒ Object
569 570 571 |
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 569 def coordinates each.map(&:coordinates) end |
#geometry_type ⇒ Object
553 554 555 |
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 553 def geometry_type Feature::MultiPolygon end |
#point_on_surface ⇒ Object
565 566 567 |
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 565 def point_on_surface @factory._wrap_fg_geom(@fg_geom.point_on_surface, FFIPointImpl) end |