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



327
328
329
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 327

def area
  @zgeometry.area
end

#centroidObject



331
332
333
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 331

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

#coordinatesObject



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

def coordinates
  each.map(&:coordinates)
end

#point_on_surfaceObject



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

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