[R-sig-Geo] SpatialDataFrame List Union

Tristan Bourgeois tristan.bourgeois at gmail.com
Wed Mar 1 19:05:23 CET 2017


Dear all,

I'm working on a code and I don't understand something probably related to
the writting rules of R

My code :

library(rgdal)

shp_paths = list.files(path = "X:/IGN/BDTOPO_V2.1", pattern
="TRONCON_COURS_EAU.SHP",
                       full.names = T,recursive = T,include.dirs = F)

shp_objects <- lapply(shp_paths, function(x) {readOGR(dsn=x,
                       layer=ogrListLayers(x))}) ### Liste de
SpatialLineDataFrames


"shp_objects" is a large list of 16 elements (192 Mb)

What I want to do is an union of these 16 elements.

Does anybody has a pist ?

Thanks !

Cheers

Tristan
Hydromorphologist Engineer
Seine Normandie Water Agency
Rouen, France
-- 
Tristan Bourgeois

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list