Sha256: 15904f4d9ce96ed6142e2ef46f449a3920b0658bd12c2bca28cb670f10b39980
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
module OGR module GeometryTypes module Surface # 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. def area FFI::OGR::API.OGR_G_Area(@c_pointer) end # Returns the units used by the associated OGR::SpatialReference. # # @return [Hash] def area_units spatial_reference ? spatial_reference.linear_units : nil end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.0.0.beta7 | lib/ogr/geometry_types/surface.rb |
ffi-gdal-1.0.0.beta6 | lib/ogr/geometry_types/surface.rb |