Open twitchax opened 1 year ago
That certainly doesn’t look correct, but hard to say why without knowing a bit more.
I can provide the input data, etc., if that helps.
I'm not going to be super useful to debugging, I believe. :)
Well, whatever you’ve got in the way of repro would be useful.
Let me cut a branch.
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
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" }
Hmmm, looks about the same.
🤔. Which of the three generated geojson files is that?
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.
The input was time zone boundaries from OSM.
SimplifyVwPreserve
results in a weird result.SimplifyVw
seems to work just fine.