rgdal - Trouble merging shapefiles in R -


i having trouble merging shapefiles in r. here code far:

library(rgdal) library(maptools) library(gridextra)  setwd("/users/cornelius/dropbox/cornelius_sharedfolder")  #load geodatabase fgdb = "/users/cornelius/dropbox/cornelius_sharedfolder/rwandagdb.gdb"  subset(ogrdrivers(), grepl("gdb", name)) fc_list = ogrlistlayers(fgdb) print(fc_list)  #get shapefiles geodatabase: residence=readogr(dsn=fgdb, layer="résidence") territoire = readogr(dsn=fgdb,layer="territoire") chefferie=readogr(ds=fgdb, layer="chefferie") sous_chefferie=readogr(ds=fgdb, layer="sous_chefferie") rwandapre2002=readogr(ds=fgdb, layer="rwandapre2002") country_boundary2012=readogr(ds=fgdb, layer="country_boundary2012") province_boundary2012=readogr(ds=fgdb, layer="province_boundary2012") sector_boundary2012=readogr(ds=fgdb, layer="sector_boundary2012") district_boundary2012=readogr(ds=fgdb, layer="district_boundary2012") cell_boundary2012=readogr(ds=fgdb, layer="cell_boundary2012")  x = list(residence, territoire, sous_chefferie, rwandapre2002, country_boundary2012, province_boundary2012, sector_boundary2012, district_boundary2012, cell_boundary2012)} 

this goes fine. however, when try merge 2 shapefiles - example, residence , territoire, , use following code, gives me error:

test_bind <-sprbind(territoire, residence) 

the error says: "non-unique polygon ids."

i'm not sure means. please help?


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo