Module: RGeo::Geographic::ProjectedNSurfaceMethods

Included in:
ProjectedMultiPolygonImpl, ProjectedPolygonImpl
Defined in:
lib/rgeo/geographic/projected_feature_methods.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#areaObject


250
251
252
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 250

def area
  projection.area
end

#centroidObject


255
256
257
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 255

def centroid
  factory.unproject(projection.centroid)
end

#point_on_surfaceObject


260
261
262
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 260

def point_on_surface
  factory.unproject(projection.point_on_surface)
end