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


217
218
219
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 217

def area
  projection.unsafe_area
end

#centroidObject


221
222
223
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 221

def centroid
  factory.unproject(projection.unsafe_centroid)
end