[R-sig-Geo] package for writing shapefiles from SpatialPolygons?

Roger Bivand Roger.Bivand at nhh.no
Thu Aug 31 10:50:58 CEST 2006


On Thu, 31 Aug 2006, Michael Sumner wrote:

> 
> > What is a shapefile? It has a *.shp, a *.shx, _and_ a *.dbf at least. So 
> > you can't go from a SpatialPolygons object to a shapefile, it has to be 
> > SpatialPolygonsDataFrame, even if the only column in the data frame is 
> > just a holder. So create a data frame (with row names equal to the 
> > Polygons ID values), make a SpatialPolygonsDataFrame, and 
> > writePolyShape().
> >   
> 
> Oh sorry, I had missed that "writePolyShape" function.  It's aliased to 
> its read counterpart, and I thought I was seeing write.polylistShape.

I'll split it out if you like - in the help.start() browser based help 
system, each alias is listed separately, so you would have seen it there.

> 
> Thanks!
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> 

-- 
Roger Bivand
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 mailing list