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


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

def area
  @fg_geom.area
end

#centroidObject


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

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

#coordinatesObject


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

def coordinates
  each.map(&:coordinates)
end

#geometry_typeObject


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

def geometry_type
  Feature::MultiPolygon
end