Skip to main content
6 events
when toggle format what by license comment
May 7, 2018 at 17:54 comment added Jannes Not sure what you exactly mean, please provide reproducible examples. st_write writes a .prj file containing the expected proj4-string. The shapefile format does not support EPSG codes (see also github.com/r-spatial/sf/issues/380).
May 6, 2018 at 17:06 comment added Falltok I used the book you showed me above to export the file through : st_write(out,dsn="D:/Outa.shp", driver = "ESRI Shapefile") ,but the exported file have a different CRS than the input files. I used out<-st_transform(out, "+init=epsg:2154") to transform the file before exporting it but I always get a different CRS output.
May 3, 2018 at 7:36 comment added Jannes I have updated the code in accordance with your question but the answer has been already there, hence I am not entirely sure if this is what you meant...
May 3, 2018 at 7:34 history edited Jannes CC BY-SA 4.0
answering second question how to find out which polygons are not interesected by lines
Apr 30, 2018 at 16:17 comment added Falltok When we make the intersection between "line" and "poly", the polygons containing no line within them are not taken into account. At the end of the operation I would like to have also the (id) of polygons having no line in them but with 0 as length.
Apr 26, 2018 at 8:54 history answered Jannes CC BY-SA 3.0