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


361
362
363
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 361

def area
  @zgeometry.area
end

#centroidObject


365
366
367
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 365

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

#coordinatesObject


373
374
375
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 373

def coordinates
  each.map(&:coordinates)
end

#point_on_surfaceObject


369
370
371
# File 'lib/rgeo/geos/zm_feature_methods.rb', line 369

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