module OGR::GeometryTypes::Surface
Public Instance Methods
area()
click to toggle source
Computes area for a LinearRing
, Polygon
, or MultiPolygon
. The area of the feature is in square units of the spatial reference system in use.
@return [Float] 0.0 for unsupported geometry types.
# File lib/ogr/geometry_types/surface.rb, line 10 def area FFI::OGR::API.OGR_G_Area(@c_pointer) end
area_units()
click to toggle source
Returns the units used by the associated OGR::SpatialReference
.
@return [Hash]
# File lib/ogr/geometry_types/surface.rb, line 17 def area_units spatial_reference&.linear_units end