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

SimplifyVwPreserve seems to be borken. #1042

Open
twitchax opened this issue Jul 27, 2023 · 9 comments
Open

SimplifyVwPreserve seems to be borken. #1042

twitchax opened this issue Jul 27, 2023 · 9 comments

Comments

@twitchax
Copy link

The input was time zone boundaries from OSM.

SimplifyVwPreserve results in a weird result.

image

SimplifyVw seems to work just fine.

image
@urschrei
Copy link
Member

That certainly doesn’t look correct, but hard to say why without knowing a bit more.

@twitchax
Copy link
Author

I can provide the input data, etc., if that helps.

I'm not going to be super useful to debugging, I believe. :)

@urschrei
Copy link
Member

Well, whatever you’ve got in the way of repro would be useful.

@twitchax
Copy link
Author

Let me cut a branch.

@twitchax
Copy link
Author

twitchax commented Jul 27, 2023

Ok, here is the code where it is called. Just switch between Vw and VwPreserve. To get the geojson output. run

cargo run --features full --features extrasimplified -- dump-geojson preserve

@urschrei
Copy link
Member

urschrei commented Aug 7, 2023

Working on an VW-preserve fix and I think this looks better, but it'll be more immediately obvious to you. If you plug in my branch as the geo dependency you can use the updated algorithm:

geo = { git="https://github.com/urschrei/rust-geo.git", version="0.26.0" }

@twitchax
Copy link
Author

twitchax commented Aug 7, 2023

Hmmm, looks about the same.

image

@urschrei
Copy link
Member

urschrei commented Aug 7, 2023

🤔. Which of the three generated geojson files is that?

@twitchax
Copy link
Author

twitchax commented Aug 7, 2023

The one with tz-osm in its name. You probably want to skip over the admin-osm by not using that feature since those cannot be generated via the web like the others.

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

No branches or pull requests

2 participants