tudelft3d / pprepair

Validation and Automatic Repair of Planar Partitions
GNU General Public License v3.0
57 stars 22 forks source link

in the triangulation output, record an array with the original polygon IDs #34

Open lucasmation opened 8 years ago

lucasmation commented 8 years ago

It would be extremely usefull if pprepair provided the information linking each triangue in the triangulation to the original poligons in the input file that it overlaps (is contained in).

This could be done as an additional character column in the dbf file containing an array of ids from the original shapefile (as in the example table bellow)

gid tags father_ids
1 1 1231
2 0
3 2 4531;1378
4 1 5026
5 4 8745;3474;7231
6 0

Why? Because it would make it much easier to understand what changed, create statistics on the percentage of polygons (or polygon borders) that changed. Knowing that 3% of the triangulation polygons had problens is much less usefull than knowing that x% of the original polygons had problems. Also if makes if easyer to inspect visually the changes made.