mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 01:15:12 +03:00
Start importing a piece of Sao Paulo for a collaboration.
No elevation data until the next big round of regeneration; having trouble getting Docker set up on my resurrected machine.
This commit is contained in:
parent
3db4c827b8
commit
d1a7ae4418
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,6 +11,7 @@ importer.json
|
||||
data/input
|
||||
|
||||
data/system/at/salzburg
|
||||
data/system/br/sao_paulo
|
||||
data/system/ca/montreal
|
||||
data/system/cz/frydek_mistek
|
||||
data/system/de/berlin
|
||||
|
@ -45,6 +45,21 @@
|
||||
"uncompressed_size_bytes": 8738434,
|
||||
"compressed_size_bytes": 1999908
|
||||
},
|
||||
"data/input/br/sao_paulo/osm/center.osm": {
|
||||
"checksum": "32432f4c9aafa00d581c86f843be77ca",
|
||||
"uncompressed_size_bytes": 38981120,
|
||||
"compressed_size_bytes": 3574260
|
||||
},
|
||||
"data/input/br/sao_paulo/osm/sudeste-latest.osm.pbf": {
|
||||
"checksum": "ab4882c15e07742079ddb78d4ef76741",
|
||||
"uncompressed_size_bytes": 650931502,
|
||||
"compressed_size_bytes": 649718446
|
||||
},
|
||||
"data/input/br/sao_paulo/raw_maps/center.bin": {
|
||||
"checksum": "b81dea3b7b8fcb5a9231adf1c2f6de7f",
|
||||
"uncompressed_size_bytes": 9426528,
|
||||
"compressed_size_bytes": 2479146
|
||||
},
|
||||
"data/input/ca/ca/osm/plateau.osm": {
|
||||
"checksum": "d41d8cd98f00b204e9800998ecf8427e",
|
||||
"uncompressed_size_bytes": 0,
|
||||
@ -2245,6 +2260,11 @@
|
||||
"uncompressed_size_bytes": 25503865,
|
||||
"compressed_size_bytes": 9325049
|
||||
},
|
||||
"data/system/br/sao_paulo/maps/center.bin": {
|
||||
"checksum": "0fd245fc4562e519f5aaf0a59448c353",
|
||||
"uncompressed_size_bytes": 20287892,
|
||||
"compressed_size_bytes": 7113003
|
||||
},
|
||||
"data/system/ca/montreal/maps/plateau.bin": {
|
||||
"checksum": "2c89dac9d19d120ff09f6230946bc73d",
|
||||
"uncompressed_size_bytes": 11262262,
|
||||
|
1
data/system/assets/flags/br.svg
Normal file
1
data/system/assets/flags/br.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-2100 -1470 4200 2940"><defs><path id="i" fill-rule="evenodd" d="M-31.5 0h33a30 30 0 0030-30v-10a30 30 0 00-30-30h-33zm13-13h19a19 19 0 0019-19v-6a19 19 0 00-19-19h-19z"/><path id="n" d="M-15.75-22C-15.75-15-9-11.5 1-11.5s14.74-3.25 14.75-7.75c0-14.25-46.75-5.25-46.5-30.25C-30.5-71-6-70 3-70s26 4 25.75 21.25H13.5c0-7.5-7-10.25-15-10.25-7.75 0-13.25 1.25-13.25 8.5-.25 11.75 46.25 4 46.25 28.75C31.5-3.5 13.5 0 0 0c-11.5 0-31.55-4.5-31.5-22z"/><path id="l" d="M-26.25 0h52.5v-12h-40.5v-16h33v-12h-33v-11H25v-12h-51.25z"/><path id="k" d="M-31.5 0h12v-48l14 48h11l14-48V0h12v-70H14L0-22l-14-48h-17.5z"/><path id="d" fill-rule="evenodd" d="M0 0a31.5 35 0 000-70A31.5 35 0 000 0m0-13a18.5 22 0 000-44 18.5 22 0 000 44"/><path id="f" fill-rule="evenodd" d="M-31.5 0h13v-26h28a22 22 0 000-44h-40zm13-39h27a9 9 0 000-18h-27z"/><path id="j" transform="translate(-31.5)" d="M0 0h63v-13H12v-18h40v-12H12v-14h48v-13H0z"/><use id="q" xlink:href="#a" transform="scale(15)"/><use id="s" xlink:href="#a" transform="scale(10.5)"/><use id="r" xlink:href="#a" transform="scale(21)"/><use id="o" xlink:href="#a" transform="scale(31.5)"/><use id="p" xlink:href="#a" transform="scale(26.25)"/><g id="a" fill="#fff"><g id="c"><path id="b" transform="rotate(18 0 -1)" d="M0-1v1h.5"/><use xlink:href="#b" transform="scale(-1 1)"/></g><use xlink:href="#c" transform="rotate(72)"/><use xlink:href="#c" transform="rotate(-72)"/><use xlink:href="#c" transform="rotate(144)"/><use xlink:href="#c" transform="rotate(216)"/></g><g id="m"><clipPath id="e"><path d="M-31.5 0v-70h63V0zM0-47v12h31.5v-12z"/></clipPath><use xlink:href="#d" clip-path="url(#e)"/><path d="M5-35h26.5v10H5z"/><path d="M21.5-35h10V0h-10z"/></g><g id="h"><use xlink:href="#f"/><path d="M28 0c0-10 0-32-15-32H-6c22 0 22 22 22 32"/></g></defs><rect y="-50%" x="-50%" height="100%" fill="#009b3a" width="100%"/><path d="M-1743 0L0 1113 1743 0 0-1113z" fill="#fedf00"/><circle r="735" fill="#002776"/><clipPath id="g"><circle r="735"/></clipPath><path fill="#fff" d="M-2205 1470a1785 1785 0 013570 0h-105a1680 1680 0 10-3360 0z" clip-path="url(#g)"/><g transform="translate(-420 1470)" fill="#009b3a"><use y="-1697.5" xlink:href="#d" transform="rotate(-7)"/><use y="-1697.5" xlink:href="#h" transform="rotate(-4)"/><use y="-1697.5" xlink:href="#i" transform="rotate(-1)"/><use y="-1697.5" xlink:href="#j" transform="rotate(2)"/><use y="-1697.5" xlink:href="#k" transform="rotate(5)"/><use y="-1697.5" xlink:href="#l" transform="rotate(9.75)"/><use y="-1697.5" xlink:href="#f" transform="rotate(14.5)"/><use y="-1697.5" xlink:href="#h" transform="rotate(17.5)"/><use y="-1697.5" xlink:href="#d" transform="rotate(20.5)"/><use y="-1697.5" xlink:href="#m" transform="rotate(23.5)"/><use y="-1697.5" xlink:href="#h" transform="rotate(26.5)"/><use y="-1697.5" xlink:href="#j" transform="rotate(29.5)"/><use y="-1697.5" xlink:href="#n" transform="rotate(32.5)"/><use y="-1697.5" xlink:href="#n" transform="rotate(35.5)"/><use y="-1697.5" xlink:href="#d" transform="rotate(38.5)"/></g><use y="-132" x="-600" xlink:href="#o"/><use y="177" x="-535" xlink:href="#o"/><use y="243" x="-625" xlink:href="#p"/><use y="132" x="-463" xlink:href="#q"/><use y="250" x="-382" xlink:href="#p"/><use y="323" x="-404" xlink:href="#r"/><use y="-228" x="228" xlink:href="#o"/><use y="258" x="515" xlink:href="#o"/><use y="265" x="617" xlink:href="#r"/><use y="323" x="545" xlink:href="#p"/><use y="477" x="368" xlink:href="#p"/><use y="551" x="367" xlink:href="#r"/><use y="419" x="441" xlink:href="#r"/><use y="382" x="500" xlink:href="#p"/><use y="405" x="365" xlink:href="#r"/><use y="30" x="-280" xlink:href="#p"/><use y="-37" x="200" xlink:href="#r"/><use y="330" xlink:href="#o"/><use y="184" x="85" xlink:href="#p"/><use y="118" xlink:href="#p"/><use y="184" x="-74" xlink:href="#r"/><use y="235" x="-37" xlink:href="#q"/><use y="495" x="220" xlink:href="#p"/><use y="430" x="283" xlink:href="#r"/><use y="412" x="162" xlink:href="#r"/><use y="390" x="-295" xlink:href="#o"/><use y="575" xlink:href="#s"/></svg>
|
After Width: | Height: | Size: 4.0 KiB |
12
importer/config/br/sao_paulo/center.poly
Normal file
12
importer/config/br/sao_paulo/center.poly
Normal file
@ -0,0 +1,12 @@
|
||||
boundary
|
||||
1
|
||||
-46.62091255187988 -23.53644847418991
|
||||
-46.642842292785645 -23.53145155732979
|
||||
-46.65352821350098 -23.537943577775447
|
||||
-46.6543436050415 -23.55470331253024
|
||||
-46.64988040924072 -23.562492321041976
|
||||
-46.63378715515136 -23.564931208577853
|
||||
-46.61692142486572 -23.562295634590352
|
||||
-46.62091255187988 -23.53644847418991
|
||||
END
|
||||
END
|
16
importer/config/br/sao_paulo/cfg.json
Normal file
16
importer/config/br/sao_paulo/cfg.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"osm_url": "https://download.geofabrik.de/south-america/brazil/sudeste-latest.osm.pbf",
|
||||
"map_config": {
|
||||
"driving_side": "Right",
|
||||
"bikes_can_use_bus_lanes": true,
|
||||
"inferred_sidewalks": true,
|
||||
"street_parking_spot_length": 80000
|
||||
},
|
||||
"onstreet_parking": "JustOSM",
|
||||
"public_offstreet_parking": "None",
|
||||
"private_offstreet_parking": {
|
||||
"FixedPerBldg": 10
|
||||
},
|
||||
"include_railroads": true,
|
||||
"extra_buildings": null
|
||||
}
|
@ -71,6 +71,10 @@ pub fn nice_map_name(name: &MapName) -> &str {
|
||||
("salzburg", "west") => "Salzburg (west)",
|
||||
_ => &name.map,
|
||||
},
|
||||
"br" => match (name.city.city.as_ref(), name.map.as_ref()) {
|
||||
("sao_paulo", "center") => "São Paulo (city center)",
|
||||
_ => &name.map,
|
||||
},
|
||||
"ca" => match (name.city.city.as_ref(), name.map.as_ref()) {
|
||||
("montreal", "plateau") => "Montréal (Plateau)",
|
||||
_ => &name.map,
|
||||
@ -225,6 +229,7 @@ pub fn nice_country_name(code: &str) -> &str {
|
||||
// https://github.com/hampusborgos/country-flags/tree/master/svg
|
||||
match code {
|
||||
"at" => "Austria",
|
||||
"br" => "Brazil",
|
||||
"ca" => "Canada",
|
||||
"cz" => "Czech Republic",
|
||||
"de" => "Germany",
|
||||
|
Loading…
Reference in New Issue
Block a user