Vector Overlapping Areas

From GRASS-Wiki
Revision as of 05:47, 24 June 2008 by Neteler (talk | contribs) (won't work with the DBF driver)

Jump to: navigation, search

Q: How can I determine the number of overlapping features per location after import of SHAPE file?

A: You can run this (example) - note that it won't work with the DBF driver but requires SQLite, PostgreSQL, MySQL, or... driver: dsn=./shp/ layer=fireHistory output=fireHistory
  v.category input=fireHistory output=tmpFire
  v.db.addtable map=tmpFire table=tmpFire_2 layer=2 columns='num,int' map=tmpFire layer=2 qlayer=1 option=query col=num qcol='count(*)' type=centroid
  # Export it to a raster layer: input=tmpFire layer=2 output=mf use=attr column=num