[R-sig-Geo] Help: creating owin{spats​​tat} objects from GIS data

glionel g.lionel at lycos.com
Thu Mar 31 11:12:55 CEST 2011


Dear Axel,
I am new user of spatsat but I am working with that tool.
If you have the shape in ESRI format .shp, I can suggest you to use the
following commands

library(maptools)
S <- readShapePoly("C:/../.../Documents/.../.../....shp")#the link to your
file on your computer
library(sp)
SP <- as(S, "SpatialPolygons")
W <- as(SP, "owin")#your converted owin object
plot(W)

--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Help-creating-owin-spats-tat-objects-from-GIS-data-tp6225601p6226422.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list