# Repair polygons in a map file (Tami)

> Independent utility - not a government site. Confirm official filings with the authority.

- Slug: `geojson-kml-wkt-geometry-fixer`
- Country / Language: GLOBAL / en
- Archetype: CLIENT_FILE_FIXER
- Official Source: IETF (RFC 7946) & Open Geospatial Consortium (OGC) — IETF RFC 7946 The GeoJSON Format + OGC KML 2.3 & Simple Features WKT (https://datatracker.ietf.org/doc/html/rfc7946)
- Schema: https://geojson-kml-wkt-geometry-fixer.tami.page/api/tools/geojson-kml-wkt-geometry-fixer/schema.json
- Run API (GET/POST): https://geojson-kml-wkt-geometry-fixer.tami.page/api/tools/geojson-kml-wkt-geometry-fixer/run
- Direct JSON: https://geojson-kml-wkt-geometry-fixer.tami.page/?geo_file=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Ckml%20xmlns%3D%22http%3A%2F%2Fwww.opengis.net%2Fkml%2F2.2%22%3E%0A%20%20%3CDocument%3E%0A%20%20%20%20%3CPlacemark%3E%0A%20%20%20%20%20%20%3Cname%3ESite%20Parcel%20A%3C%2Fname%3E%0A%20%20%20%20%20%20%3Cdescription%3EClockwise%20unclosed%20sample%20boundary%3C%2Fdescription%3E%0A%20%20%20%20%20%20%3CPolygon%3E%0A%20%20%20%20%20%20%20%20%3CouterBoundaryIs%3E%0A%20%20%20%20%20%20%20%20%20%20%3CLinearRing%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Ccoordinates%3E-3.7050%2C40.4150%2C0%20-3.7050%2C40.4180%2C0%20-3.7010%2C40.4180%2C0%20-3.7010%2C40.4150%2C0%3C%2Fcoordinates%3E%0A%20%20%20%20%20%20%20%20%20%20%3C%2FLinearRing%3E%0A%20%20%20%20%20%20%20%20%3C%2FouterBoundaryIs%3E%0A%20%20%20%20%20%20%3C%2FPolygon%3E%0A%20%20%20%20%3C%2FPlacemark%3E%0A%20%20%3C%2FDocument%3E%0A%3C%2Fkml%3E&output_format=geojson_rfc7946&fix_winding_and_close=true&format=json

## Inputs
- `geo_file` (file, required): GeoJSON, KML, or WKT file — Fixed locally in your browser. Paste or drop GeoJSON, KML, or WKT map shapes.
- `output_format` (select, optional): Output format — Choose whether to download as GeoJSON, KML, or WKT.
- `fix_winding_and_close` (checkbox, optional): Auto-close open shapes & fix point order — Closes open polygon loops and fixes clockwise/counter-clockwise ring direction.
