Bugs can occur when deleting junctions: Difference between revisions Discussion View history

No edit summary
mNo edit summary
Line 4: Line 4:
This is a special case of the following problem. It occurs when the road segment only has two junctions and no intervening geometry points
This is a special case of the following problem. It occurs when the road segment only has two junctions and no intervening geometry points
==Deleting a [[glossary|junction]] can corrupt road geometry and make the road shorter and disconnected==
==Deleting a [[glossary|junction]] can corrupt road geometry and make the road shorter and disconnected==
Consider a road with letters junctions and numbered geometry points.
Consider a road with lettered junctions and numbered geometry points.
A--1--2--B--3--4--5--C. You delete the unnecessary junction point at B. The road then drops the segment from 5--C. You may also get a new geometry point appearing near B that connects to 5. The road loses connection to any other roads at junction C and needs to be manually reconnected.
A--1--2--B--3--4--5--C. You delete the unnecessary junction point at B. The road then drops the segment from 5--C. You may also get a new geometry point appearing near B that connects to 5. The road loses connection to any other roads at junction C and needs to be manually reconnected.



Revision as of 18:08, 22 October 2010

Deleting a junction can change the geometry of a road

A junction point also acts as a geometry point. By deleting that junction you get a straight line between the two geometry points on either side. This is a major problem because when recording a new road with many curves. Waze will often place junction points on corners. When these unnecessary junction points are removed, so are the curves. The correct behaviour is for Cartouche to place a geometry point at the place where a junction point is removed

Deleting a junction can make a whole road segment disappear

This is a special case of the following problem. It occurs when the road segment only has two junctions and no intervening geometry points

Deleting a junction can corrupt road geometry and make the road shorter and disconnected

Consider a road with lettered junctions and numbered geometry points. A--1--2--B--3--4--5--C. You delete the unnecessary junction point at B. The road then drops the segment from 5--C. You may also get a new geometry point appearing near B that connects to 5. The road loses connection to any other roads at junction C and needs to be manually reconnected.

This problem can easily be replicated. A theory is that even when one way roads become two way roads, they retain their one-way direction. When removing a junction causes these one-way directions to clash, the geometry flips. To replicate this bug in Cartouche:

  • Create a one-way road drawn and named "West to East". Include at least 5 geometry points when drawing the road
  • Create a second one-way road drawn and named "East to West" that ends on the eastern most point of the "West to East Road" . Include at least 5 geometry points when drawing the road
  • Add a junction to connect the two one-way roads. Yes the roads travel in opposite directions
  • Select both roads, and change them to "Two-way". Change the name to "One Street"
  • Now remove the junction. You will see the end of "East to West" jump to a new location near where the junction was

Unfortunately recording a new road frequently results in one way roads of various directions that are converted to two-way roads and connected. It is very frustrating when repairing geometry and connectivity on a road with many unnecessary junctions, to have to fix jumping and disconnecting end points. Even worse when the disconnection is not noticed and the road can no longer be part of a route.