Dear Statalisters,
I have shapefiles of two adjacent countries (Germany and Switzerland) which I would like to combine into one large shapefile. Is there an easy way to achieve this?
This is how I started to convert the two single shapefiles into Stata-files but I have no idea how to proceed from here. Any help is highly appreciated.
I have shapefiles of two adjacent countries (Germany and Switzerland) which I would like to combine into one large shapefile. Is there an easy way to achieve this?
This is how I started to convert the two single shapefiles into Stata-files but I have no idea how to proceed from here. Any help is highly appreciated.
Code:
clear cd C:\Users\wwa594\Documents\Stata\spmap //Germany copy "http://biogeo.ucdavis.edu/data/gadm2.8/shp/DEU_adm_shp.zip" "DEU_adm_shp.zip", replace unzipfile "DEU_adm_shp.zip" shp2dta using DEU_adm0, database(gerdb) coordinates(gercoord) genid(id) use gerdb, clear spmap using gercoord, id(id) //Switzerland copy "http://biogeo.ucdavis.edu/data/gadm2.8/shp/CHE_adm_shp.zip" "CHE_adm_shp.zip", replace unzipfile "CHE_adm_shp.zip" shp2dta using CHE_adm0, database(chfdb) coordinates(chfcoord) genid(id2) use chfdb, clear spmap using chfcoord, id(id2)
Comment