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



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

def area
  @fg_geom.area
end

#centroidObject



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

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

#coordinatesObject



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

def coordinates
  each.map(&:coordinates)
end

#geometry_typeObject



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

def geometry_type
  Feature::MultiPolygon
end