Reference

pprepair(1)

planar partition repair tool

NAME

pprepair - planar partition repair tool

SYNOPSIS

pprepair [ [-i filename [schemaindex]] [-o filename] [-fix] [-d] | -p [-i filename [ schemaindex]] [-t] [-otnt filename] [-vh] [-sr ratio] [-v] [-au] [-rtnn] [-rtam] [-rtlb] [-rrlb] [-rrrn] [-rpl filename] [-rem filename] [-ot filename] [-otwp filename] [-bd] [-rp] [-owp] [-o filename] [-pi] ]

DESCRIPTION

pprepair (planar partition repair) takes a set of polygons and ensures that they form a valid planar partition, made of valid polygons and having no gaps or overlaps. It can be used as a validator, telling of problems in individual polygons or in the planar partition, and also as an automatic repair tool, outputting a set of polygons that do form a valid planar partition.

OPTIONS

Basic options

FC-iF[0] filename

Add this file to the triangulation using this schema index

FC-oF[0] filename

Output the reconstructed polygons in this file

FC-fixF[0]

Automagically repair (same as FC-rrlbF[0] FC-rrrnF[0])

FC-dF[0]

Dissolve the boundaries between regions with the same tag according to the schema index

Possible steps (in usual processing order)

FC-iF[0] filename

Add this file to the triangulation using this schema index

FC-tF[0]

Tag the triangulation

FC-otntF[0] filename

Output the tagged triangulation with the number of tags to this file

FC-vhF[0]

Consider holes as valid

FC-srF[0] ration

Split invalid regions at triangles with a higher aspect ratio than this

FC-vF[0]

Validate

FC-auF[0]

Allow removing invalid regions (where convenient)

FC-rtnnF[0]

Repair triangles by assigning them to the neighbour present on most sides

FC-rtamF[0]

Repair triangles by assigning them to a neighbour present on at least 2 sides

FC-rtlbF[0]

Repair triangles by assigning them to the neighbour present along the longest part of their boundary

FC-rrlbF[0]

Repair regions by assigning them to the neighbour present along the longest part of their boundary

FC-rrrnF[0]

Repair regions by assigning them to a random neighbour

FC-rplF[0] filename

Repair by assigning according to the priority list in this file

FC-remF[0] filename

Repair for edge matching according to the priority list in this file

FC-otF[0] filename

Output the triangulation to this file

FC-otwpF[0] filename

Output the triangulation to this file, including the input file where each triangle came from

FC-bdF[0]

Removes unnecessary vertices before reconstruction to support larger data sets (try if you get a segmentation fault)

FC-rpF[0]

Reconstruct polygons

FC-oF[0] filename

Output the reconstructed polygons in this file

FC-owpF[0] filename

Output the reconstructed polygons in this file, including the input file where they came from

FC-piF[0]

Print triangulation information

EXAMPLE

FC
pprepair -i "myInput.shp" -o "myOutput.shp" -fix
      F[0]

SEE ALSO

prepair(1)

History