pprepair(1)

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-i\F[] filename
    Add this file to the triangulation using this schema index

\FC-o\F[] filename
    Output the reconstructed polygons in this file

\FC-fix\F[]
    Automagically repair (same as \FC-rrlb\F[] \FC-rrrn\F[])

\FC-d\F[]
    Dissolve the boundaries between regions with the same tag according to the schema index

Possible steps (in usual processing order)

\FC-i\F[] filename
    Add this file to the triangulation using this schema index

\FC-t\F[]
    Tag the triangulation

\FC-otnt\F[] filename
    Output the tagged triangulation with the number of tags to this file

\FC-vh\F[]
    Consider holes as valid

\FC-sr\F[] ration
    Split invalid regions at triangles with a higher aspect ratio than this

\FC-v\F[]
    Validate

\FC-au\F[]
    Allow removing invalid regions (where convenient)

\FC-rtnn\F[]
    Repair triangles by assigning them to the neighbour present on most sides

\FC-rtam\F[]
    Repair triangles by assigning them to a neighbour present on at least 2 sides

\FC-rtlb\F[]
    Repair triangles by assigning them to the neighbour present along the longest part of their boundary

\FC-rrlb\F[]
    Repair regions by assigning them to the neighbour present along the longest part of their boundary

\FC-rrrn\F[]
    Repair regions by assigning them to a random neighbour

\FC-rpl\F[] filename
    Repair by assigning according to the priority list in this file

\FC-rem\F[] filename
    Repair for edge matching according to the priority list in this file

\FC-ot\F[] filename
    Output the triangulation to this file

\FC-otwp\F[] filename
    Output the triangulation to this file, including the input file where each triangle came from

\FC-bd\F[]
    Removes unnecessary vertices before reconstruction to support larger data sets (try if you get a segmentation fault)

\FC-rp\F[]
    Reconstruct polygons

\FC-o\F[] filename
    Output the reconstructed polygons in this file

\FC-owp\F[] filename
    Output the reconstructed polygons in this file, including the input file where they came from

\FC-pi\F[]
    Print triangulation information

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

SEE ALSO
prepair(1)