Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

How to convert self intersecting polygon to multipolygon?

$
0
0

Working with the union and polygonize methods in GDAL/OGR, I often end up with self intersecting polygons. The case is one polygon which essentially consists of two polygons:

Self intersecting polygon example

In the above example, the polygon has two vertices at the intersection point, but whether the lines meet and goes seperate ways at the point or crosses each other, is unknown.

  1. Are there methods for splitting a self intersecting polygon like above, into two polygons or a multipolygon?

  2. Alternatively are there any existing algorithms I could implement my self (I would rather not invent another wheel)?


Viewing all articles
Browse latest Browse all 397

Latest Images

Trending Articles



Latest Images