powered by
Calculate the area of a polygon or group of polygons
lawn_area(input, lint = FALSE)
A data-Feature or data-FeatureCollection of polygons
(logical) Lint or not. Uses geojsonhint. Takes up increasing time as the object to get linted increases in size, so probably use by default for small objects, but not for large if you know they are good geojson objects. Default: FALSE
FALSE
A numeric in square meters
Other measurements: lawn_along, lawn_bbox_polygon, lawn_bbox, lawn_bearing, lawn_center_of_mass, lawn_center, lawn_centroid, lawn_destination, lawn_distance, lawn_envelope, lawn_extent, lawn_line_distance, lawn_midpoint, lawn_point_on_surface, lawn_pt2line_distance, lawn_square
lawn_along
lawn_bbox_polygon
lawn_bbox
lawn_bearing
lawn_center_of_mass
lawn_center
lawn_centroid
lawn_destination
lawn_distance
lawn_envelope
lawn_extent
lawn_line_distance
lawn_midpoint
lawn_point_on_surface
lawn_pt2line_distance
lawn_square
# NOT RUN { lawn_area(lawn_data$poly) lawn_area(lawn_data$multipoly) # }
Run the code above in your browser using DataLab