spnorm: spnorm

Description Usage Arguments Details Value Examples

Description

spnorm

Usage

1
spnorm(sp, boundary)

Arguments

sp

object of class Polygons

boundary

list with x and y components, used to normalize sp

Details

normalize Polygon according to border limits

Value

a list with components

pn

normalized Polygon

boundaryn

normalized boundary

Examples

1
2
3
4
5
6
7
8
9
#  shape1: result of call to readS on shapefile
z=geozoning::shape1
bb=list(x=z@bbox[1,],y=z@bbox[2,])
p=z@polygons
p1=p[[1]]
P1=p1@Polygons[[1]]
NP1=geozoning:::spnorm(P1,bb)$pn
Nbb=geozoning:::spnorm(P1,bb)$boundaryn
plot(NP1@coords,xlim=Nbb$x,ylim=Nbb$y)

geozoning documentation built on May 2, 2019, 9:43 a.m.