Module: RGeo::Geos::FFIMultiPolygonMethods

Included in:
FFIMultiPolygonImpl
Defined in:
lib/rgeo/geos/ffi_feature_methods.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#areaObject


599
600
601
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 599

def area
  @fg_geom.area
end

#centroidObject


603
604
605
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 603

def centroid
  @factory.wrap_fg_geom(@fg_geom.centroid, FFIPointImpl)
end

#coordinatesObject


607
608
609
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 607

def coordinates
  each.map(&:coordinates)
end

#geometry_typeObject


595
596
597
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 595

def geometry_type
  Feature::MultiPolygon
end