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



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

def area
  projection.area
end

#centroidObject



213
214
215
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 213

def centroid
  factory.unproject(projection.centroid)
end

#point_on_surfaceObject



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

def point_on_surface
  factory.unproject(projection.point_on_surface)
end