Message-ID: <2348.220.237.149.23.1175171902.squirrel@webmail.unimelb.edu.au>
Date: 2007-03-29T12:38:22Z
From: Yong Li
Subject: can't find the function of GE_SpatialGrid
Dear all,
The following is the code I try to build grid from polygons, but was
hammered by the error in the subject. Any idea helps me.
Yong
setwd("d:/Rcode/0_Zone")
library(maptools)
xx <- readShapePoly("Newshape.shp", IDvar="ID",
proj4string=CRS("+proj=tmerc
+lat_0=0
+lon_0=111
+k =1.000000
+x_0 =500000
+y_0 =0
+ellps=krass
+units =m
+no_defs"))
plot(xx, col="red")
grd <- GE_SpatialGrid(xx, asp=1, maxPixels=100)$SG