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



557
558
559
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 557

def area
  @fg_geom.area
end

#centroidObject



561
562
563
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 561

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

#coordinatesObject



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

def coordinates
  each.map(&:coordinates)
end

#geometry_typeObject



553
554
555
# File 'lib/rgeo/geos/ffi_feature_methods.rb', line 553

def geometry_type
  Feature::MultiPolygon
end

#point_on_surfaceObject



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

def point_on_surface
  @factory._wrap_fg_geom(@fg_geom.point_on_surface, FFIPointImpl)
end