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


180
181
182
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 180

def area
  projection.area
end

#centroidObject


184
185
186
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 184

def centroid
  factory.unproject(projection.centroid)
end