[R-sig-Geo] Converting polylines to polygon

Roger Bivand Roger.Bivand at nhh.no
Mon Nov 13 12:59:14 CET 2017


On r-help, you were asked to post only plain text - please do do. Please 
provide a reproducible example. Please read ?gPolygonize in the rgeos 
package or ?st_polygonize in the sf package.

On Mon, 13 Nov 2017, Javad Bayat via R-sig-Geo wrote:

> I have a shape file as poly line and I want to convert it to polygon.Is it possible to do that in R?
> lake <-readShapeLines("./lake_main_utm.shp")proj4string(lake) <- CRS("+proj=utm +zone=39 +datum=WGS84")
>
> Sincerely.
>
> Best Regards Javad Bayat Alternative Mail: j.bayat194 at gmail.com
> 	[[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
>

-- 
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; e-mail: Roger.Bivand at nhh.no
Editor-in-Chief of The R Journal, https://journal.r-project.org/index.html
http://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en



More information about the R-sig-Geo mailing list