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


570
571
572
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 570

def area
  @fg_geom.area
end

#centroidObject


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

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

#coordinatesObject


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

def coordinates
  each.map(&:coordinates)
end

#geometry_typeObject


566
567
568
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 566

def geometry_type
  Feature::MultiPolygon
end