Skip to content
Prev 6419 / 29559 Next

How to achieve the boundary of a polygon?

Thank you very much. It works for me now. Previously I only looked at the
spatstat package.

Shaofei

-----Original Message-----
From: Edzer Pebesma [mailto:edzer.pebesma at uni-muenster.de] 
Sent: Tuesday, September 08, 2009 1:09 AM
To: Shaofei Chen
Cc: r-sig-geo at stat.math.ethz.ch
Subject: Re: [R-sig-Geo] How to achieve the boundary of a polygon?

Have you had a look at spsample in package sp?
Shaofei Chen wrote:
bounday file to the SpatialPolygonsDataFrame, I found that I can only sample
them in the rectangular containing the polygon based on bbox.
win=as.owin(c(bound at bbox[1],bound at bbox[3],bound at bbox[2],bound at bbox[4])))