osmcode / osmcoastline

Extracts coastline data from OpenStreetMap planet file.
https://osmcode.org/osmcoastline/
GNU General Public License v3.0
109 stars 14 forks source link

Error due to GEOSisValidReason() returning NULL #18

Closed imagico closed 9 years ago

imagico commented 9 years ago

I get basic_string::_S_construct null not valid - apparently due to GEOSisValidReason() unexpectedly returning NULL here:

https://github.com/osmcode/osmcoastline/blob/master/src/output_layers.cpp#L231

joto commented 9 years ago

@imagico can you check whether master fixes this for you?

The code around GEOSisValidReason() uses undocumented features of OGR and GEOS and is rather brittle. Some day we have to find a better way how to handle this.

imagico commented 9 years ago

Yes, it is fine now. I did not check whether the fault is OGR or GEOS here.