Back to Portfolio

GeoFix

A geospatial utility for fixing polygon geometry and checking shared interior overlap.

GeoFix Polygon Fixer

About the App

This project started from a real operational problem: broken polygon data needed to be fixed before it could be used reliably. At first, the easiest solution was manual correction, but existing tools made the process more complicated than expected. Some required WKT-to-GeoJSON conversion, some gave unclear validation errors, and others expected users to work from the terminal. GeoFix was built to make polygon repair and overlap checking simple enough for non-technical users.

GeoFix is a client-side geospatial utility for validating, repairing, converting, and visually inspecting polygon geometry. It supports WKT and GeoJSON inputs, renders polygons on an interactive map, detects common geometry issues, helps users export corrected geometry in GeoJSON, WKT, or KML format, and includes a polygon overlap checker to compare two polygons by spatial relationship, overlap area, percentage overlap, and intersection coordinates.

Main Features

User Flow

01

Paste Geometry Input

Users paste a polygon string in WKT, GeoJSON, or coordinate format into the validation or overlap checker interface.

02

Validate Polygons

The application parses the geometry, checks validity rules, and calculates spatial relationships using geospatial processing logic.

03

Preview on Map

Valid polygons are displayed on an interactive map so users can visually inspect boundaries, intersections, and overlap areas.

04

Export Repaired Geometry

Users can copy repaired output or convert validated geometry into formats such as GeoJSON, WKT, or KML.

Technical Decisions

  • Geospatial Logic with Turf.js: I chose Turf.js to handle core geospatial operations, including validation helpers, area calculation, overlap detection, self-intersection detection, ring orientation, and polygon repair.
  • Interactive Map Visualization: I used Leaflet with OpenStreetMap tiles to provide a fast and familiar way for users to visually inspect polygon geometry directly in the browser.
  • Unified Geometry Format: I normalized all supported inputs into a GeoJSON Feature internally, then formatted the result back into the user’s selected export format such as GeoJSON, WKT, or KML.

Ready to see more?

Back to Portfolio