perliedman / ocad2geojson

JavaScript OCAD file reader and exporter for GeoJSON, SVG and Mapbox Style Spec
https://www.liedman.net/ocad2geojson/
GNU Affero General Public License v3.0
39 stars 4 forks source link

Polygons with holes are sometimes incorrectly rendered #7

Closed perliedman closed 2 years ago

perliedman commented 4 years ago

Some polygons with holes do not render correctly, holes sometimes disappear.

Have not had time to dig into it, but a suspicion is that OCAD does not enforce winding order for polygons and holes the same way GeoJSON does, and I haven't even checked how it is supposed to work with SVG.

perliedman commented 2 years ago

Hard to know since there's no replication, but probably fixed by 17c931c65042c88aa95b7c581a44d70852d52885