Jump to content

Merging vector data


enganga

Recommended Posts

 Hello

 

I recently converted a raster Land cover  data-set of an entire country to vector data

The challenge now comes when i try to merge the files of for instance forest land cover class which has

about a million polygons to one polygon.

 

I tried to do this in Arcmap 10.2.2, however it hangs and does not complete the process, the other error is memory error. This i don't get as i have more than 200 gb space on drive c.

 

Kindly if there is any other platform which can assist me complete this process.

 

Regards,

 

Eric Ng

Link to comment
Share on other sites

do it in qgis. 

 

Start QGIs>open all layers>click Processing Tab Menu>click Toolbox>Go to Grass Commands [158 geoalgorithms]> click + sign to show all the the commands> look for the v.patch-create a new vector map layer by combining other vector map layers. 

 

It may take a while. depends on the computer machine you used. 

Edited by jonah
Link to comment
Share on other sites

  • 3 weeks later...

You can do this by using Python Script. Follow the script: --

 

import glob
import shapefile
files
= glob.glob("*.shp")
w = shapefile.Writer()
for f in files:
r = shapefile.Reader(f)
w._shapes.extend(r.shapes())
w.records.extend(r.records())
w.fields = list(r.fields)
w.save("merged")

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.

Disable-Adblock.png

 

If you enjoy our contents, support us by Disable ads Blocker or add GIS-area to your ads blocker whitelist