[R-sig-Geo] gpclib problem with as.polygonal in spatstat ?
Marcelino de la Cruz
marcelino.delacruz at upm.es
Fri Dec 3 13:59:50 CET 2010
Hi Alexander,
Try this:
spatstat.options(gpclib=TRUE)
data(letterR)
m<- as.mask(letterR, dimyx=32)
p<- as.polygonal(m)
Cheers,
Marcelino
Con fecha 3/12/2010, "Alexandre Villers" <villers.alexandre at gmail.com>
escribió:
>Good afternoon
>
>I'm trying to convert a mask to a polygonal windows with spatstat.
>However, despite, the gpclibPermit() command, I get this error message:
>
>Warning message:
>In as.polygonal(m) :
>
> Can't convert mask to polygon: gpclib is disabled/unavailable
>
>While trying this
>
>data(letterR)
> m<- as.mask(letterR, dimyx=32)
> p<- as.polygonal(m)
>
>> sessionInfo()
>R version 2.11.1 (2010-05-31)
>i386-pc-mingw32
>
>locale:
>[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C LC_TIME=English_United Kingdom.1252
>
>attached base packages:
>[1] stats graphics grDevices utils datasets methods base
>
>other attached packages:
> [1] gdata_2.8.1 gpclib_1.5-1 maptools_0.7-38 lattice_0.18-8 foreign_0.8-40 rgdal_0.6-29 sp_0.9-72 spatstat_1.21-2 deldir_0.0-13 mgcv_1.6-2
>
>loaded via a namespace (and not attached):
>[1] grid_2.11.1 gtools_2.6.2 Matrix_0.999375-39 nlme_3.1-96 tools_2.11.1
>
>
>Thanks for any hint
>
>Alex
>
>
><http://www.mozilla-europe.org/fr/>
>
> [[alternative HTML version deleted]]
>
>_______________________________________________
>R-sig-Geo mailing list
>R-sig-Geo at r-project.org
>https://stat.ethz.ch/mailman/listinfo/r-sig-geo
More information about the R-sig-Geo
mailing list