wsp-sag/Lasso

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

Opened this issue · 2 comments

e-lo commented

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

@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 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