lib/turf/area.rb
# Takes one or more features and returns their area in square meters.
# @see https://turfjs.org/docs/#area
# @param geojson [GeoJSON] input GeoJSON feature(s)
# @return [number] aria in square meters
Takes one or more features and returns their area in square meters.
Takes one or more features and returns their area in square meters .
def area_polygon_area(coords)
    outline, *holes = coords
    total = area_ring_area(outline).abs
    holes.each do |hole|
      total -= area_ring_area(hole).abs
    end
    total
  end
def area_polygon_area ( coords ) outline , * holes = coords total = area_ring_area ( outline ) . abs holes . each do | hole | total -= area_ring_area ( hole ) . abs end total end
Takes one or more features and returns their area in square meters.
Takes one or more features and returns their area in square meters .
aria in square meters
aria in square meters
number
coords
geojson
input GeoJSON feature(s)
input GeoJSON feature ( s )
see
None