---
name: "prepair"
section: "1"
platform: "linux"
package: "prepair"
version: "0.7.1-3+b2"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/prepair"
---

# prepair(1)

repair GIS polygons

## NAME

prepair - repair GIS polygons

## SYNOPSIS

**prepair**  \[**--wkt** *string* \| **-f** *file* \| **--ogr** *file*\] \[**--robustness**\] \[**--minarea** *AREA*\] \[**--isr** *GRIDSIZE*\] \[**--time**\] \[**--shpOut**\]

## DESCRIPTION

**prepair** permits you to easily repair "broken" GIS polygons, and that according to the international standards ISO 19107. In brief, given a polygon stored in WKT, it automatically repairs it and gives you back a valid WKT. Automated repair methods can be considered as interpreting ambiguous or ill-defined polygons and giving a coherent and clearly defined output.

## OPTIONS

- FC**--wkt**F\[0\] *'POLYGON(0 0, 1 0, 1 1, 0 0)'*

  Process polygon from WKT string

- FC**-f**F\[0\] *infile.txt*

  Process polygon from WKT string on the first line of the file

- FC**--ogr**F\[0\] *infile.shp*

  Process first polygon of the input file

- FC**--robustness**F\[0\]

  Compute the robustness of the input/output

- FC**--setdiff**F\[0\]

  Uses the point set topology paradigm (default: odd-even paradigm)

- FC**--minarea**F\[0\] *AREA*

  Only output polygons larger than *AREA*

- FC**--isr**F\[0\] *GRIDSIZE*

  Snap round the input before repairing

- FC**--time**F\[0\]

  Benchmark the different stages of the process

- FC**--shpOut**F\[0\]

  Output a shapefile (FC*out.shp*F\[0\]) instead of a WKT

## SEE ALSO

[**pprepair**(1)](/pprepair/1.md)
