Description Usage Arguments Details Value Author(s) Examples
Generalises a SpatialPolygons
or SpatialPolygonsDataFrame
object using the Douglas-Peuker algorithm
1 | generalize.polys(sp, tol)
|
sp |
A |
tol |
The weeding tolerance for the generalisation algorithm. |
Returns an object of the same class as sp
. Note that the algorithm is applied on a polygon-by-polygon,
not edge-by-edge basis. Thus edges in generalised polygons may not match perfectly.
An object of class SpatialPolygons
or SpatialPolygonsDataFrame
. Each polygon shape has been
generalized using the Douglas-Peuker algorithm.
Chris Brunsdon
1 2 3 4 5 6 7 |
Loading required package: maptools
Loading required package: sp
Checking rgeos availability: TRUE
Loading required package: RColorBrewer
Loading required package: MASS
Loading required package: rgeos
rgeos version: 0.3-23, (SVN revision 546)
GEOS runtime version: 3.4.2-CAPI-1.8.2 r3921
Linking to sp version: 1.2-3
Polygon checking: TRUE
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.