  To make this problem more clear. Suppose i have some points in a certain
area (e.g. 10 points in a unit square), how to cut and generate the
corresponding SHP polygons of containing the points (1 point in 1 polygon,
maybe the point as their centroid) in this certain area?
  In GeoDa, there is a menu "tools->shape->point  to polygon" to achieve
that. I wonder how to do that in R. Thanks a lot.
##Example##
win<-owin(c(0,1),c(0,1))
pp <- runifpoint(10) #generate 10 points
#i want to change these 10 points into 10 SHP polygons,something like the
manipulation in GeoDA, "tools->shape->point  to polygon"
#plot(pp)

2009/11/27 rusers.sh <rusers.sh@gmail.com>

> Hi,
>   I always need to convert between the points and polygons. For converting
> the polygons to points, we can use the "get.Pcent(maptools) " to get the
> centroids of the polygons. But for converting points to polygons (something
> like GeoDa's "tools->shape->point  to polygon"), i cannot find the
> corresponding method. I searched in R Site Search with "point to polygon"
> and "generate polygon", but still cannot get the answers.
>  Does anybody know how to convert points to the SHP polygons?
>  OR whether we can generate some SHP polygons randomly in R?
> ##Example##
> win<-owin(c(0,1),c(0,1))
> pp <- runifpoint(10) #generate 10 points
> #i want to change these 10 points into 10 SHP polygons,something like the
> manipulation in GeoDA, "tools->shape->point  to polygon"
> #plot(pp)
>   Thanks a lot.
>
>
> --
> -----------------
> Jane Chang
> Queen's
>



-- 
-----------------
Jane Chang
Queen's

	[[alternative HTML version deleted]]

