Module: RGeo::Geos::ZMMultiPolygonMethods

Included in:
ZMMultiPolygonImpl
Defined in:
lib/rgeo/geos/zm_feature_methods.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#areaObject


377
378
379
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 377

def area
  @zgeometry.area
end

#centroidObject


381
382
383
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 381

def centroid
  @factory.create_feature(ZMPointImpl, @zgeometry.centroid, @mgeometry.centroid)
end

#coordinatesObject


389
390
391
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 389

def coordinates
  each.map(&:coordinates)
end

#point_on_surfaceObject


385
386
387
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 385

def point_on_surface
  @factory.create_feature(ZMPointImpl, @zgeometry.centroid, @mgeometry.centroid)
end