This is the command pprepair that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
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
-i filename
Add this file to the triangulation using this schema index
-o filename
Output the reconstructed polygons in this file
-fix Automagically repair (same as -rrlb -rrrn)
-d Dissolve the boundaries between regions with the same tag according to the schema
index
Possible steps (in usual processing order)
-i filename
Add this file to the triangulation using this schema index
-t Tag the triangulation
-otnt filename
Output the tagged triangulation with the number of tags to this file
-vh Consider holes as valid
-sr ration
Split invalid regions at triangles with a higher aspect ratio than this
-v Validate
-au Allow removing invalid regions (where convenient)
-rtnn Repair triangles by assigning them to the neighbour present on most sides
-rtam Repair triangles by assigning them to a neighbour present on at least 2 sides
-rtlb Repair triangles by assigning them to the neighbour present along the longest part
of their boundary
-rrlb Repair regions by assigning them to the neighbour present along the longest part of
their boundary
-rrrn Repair regions by assigning them to a random neighbour
-rpl filename
Repair by assigning according to the priority list in this file
-rem filename
Repair for edge matching according to the priority list in this file
-ot filename
Output the triangulation to this file
-otwp filename
Output the triangulation to this file, including the input file where each triangle
came from
-bd Removes unnecessary vertices before reconstruction to support larger data sets (try
if you get a segmentation fault)
-rp Reconstruct polygons
-o filename
Output the reconstructed polygons in this file
-owp filename
Output the reconstructed polygons in this file, including the input file where they
came from
-pi Print triangulation information
EXAMPLE
pprepair -i "myInput.shp" -o "myOutput.shp" -fix
Use pprepair online using onworks.net services