wsp-sag / Lasso

Python package of utilities for Network Wrangler
https://wsp-sag.github.io/Lasso/
Apache License 2.0
5 stars 3 forks source link

[BUG] Trueshape and crowfly shape both represented in EMME visualization of Lasso-Created Network #129

Open e-lo opened 3 years ago

e-lo commented 3 years ago

Describe the bug

When wkt geometry for some links added to represent tru-shapes, they are not correct and seem to jump back and add vertices at a and b node.

image

The conversion from geojson to wkt seems to be working (see below picture) image

But when wkt added to network (see line here) it produces the funky geometry. What gives? image

To Reproduce

cc: @i-am-sijia if useful to add here Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Thoughts on resolution

Full stack trace

DavidOry commented 3 years ago

@inrokevin says this is a common problem. The direction is wrong on import. @i-am-sijia: please follow-up with Kevin when you return.

i-am-sijia commented 3 years ago

I know why. In our standard format, two-way street's forward and backward links use the same shape. Meaning if there are 1M links in link.json (assuming all two-way streets), there are 500k shapes in shape.geojson.

The solution is before writing out to EMME, I can create reverse shapes for backward links. Below is the EMME network at the same location after this change.

image

@DavidOry @e-lo @inrokevin