new version of polygon splitting for gdalcontours processing. https://www.openstreetmap.org/user/h4ck3rm1k3/diary/9840