[R-sig-Geo] suggestion to MERGE or UNION 3 shapefiles

Dan Putler dan.putler at sauder.ubc.ca
Wed Jan 12 23:50:59 CET 2011


Why not just use the ogr2ogr command line tool included with GDAL/OGR to 
combine the shapefiles, and then bring the combined shapefile into R? 
Look at the *Examples* section on the following link to see the syntax 
on how to do it: http://www.gdal.org/ogr/drv_shapefile.html


On 01/12/2011 01:09 PM, Pierre Roudier wrote:
> Gianni,
> My understanding is that the rgeos package would ease that sort of
> things (without any gpclib licensing problems). I'm not sure if it is
> stable yet. It is available through r-forge (not sure it's a CRAN
> yet).
> Otherwise, this sounds very much like a GIS operation: why don't you
> do it in a GIS?
> My 2 cents,
> Pierre
> 2011/1/13 gianni lavaredo<gianni.lavaredo at gmail.com>:
>> Dear Researchers,
>> I have 3 shapefiles and I wish to find a way to union (or merge) to have
>> only one shapefile. Do i need to use spatstat?
>> thanks Gianni
>>         [[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

More information about the R-sig-Geo mailing list