ClearSKY FaviconClearSKY Polygon Tools

Fix a Zero-Area Polygon Ring (Degenerate) (WKT and GeoJSON)

2026-01-07 · 5 min read · WKT · GeoJSON · validation · polygon · degenerate · zero-area · GIS

A zero-area ring is a degenerate polygon. Learn how to spot it, remove or repair it in a browser, validate the result, and export clean WKT or GeoJSON.

Try it now

A zero-area ring is a ring that technically looks like a polygon, but it encloses no area.
Most validators reject it, and many GIS tools fail or return strange results.

This guide shows a practical way to:


What “zero area ring” means (in plain terms)

A polygon ring needs at least 3 distinct corners that form a real shape.
If the points are all on the same line, or the shape collapses back on itself, the ring has zero area.

Typical symptoms


Quick diagnostic. Confirm it is a zero-area ring

  1. Open WKT Validator or GeoJSON Validator.
  2. Paste your geometry.
  3. If you see an error like ring(s) have zero area (degenerate), you are in the right place.

Minimal example. WKT ring with zero area

This ring is closed, but all points are collinear, so it encloses no area.

POLYGON((0 0, 1 0, 2 0, 0 0))

Minimal example. GeoJSON ring with zero area

{
  "type": "Polygon",
  "coordinates": [
    [
      [0, 0],
      [1, 0],
      [2, 0],
      [0, 0]
    ]
  ]
}

Why this happens

Common causes:


Fix it in the browser (ClearSKY Polygon Tools)

Option A. Drop the zero-area ring in the validator

This is the fastest fix when the degenerate ring is not important.

  1. Open WKT Validator or GeoJSON Validator.
  2. Enable Drop zero-area rings.
  3. Copy the fixed output.
  4. Re-run validation on the fixed output.

Important: Dropping rings can remove holes. If the outer ring is zero-area, dropping it can remove the entire polygon part.

Use this option when:

Option B. Fix it in the editor by adding or moving vertices

Use this when you must keep the ring, or when dropping it removes something real.

  1. Open /editor and paste or import the geometry.
  2. Zoom to the ring that looks collapsed.
  3. Add a vertex or move a vertex so the ring encloses a real area.
  4. Save and re-run validation.

Rule of thumb: You need at least three non-collinear corners. A triangle that actually has area is enough.

Option C. Delete the bad hole only (common case)

Sometimes the outer ring is fine, but one hole is degenerate.

  1. Open /editor.
  2. Find the hole that renders as a line or spike.
  3. Delete that hole ring, or redraw it properly.
  4. Validate again.

If you need the hole to exist, redraw it. If it is an artifact, delete it.


Special cases you should not miss

A MultiPolygon can contain a degenerate part

If only one part of a MultiPolygon is degenerate, you usually want to remove or rebuild that part, not the whole geometry.

In /editor, split the MultiPolygon into parts, delete or repair the bad part, then export again.

Consecutive duplicates can hide the real problem

If your ring has many repeated points, start with a cleanup pass:

This will not fix a truly degenerate ring, but it can make the geometry easier to repair.


Validate the fixed result (do not skip this)

After any fix:

  1. Re-run validation (WKT or GeoJSON).
  2. Visually confirm the outline looks correct.
  3. Check area and bounds. If values look extreme, you may have a CRS or coordinate issue.

If validation still fails, look for other issues:


If you are using QGIS or PostGIS

QGIS

Useful tools, names may vary by version:

Always compare before and after. Automatic fixes can drop rings.

PostGIS

Handy functions:

Example:

SELECT ST_IsValidReason(geom)
FROM my_table
WHERE id = 123;

UPDATE my_table
SET geom = ST_MakeValid(geom)
WHERE id = 123;

If the repaired geometry returns a MultiPolygon and you expected a Polygon, you may need a rule such as keeping the largest part.


Prevention checklist


FAQ

Is a zero-area ring the same as a ring not being closed?

No. A ring can be perfectly closed and still have zero area. Ring closure is about the first and last point matching. Zero area is about the ring failing to enclose any area.

Should I always drop zero-area rings?

Not always. Dropping is fine for junk rings or accidental hole artifacts. If the ring represents something real, fix it in the editor by adding or moving vertices so it encloses area.

Why did dropping zero-area rings remove my polygon?

If the outer ring is degenerate, the polygon part has no valid boundary. Dropping it removes that part. In that case, you need to redraw or repair the outer ring in the editor.

Can simplifying create zero-area rings?

Yes. If simplification removes key corners, a ring can collapse into a line. If you simplify, validate immediately afterwards, and consider using smaller tolerances.

My ring has area, but the validator still says zero area. Why?

Common causes are extreme rounding, repeated points that collapse segments, or a ring that folds back on itself in a way that cancels area. Try removing consecutive duplicates, then repair the vertices in the editor.

Related resources

Related guides