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



577
578
579
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 577

def area
  @fg_geom.area
end

#centroidObject



581
582
583
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 581

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

#coordinatesObject



585
586
587
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 585

def coordinates
  each.map(&:coordinates)
end

#geometry_typeObject



573
574
575
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 573

def geometry_type
  Feature::MultiPolygon
end