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


336
337
338
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 336

def area
  @zgeometry.area
end

#centroidObject


340
341
342
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 340

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

#coordinatesObject


348
349
350
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 348

def coordinates
  each.map(&:coordinates)
end

#point_on_surfaceObject


344
345
346
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 344

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