Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reversed coastline results in "Hole lies outside shell" output #41

Open
wangi opened this issue Mar 8, 2022 · 2 comments
Open

Reversed coastline results in "Hole lies outside shell" output #41

wangi opened this issue Mar 8, 2022 · 2 comments

Comments

@wangi
Copy link

wangi commented Mar 8, 2022

Hi, seeing an issue which results in a continent worth of coastline output to the error_lines table in the spatialite file, with "invalid" status - so very hard to troubleshoot. Looking the output of osmcoastline v2.3.1-6-g5652a7b gives more information:

[ 0:05] Writing out rings... (Because you gave the --output-rings/-r option.)
[ 0:20] Create polygons...
Warning 1: Hole lies outside shell at or near point 128.80197369999999 35.702867900000001
[ 0:36] Fixing coastlines going the wrong way...
[ 0:36]   Turned 0 polygons around.

Looking at that location, there is a island with reversed coastline, which isn't getting picked up by the normal checks (we parse out the db and use for basis of display here).

Thanks/L

@joto
Copy link
Member

joto commented Mar 9, 2022

There are occasions where osmcoastline doesn't work correctly and I have never figured out what happens exactly. Something between my code and the GEOS library code. In very few cases the error output generated by osmcoastline is not enough to find the problem, but then, as you have seen, you'll get that warning on the command line output, which is generated directly by the library. Fixing the issue around that point has always fixed the problem for me.

@wangi
Copy link
Author

wangi commented Mar 9, 2022

Thanks, i'll probably wrap around the osmcoastline output, grep out that error and manually insert into the db for the checker to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants