lawn_kinks: Get points at all self-intersections of a polygon

Description Usage Arguments Examples

View source: R/kinks.R

Description

Get points at all self-intersections of a polygon

Usage

1
lawn_kinks(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: FALSE

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
poly <- '{
 "type": "Feature",
 "properties": {},
 "geometry": {
   "type": "Polygon",
   "coordinates": [[
      [-12.034835, 8.901183],
      [-12.060413, 8.899826],
      [-12.03638, 8.873199],
      [-12.059383, 8.871418],
      [-12.034835, 8.901183]
    ]]
  }
}'
lawn_kinks(poly)
# lint input object
# lawn_kinks(poly, TRUE)
## Not run: 
poly %>% view
lawn_kinks(poly) %>% view

## End(Not run)

lawn documentation built on Sept. 15, 2017, 5:04 p.m.