Commit Graph

398 Commits

Author SHA1 Message Date
Michael Kirk
8dc7e43309 Optional: rely on new default f64 type for geo-types 2022-06-24 18:13:28 -05:00
Michael Kirk
31637b4d61 update geo 2022-06-24 18:13:28 -05:00
Dustin Carlino
0a59cedb98 Import Keighley 2022-06-21 13:56:55 +01:00
Dustin Carlino
34487a3322 Upgrade to new georust, which subsumes geo-boolean-op.
Based on https://github.com/michaelkirk/abstreet/tree/mkirk/test-bools

Note geojson isn't upgraded yet, due to contours. And the old version of
geo is still pulled in, due to polylabel.
2022-06-13 17:30:51 +01:00
Dustin Carlino
360870a72c Refactor convert_osm::Options default settings 2022-06-12 16:35:11 +01:00
Dustin Carlino
5c65ee174a Simplify flag plumbing for left/right handed driving. I thought the bug
fixed in the previous commit might've been an issue here. All the flag
handling was correct, but this way is more maintainable.
2022-05-18 12:02:58 +01:00
Dustin Carlino
0e284b73a9 Use bindgen to build gdal for the importer. Otherwise, I can't get libgdal-dev on a vanilla Ubuntu 22.04 machine to work. [rebuild] 2022-05-10 16:35:37 +01:00
Dustin Carlino
1bf5bb2d8b Trim down SMP scenario size by actually deleting cancelled trips. Also makes the results less confusing. 2022-05-06 12:55:14 +01:00
Dustin Carlino
2d547a383f Stop importing GTFS data for all of Sao Paulo -- only Aricanduva. Edits near the sidewalk of a bus stop still crash (as expected). Avoid this (and likely confusing simulation effects) in SMP. 2022-04-30 14:12:25 +01:00
Dustin Carlino
79126f28df Remove elevation data from Sao Miguel Paulista. The SRTM part of elevation_lookups hasn't had validation, and I'm seeing pedestrians slow down on steep streets that may not actually be steep. Let's just flatten that map out to remove a possible complication. 2022-04-28 13:19:13 +01:00
Dustin Carlino
bd5d93ba84 Wire up a way to override OSM sidewalk widths in basemaps using proposals.
We need this because we have a data source for SMP that we can use with
extra attribution, but not upload to OSM.

This whole commit is gross hacks; going forward, we need a proper
process for upstreaming stuff in OSM.
2022-04-27 10:21:54 +01:00
Michael Kirk
d76bb3fbbd update to geo 0.20.1 2022-04-22 18:13:36 +01:00
Dustin Carlino
d386948a13 Import GTFS for São Paulo 2022-04-14 15:19:29 +01:00
Dustin Carlino
54a7b08ee4 Don't run docker and try to import elevation data when importing one-shot maps from the UI. The results with SRTM aren't any good, and for people who happen to have docker, it can be a surprising and slow extra step. 2022-04-12 15:45:50 +01:00
Dustin Carlino
d0f0fcf611 Cache the custom pathfinders in the LTN impact tool. I had trouble with this previously, because it was exposing the RoutingParams bug just fixed. #852 2022-03-25 11:24:18 +00:00
Dustin Carlino
6139314584 Import Glenrothes (lumped into GB for now; using the longer ISO country codes would break stuff) 2022-03-22 18:07:49 +00:00
Dustin Carlino
f3381d3807 Import Oxford and Keelung. The former has LTN blockfinding issues, and
the latter doesn't detect the ocean -- will iterate on both issues
later.
2022-03-22 14:30:18 +00:00
Dustin Carlino
a266d91632 Import a large slice of central London, minus buildings, for an LTN demo. 2022-03-12 22:21:48 +00:00
Dustin Carlino
606a59cec5 Import Pune 2022-03-10 08:29:40 +00:00
Dustin Carlino
a99aec2dc4 Unbrick the UK scenario import 2022-03-08 17:11:34 +00:00
Dustin Carlino
4ea201575d Import Nottingham 2022-03-05 17:33:58 +00:00
Dustin Carlino
d141a2a810 Upgrade all geo dependencies! No behavioral difference 2022-02-22 16:45:49 +00:00
Dustin Carlino
cf27e48202 Import a scenario for São Miguel Paulista #861 2022-02-21 21:10:50 +00:00
Dustin Carlino
e17c875954 Import Derby (and cheat to squeeze it into the 0.3.12 release that just happened) 2022-02-20 22:04:54 +00:00
Dustin Carlino
54634e564a Import São Miguel Paulista 2022-02-18 16:19:09 +00:00
Dustin Carlino
49f3ad6a8d Remove some old London study areas, now that most boroughs are imported instead. #794, #577 2022-02-17 10:10:41 +00:00
Dustin Carlino
205c17a2f0 Remove the command to do Raw->Map conversion in parallel, now that I've got pueue working. That command has major caveats with a few cities anyway. #326 2022-02-10 16:12:03 +00:00
Dustin Carlino
741040840a Use pueue to import cities in parallel as separate processes. #326
We need to name elevation directories differently to avoid conflicts
2022-02-10 16:02:43 +00:00
Dustin Carlino
9054666a0b Use RDP simplification to road center-lines when we glue them together after collapsing degenerate intersections. This is a followup to #833.
And clean up some other things that RDP does better.

Fallout from regenerating everything:

- Enfield borough crashed, so removed it
- All UK scenarios are now much bigger, due to the changes in #853 being
  picked up
- Poundbury gridlocks now due to that
2022-02-10 14:40:11 +00:00
Dustin Carlino
2cca84c19b Import most London boroughs. #794
I used the simplified boundaries from
https://skgrange.github.io/data.html. 4 boroughs failed early in
conversion, need to investigate separately. Plenty of weird clipping
issues with the Thames.
2022-02-09 22:12:16 +00:00
Dustin Carlino
d5f7756d5f Import another part of Melbourne 2022-02-09 16:39:05 +00:00
Dustin Carlino
7fdfdd5e10 Import Melbourne 2022-02-08 09:45:03 +00:00
Dustin Carlino
b62954ef30 Add procgen houses for Levenshulme, since parts of the map are just missing buildings.
Regenerate the scenario in S3 now. Comparison with traffic counts barely
changed, so this didn't make much of a difference, but it can't hurt.
2022-02-03 14:40:57 +00:00
Dustin Carlino
f22590ae0c Refactor MapBorders, used to snap trips starting/ending off-map to a
border. Try weighting by road classification. #848

No behavioral change for anything except UK scenarios. Still not
regenerating those.
2022-02-03 14:20:03 +00:00
Dustin Carlino
b93850406f Revive efforts on the generic desire line -> scenario pipeline. Include desire lines for zones that don't intersect the map boundary at all, with very simple border intersection snapping.
Note this changes all UK scenarios, but I'm not going to regenerate any
of them and put in S3 until I'm getting decent results at least in
Manchester.
2022-02-02 16:28:49 +00:00
Dustin Carlino
b9872f6a46 Quickly compare Levenshulme sensor data to generated scenarios, from the console (I guess the UI isn't as useful as I expected yet) 2022-02-02 14:55:53 +00:00
Dustin Carlino
0058f99da2 Mechanical rename of TripEndpoint::Bldg to ::Building, mostly to kick off a [rebuild] [release] 2022-01-30 18:27:36 +00:00
Dustin Carlino
f171ddcb73 Get everything to build again... 2022-01-28 13:13:43 +00:00
Dustin Carlino
e318f2733b Import Wokingham 2022-01-26 12:09:37 +00:00
Dustin Carlino
deffc35fd7 Optionally generate a scenario for one-shot imported UK maps. #842 2022-01-26 10:31:38 +00:00
Dustin Carlino
61d7a03cbd Import Levenshulme for traffic sensor study 2022-01-25 12:32:37 +00:00
Dustin Carlino
518d8fe22e Import Newcastle 2022-01-18 10:00:49 +00:00
Dustin Carlino
bd340a1970 Switch from std::fs to fs_err. When files aren't found, the error message actually includes the path! 2022-01-17 17:30:51 +00:00
Dustin Carlino
8e26fd2fb5 Import Hackney 2022-01-11 15:52:47 +00:00
Dustin Carlino
e863517f13 Adjust Bristol boundary 2022-01-04 11:00:11 +00:00
Dustin Carlino
b08a259059 Import part of east Bristol for LTN work 2022-01-04 10:22:56 +00:00
Dustin Carlino
77ca4141b1 Start importing Fordham regularly 2021-12-20 23:11:36 +00:00
Marcel Dejean
65f086ecb3 PathStep::ContraflowTurn to allow walking turns both ways
* Also implement ContraflowMovement for pathfinder v2
* Change uses of Turn to Turn | ContraflowTurn
* Reverse contraflowturn geometry when tracing pathstep
* Don't start or end a path in a ContraflowTurn either
2021-12-20 23:11:36 +00:00
Dustin Carlino
9ecbdfa47f Shrink the Bradford study area, to load faster on the web. [rebuild] [release] 2021-12-19 12:35:46 +00:00
Dustin Carlino
ec9ed9c64c Import a small slice of Kennington with a very representative set of London-specific map model issues. Add it to the screenshot tests, replacing Great Kneighton as the GB test. And trim out lakeslice from the test; we don't need quite so much redundancy for Seattle. 2021-12-09 14:31:20 +00:00