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


170
171
172
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 170

def area
  projection.area
end

#centroidObject


174
175
176
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 174

def centroid
  factory.unproject(projection.centroid)
end