[R-sig-Geo] package for writing shapefiles from SpatialPolygons ?
Roger.Bivand at nhh.no
Wed Aug 30 09:56:29 CEST 2006
On Wed, 30 Aug 2006, Michael Sumner wrote:
> Hello, I'm sorry but I have lost track of how this is to be done. Any
> vector format would do, but I guess shapefiles are the most obvious.
> Is there a "spmaptools" package somewhere for doing this?
> I can't find it.
It is included in the maptools package now - the writePolyShape() function
is the one you are looking for. If you also need to write a *.prj, use
showWKT() in the rgdal package. Code is getting ahead of documentation
> Otherwise, how can I convert a "SpatialPolygons" object to a "polylist"
> (for writing by maptools)?
> Sorry if this is documented somewhere, but it's one of those things I
> had assumed could done and have only just attempted to find out how.
> Cheers, Mike.
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the R-sig-Geo