search for: writepolyshap

Displaying 5 results from an estimated 5 matches for "writepolyshap".

Did you mean: writepolyshape
2006 Jan 07
1
maptools, write.polylistShape
Dear Roger, I am trying to use the write.polylistShape() function of maptools for the first time and realize that it handles list of polygons of class 'polylist'. However, it seems that no as.polylist() function exist in the package. The question behind that is: in your opinion, which would be the best way to convert a list of matrix of polygon nodes coordinates into an object of
2006 Oct 07
3
merge and polylist
Greetings: I would like to kindly ask for a little help. The rough code is: #________________________________________________________ dat=data.frame(read.delim(file="all.txt", header = TRUE, sep = "\t", quote="\"", dec=".",na.strings = "NA")) nc=read.shape("astae.shp", dbf.data=TRUE, verbose=TRUE) mappolys=Map2poly(nc) submap
2010 Jun 29
0
how to create a shape file from a polygone
...inates. So my question is quite simple: How do I transform XY (lon/lat) coordinates into a shape file. My polygon: x.pol.mat<-c(-66.67,-66.46,-66.54,-66.82,-67.06,-66.97) y.pol.mat<-c(48.87,48.89,48.745,48.62,48.55,48.75) pol.mat<-matrix(c(x.pol.mat,y.pol.mat),6,2) polygon(pol.mat) The writePolyShape() function from the maptools package seems to be what I'm looking for but I can't figure how to create the SpatialPolygonsDataFrame object that is required. I'm using WinXP pro 32bit and R 2.11.0 Thanks for your help, Bastien Ferland-Raymond, M.Sc. candidate Universit? Laval Qu?be...
2013 Jan 27
1
lapply and SpatialGridDataFrame error
...re <- paste0("MaxFloodDepth_", 1:54, ".txt") modeldepthsmore <- lapply(modfilesmore, readfunct) maxdepth.plys <- lapply(modeldepthsmore, Grid2Polygons(modeldepthsmore, level = FALSE)) layers <- paste0("examples/floodlayers_", 1:54) polyshapes <- lapply(writePolyShape(maxdepth.plys, layers)) shpName <- sub(pattern="(.*)\\.dbf", replacement="\\1", x=system.file("examples/Flood/layer_.dbf", package="BayesX")) floodmaps <- lapply(shp2bnd(shpname=shpName, regionnames="SP_ID")) ## draw the map drawmap(map=flo...
2008 May 05
3
troubles with R CMD check and examples under Ubuntu gutsy
Dear listers, I was used to package pgirmess under Windows with everything OK, but, for the first time, I had a trial this afternoon on Ubuntu 7.10 gutsy (I have a double boot computer and work more and more under unix) and R 2.7.0. Everything went OK except this: sudo R CMD check pgirmess ..... * checking examples ... ERROR Running examples in 'pgirmess-Ex.R' failed. The error most