generalise_it: Generalise an object

Description Usage Arguments Value Examples

Description

Apply a generalisation algorithm to a SpatialPolygons or SpatialPolygonsDataFrame object.

Usage

1
2
generalise_it(spdf,tol)
spdf 

Arguments

spdf

A SpatialPolygons or SpatialPolygonsDataFrame object

tol

The tolerance of the generalising algorithm. The higher this is, the cruder the generalisation. For caricaturing, it should be reasonably high - eg 10000 for the Irish National Grid in metres.

Value

A generalised SpatialPolygons object

Examples

1
2
data(RA)
RA.spdf %>% small_chop %>% generalise_it(10000) %>% plot

chrisbrunsdon/caricRture documentation built on May 13, 2019, 6:52 p.m.