Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Dec 4, 2022
1 parent bfcdf55 commit 8d20e2d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion osm2streets-java/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl StreetNetwork {

let clip_pts = None;
let mut timer = Timer::throwaway();
let mut network =
let (mut network, _) =
streets_reader::osm_to_street_network(&osm_xml_input, clip_pts, cfg, &mut timer)
.unwrap();
let transformations = Transformation::standard_for_clipped_areas();
Expand Down
1 change: 0 additions & 1 deletion osm2streets/src/operations/collapse_intersection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::collections::BTreeSet;
use geom::{PolyLine, Pt2D};

use crate::{IntersectionID, RoadID, StreetNetwork};
use crate::lanes::Placement;

impl StreetNetwork {
/// Delete an intersection with exactly two roads. Turn the two roads into one. It's the
Expand Down
8 changes: 2 additions & 6 deletions osm2streets/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,16 +413,12 @@ fn make_sidewalk_corners(streets: &StreetNetwork, intersection: &Intersection) -
for road in streets.roads_per_intersection(intersection.id) {
let mut left = Edge {
road: road.id,
pl: road
.trimmed_center_line
.must_shift_left(road.total_width() / 2.0),
pl: road.center_line.must_shift_left(road.total_width() / 2.0),
lane: road.lane_specs_ltr[0].clone(),
};
let mut right = Edge {
road: road.id,
pl: road
.trimmed_center_line
.must_shift_right(road.total_width() / 2.0),
pl: road.center_line.must_shift_right(road.total_width() / 2.0),
lane: road.lane_specs_ltr.last().unwrap().clone(),
};
if road.dst_i == intersection.id {
Expand Down
5 changes: 3 additions & 2 deletions osm2streets/src/road.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ use geom::{Angle, Distance, PolyLine};

use crate::lanes::{Placement, RoadPosition};
use crate::{
get_lane_specs_ltr, osm, CommonEndpoint, Direction, InputRoad, IntersectionID, LaneSpec,
LaneType, MapConfig, OriginalRoad, RestrictionType, RoadID, RoadWithEndpoints, StreetNetwork,
get_lane_specs_ltr, osm, CommonEndpoint, Direction, DrivingSide, InputRoad, IntersectionID,
LaneSpec, LaneType, MapConfig, OriginalRoad, RestrictionType, RoadID, RoadWithEndpoints,
StreetNetwork,
};

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
Expand Down
1 change: 1 addition & 0 deletions osm2streets/src/transform/collapse_intersections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use anyhow::Result;

use geom::Distance;

use crate::lanes::Placement;
use crate::{IntersectionID, IntersectionKind, Road, StreetNetwork};

/// Collapse degenerate intersections:
Expand Down

0 comments on commit 8d20e2d

Please sign in to comment.