- Home
- CRAN
**lawn**: Client for 'Turfjs' for 'Geospatial' Analysis**lawn_explode**: Explode vertices to points

# Explode vertices to points

### Description

Takes a feature or set of features and returns all positions as points

### Usage

1 | ```
lawn_explode(input, lint = FALSE)
``` |

### Arguments

`input` |
Feature of features |

`lint` |
(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: |

### Value

a `data-FeatureCollection`

of points

### Examples

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ```
poly <- '{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [[
[177.434692, -17.77517],
[177.402076, -17.779093],
[177.38079, -17.803937],
[177.40242, -17.826164],
[177.438468, -17.824857],
[177.454948, -17.796746],
[177.434692, -17.77517]
]]
}
}'
lawn_explode(poly)
``` |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.

- as_feature: Convert a FeatureCollection to a Feature
- as_feature: Convert a FeatureCollection to a Feature
- as.turf: Coerce to turf.js javascript function call
- as.turf: Coerce to turf.js javascript function call
- data-types: Description of GeoJSON data types
- data-types: Description of GeoJSON data types
- georandom: Return a FeatureCollection with N number of features with...
- georandom: Return a FeatureCollection with N number of features with...
- lawn_aggregate: Calculate a series of aggregations for a set of points within...
- lawn_aggregate: Calculate a series of aggregations for a set of points within...
- lawn_along: Get a point at a distance along a line
- lawn_along: Get a point at a distance along a line
- lawn_area: Calculate the area of a polygon or group of polygons
- lawn_area: Calculate the area of a polygon or group of polygons
- lawn_average: Average of a field among points within polygons
- lawn_average: Average of a field among points within polygons
- lawn_bbox_polygon: Make a polygon from a bounding box
- lawn_bbox_polygon: Make a polygon from a bounding box
- lawn_bearing: Get geographic bearing between two points
- lawn_bearing: Get geographic bearing between two points
- lawn_bezier: Curve a linestring
- lawn_bezier: Curve a linestring
- lawn_buffer: Buffer a feature
- lawn_buffer: Buffer a feature
- lawn_center: Get center point
- lawn_center: Get center point
- lawn_centroid: Centroid
- lawn_centroid: Centroid
- lawn_combine: Combine singular features into plural versions
- lawn_combine: Combine singular features into plural versions
- lawn_concave: Concave hull polygon
- lawn_concave: Concave hull polygon
- lawn_convex: Convex hull polygon
- lawn_convex: Convex hull polygon
- lawn_count: Count number of points within polygons
- lawn_count: Count number of points within polygons
- lawn_data: Data for use in examples
- lawn_data: Data for use in examples
- lawn_destination: Calculate destination point
- lawn_destination: Calculate destination point
- lawn_deviation: Standard deviation of a field among points within polygons
- lawn_deviation: Standard deviation of a field among points within polygons
- lawn_distance: Distance between two points
- lawn_distance: Distance between two points
- lawn_envelope: Calculate envelope around features
- lawn_envelope: Calculate envelope around features
- lawn_erase: Erase one polygon from another
- lawn_erase: Erase one polygon from another
- lawn_explode: Explode vertices to points
- lawn_explode: Explode vertices to points
- lawn_extent: Get a bounding box
- lawn_extent: Get a bounding box
- lawn_featurecollection: Create a FeatureCollection
- lawn_featurecollection: Create a FeatureCollection
- lawn_filter: Filter a FeatureCollection by a given property and value
- lawn_filter: Filter a FeatureCollection by a given property and value
- lawn_flip: Flip x,y to y,x, and vice versa
- lawn_flip: Flip x,y to y,x, and vice versa
- lawn_hex_grid: Create a HexGrid
- lawn_hex_grid: Create a HexGrid
- lawn_inside: Does a point reside inside a polygon
- lawn_inside: Does a point reside inside a polygon
- lawn_intersect: Intersection
- lawn_intersect: Intersection
- lawn_isolines: Generate Isolines
- lawn_isolines: Generate Isolines
- lawn_jenks: Get Jenks breaks
- lawn_jenks: Get Jenks breaks
- lawn_kinks: Get points at all self-intersections of a polygon
- lawn_kinks: Get points at all self-intersections of a polygon
- lawn_line_distance: Measure a linestring
- lawn_line_distance: Measure a linestring
- lawn_line_slice: Slice a line given two points
- lawn_line_slice: Slice a line given two points
- lawn_linestring: Create a linestring
- lawn_linestring: Create a linestring
- lawn_max: Maximum value of a field among points within polygons
- lawn_max: Maximum value of a field among points within polygons
- lawn_median: Median value of a field among points within polygons
- lawn_median: Median value of a field among points within polygons
- lawn_merge: Merge polygons
- lawn_merge: Merge polygons
- lawn_midpoint: Get a point midway between two points
- lawn_midpoint: Get a point midway between two points
- lawn_min: Minimum value of a field among points within polygons
- lawn_min: Minimum value of a field among points within polygons
- lawn_nearest: Get nearest point
- lawn_nearest: Get nearest point
- lawn-package: R client for turf.js for geospatial analysis
- lawn-package: R client for turf.js for geospatial analysis
- lawn_planepoint: Calculate a Planepoint
- lawn_planepoint: Calculate a Planepoint
- lawn_point: Create a point
- lawn_point: Create a point
- lawn_point_grid: Create a PointGrid
- lawn_point_grid: Create a PointGrid
- lawn_point_on_line: Get closest point on linestring to reference point
- lawn_point_on_line: Get closest point on linestring to reference point
- lawn_point_on_surface: Get a point on the surface of a feature
- lawn_point_on_surface: Get a point on the surface of a feature
- lawn_polygon: Create a polygon
- lawn_polygon: Create a polygon
- lawn_quantile: Calculate quantiles
- lawn_quantile: Calculate quantiles
- lawn_random: Generate random data
- lawn_random: Generate random data
- lawn_reclass: Reclassify properties data
- lawn_reclass: Reclassify properties data
- lawn_remove: Remove things from a FeatureCollection
- lawn_remove: Remove things from a FeatureCollection
- lawn_sample: Return features from FeatureCollection at random
- lawn_sample: Return features from FeatureCollection at random
- lawn_simplify: Simplify GeoJSON data
- lawn_simplify: Simplify GeoJSON data
- lawn_size: Expand a bounding box
- lawn_size: Expand a bounding box
- lawn_square: Calculate a square bounding box
- lawn_square: Calculate a square bounding box
- lawn_square_grid: Create a SquareGrid
- lawn_square_grid: Create a SquareGrid
- lawn_sum: Sum of a field among points within polygons
- lawn_sum: Sum of a field among points within polygons
- lawn_tag: Spatial join of points and polygons
- lawn_tag: Spatial join of points and polygons
- lawn_tin: Create a Triangulated Irregular Network
- lawn_tin: Create a Triangulated Irregular Network
- lawn_triangle_grid: Create a TriangleGrid
- lawn_triangle_grid: Create a TriangleGrid
- lawn_union: Merge polygons
- lawn_union: Merge polygons
- lawn_variance: Variance of a field among points within polygons
- lawn_variance: Variance of a field among points within polygons
- lawn_within: Return points that fall within polygons
- lawn_within: Return points that fall within polygons
- pipe: Pipe operator
- pipe: Pipe operator
- print-methods: Lawn print methods to provide summary view
- print-methods: Lawn print methods to provide summary view
- type_sum: Type summary
- type_sum: Type summary
- view: Visualize geojson
- view: Visualize geojson