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

Ignore invalid block pointers #20

Closed perliedman closed 3 years ago

perliedman commented 3 years ago

Extracted from #19 by @pauliojanpera

perliedman commented 3 years ago

Hi @pauliojanpera! I took the liberty of extracting this part of your PR and made some small changes - in general, I want to try to make it obvious where the reader found something strange in the read file and ignored it, since it's not always clear if it's the file or this library that is the problem! I tried it with the test files you submitted, and it works, but I'm not sure if any of them actually had the issue with invalid block pointers?