Dustin Carlino
558a442b79
fix small bug in import script, and skip over bad polylines in
...
blockface. fixes #4
2019-12-03 19:28:58 -08:00
Dustin Carlino
a043a9ba05
clean up more of abstutil path/filesystem API
2019-12-03 09:59:43 -08:00
Dustin Carlino
720f9b8b30
similar for writing
2019-12-02 20:41:09 -08:00
Dustin Carlino
808c3da141
panic early with a nice error if we cant read a binary or json file
2019-12-02 20:35:20 -08:00
Dustin Carlino
463ed7022e
small fixes/cleanups to map layer:
...
- print highest cost in heatmap over all turns
- rm defunct label support for roads/bldgs
- trim out unused methods from Map
- making spawner go through sim layer to get paths, consolidating a bit
2019-11-18 10:33:36 -08:00
Dustin Carlino
98ef31fa24
disabled: import and render pedestrian traffic islands. include them in
...
search results.
2019-11-14 10:54:11 -08:00
Dustin Carlino
f299d38ea3
improve sidewalk heuristic -- assume larger oneway roads dont have a sidewalk on both sides
2019-11-09 14:34:31 -08:00
Dustin Carlino
179009de32
stop coloring synthetic/original stuff in map editor. not useful now that it's normal to modify existing stuff
2019-11-06 10:16:06 -08:00
Dustin Carlino
03e2c0b3f2
one master set of fixes in huge_seattle coordinate space, then a single override per map. start over with fixes... again. for the last time?! all the tricky cases from last time work now...
2019-11-04 09:50:59 -08:00
Dustin Carlino
6f50cbaa30
finishing the big cutover from stable to original IDs. main path works,
...
now looking at map editor
2019-10-28 12:40:09 -07:00
Dustin Carlino
ea50371d64
rip out stable IDs in favor of orig IDs. the extra layer is confusing for things like MapFixes. stop modifying orig IDs when merging roads.
...
NOT done with this transition yet, just pushing to not lose work
2019-10-28 12:08:11 -07:00
Dustin Carlino
7d7bfef5ea
filter out parking garages with 0 spots. render water on top of parks,
...
to workaround issue of the green lake park polygon covering everything
up
2019-10-26 11:37:10 -07:00
Dustin Carlino
9a3e7dc758
handling the giant ocean polygon. actually easier after earlier!
2019-10-25 22:44:21 -07:00
Dustin Carlino
e0bb2f97e0
debug floodfill from sidewalks, now that i'm really messing with that
...
connectivity
2019-10-25 14:40:52 -07:00
Dustin Carlino
27ddb21bc9
best effort include multipolygons that have some pieces unused. gets a few more cases working.
2019-10-25 14:09:35 -07:00
Dustin Carlino
e03e3393dd
be a little smarter about finding hits with the boundary
2019-10-25 13:54:09 -07:00
Dustin Carlino
77d0647b4f
when gluing together partial multipolygons, trace along the border when possible. improves a few cases.
2019-10-25 13:46:21 -07:00
Dustin Carlino
fe14e1709b
implement PartialEq on Pt2D using the old epsilon_eq. too many places in the codebase are inconsistent.
2019-10-25 12:24:18 -07:00
Dustin Carlino
814349b650
treat junction=roundabout roads as not needing sidewalk/parking confirmation
2019-10-25 09:54:20 -07:00
Dustin Carlino
f107bc1241
fix parking hint application to not erase other side
2019-10-24 17:35:02 -07:00
Dustin Carlino
2313b06995
DISABLED: apply sidewalk hints, same as parking. need to sort out what
...
should happen with parking without sidewalks
2019-10-23 13:00:42 -07:00
Dustin Carlino
9cab5bf903
prep before bringing in king county sidewalks. clean up lane type
...
calculation, move motorway/parking filter earlier. stop bringing in
street signs.
2019-10-23 09:35:41 -07:00
Dustin Carlino
d358f574d5
handle OSM polylines that have redundant internal nodes and cause weird shifting later (26th and gilman)
2019-10-21 19:28:31 -07:00
Dustin Carlino
0a97482a16
er, dont need parking hints on buildings and areas. also adjust traffic
...
signal box color; needed updating after changing colors a while ago
2019-10-17 12:44:00 -07:00
Dustin Carlino
74372c64b6
count how many roads have been audited. apply default tags (and mark
...
them inferred) to everything, to count properly.
2019-10-15 12:17:38 -07:00
Dustin Carlino
a762887cf8
interpret parking tags from OSM. explicitly mark when convert_osm infers and adds these.
2019-10-15 09:49:11 -07:00
Dustin Carlino
9d237f314b
dont conflict between synthetic OSM IDs created by map_editor and by map clipping
2019-09-29 12:43:02 -07:00
Dustin Carlino
1a678f6e72
revamp osm turn restriction handling. capture the 'via' to disambiguate things, and match to roads way sooner. not persisting to MapFixes again.
2019-09-27 11:05:19 -07:00
Dustin Carlino
23166b1aa8
switch to turn restriction enums, so we can easily use IDs in map_editor
2019-09-24 18:58:06 -07:00
Dustin Carlino
536df84844
rename raw_data layer of stuff for easier importing, disambiguation
2019-09-23 15:00:55 -07:00
Dustin Carlino
1495cc2970
remove redundancy of osm IDs on raw stuff
2019-09-23 12:08:00 -07:00
Dustin Carlino
deaa555565
cutover Original{Road,Intersection} to just use OSM IDs. adjust a few
...
other places to ensure unique-per-map synthetic OSM IDs
2019-09-23 11:50:04 -07:00
Dustin Carlino
9cc20cd87c
add a new map that includes a few light rail stops, for the hackathon
2019-09-21 08:41:01 -07:00
Dustin Carlino
1e73baa078
start remembering osm_node_ids for intersections
2019-09-20 15:17:54 -07:00
Dustin Carlino
b3bfd6a3f2
stop mangling roundabouts. it'll conflict with the next change, and its a hack that should be correctable by manual intervention now...
2019-09-20 14:56:22 -07:00
Dustin Carlino
0ae0a88abb
actually, serialize MapFixes as json for now. will switch to binary when this is large later, but for now, this is easier to handle schema changes and debug.
2019-09-19 14:39:31 -07:00
Dustin Carlino
3eb9acf0aa
plumb parking lane hints around through tags too; simplifies a few places
2019-09-19 13:30:07 -07:00
Dustin Carlino
dd02010614
switched to my own CLI parsing in convert_osm, away from structopt. compilation time down from 6.7s to 4.5s, and parsing is more clear now!
2019-09-18 16:37:22 -07:00
Dustin Carlino
6f1ac3969e
organizing osm keys
2019-09-17 17:14:09 -07:00
Dustin Carlino
e52fa1fc1a
recording and applying fixes to create new synthetic intersections and roads
2019-09-17 16:16:19 -07:00
Dustin Carlino
1e4f36dec1
duplicate OSM ids in tag maps universally, to simplify some other places
2019-09-17 15:37:11 -07:00
Dustin Carlino
eee5981c14
stable IDs for buildings in raw layer too. stop futzing with ID problems there.
2019-09-17 13:11:08 -07:00
Dustin Carlino
83834f7d40
actually, deferring remove_disconnected has problems.. still need to remove cul-de-sacs early. also, remove the two synthetic maps... will make them again from scratch once the raw_data format is stable. unused in the meantime.
2019-09-17 10:47:47 -07:00
Dustin Carlino
0e406afe0f
store name in raw map; simplifies some plumbing elsewhere
2019-09-17 10:27:32 -07:00
Dustin Carlino
18baf7ae49
remove disconnected roads from raw map later, not in convert_osm. that way, if MapFixes disconnect anything, it gets removed later
2019-09-17 09:41:38 -07:00
Dustin Carlino
030191ef31
fixed OriginalRoads, which were pretty much always wrong (not split from
...
the original OSM way). also handle cul-de-sacs.
2019-09-17 09:29:19 -07:00
Dustin Carlino
47e38f6fa6
strip out really useless OSM metadata... slightly smaller files, less noise in various debug modes
2019-09-13 15:28:54 -07:00
Dustin Carlino
c3ae6bf8f8
ditch quadtrees in synthetic crate. if anything, switch later to
...
viewer's World
2019-09-11 13:34:41 -07:00
Dustin Carlino
43c2c72e71
importing street sign dataset to override bad parking categories from blockface. the signs look overeager... so disabling
2019-09-08 17:23:53 -07:00
Dustin Carlino
44799c0717
refactor a Counter type
2019-09-05 18:44:24 -07:00