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


207
208
209
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 207

def area
  projection.unsafe_area
end

#centroidObject


211
212
213
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 211

def centroid
  factory.unproject(projection.unsafe_centroid)
end