Buffer implied pointsets, and allow sub-pointsets to be uncontained b…#225
Buffer implied pointsets, and allow sub-pointsets to be uncontained b…#225mattwigway wants to merge 2 commits intodevfrom
Conversation
…y super pointsets (so that the non-transit component of a browsochrones search will not cause exceptions when undertaken near the edge of the graph, with part of the non-transit result grid outside the graph)
abyrd
left a comment
There was a problem hiding this comment.
Looks good to me, added a couple of comments. The main thing I notice is that Github really mangles commit subject lines longer than about 55 characters, and while the commit messages can be expanded (breaking awkwardly in the middle of words) the title of the pull request has beed derived from one of the commits and cannot be expanded:
| double lonBuffer = SphericalDistanceLibrary | ||
| .metersToDegreesLongitude(LinkedPointSet.MAX_OFFSTREET_WALK_METERS, transportNetwork.streetLayer.envelope.centre().y); | ||
|
|
||
| int west = lonToPixel(transportNetwork.streetLayer.envelope.getMinX() - lonBuffer); |
There was a problem hiding this comment.
This could also be done with
Envelope envelope = new Envelope(transportNetwork.streetLayer.envelope);
envelope.expandBy(lonBuffer, latBuffer);
|
|
||
| // mark all points as unlinked, in case part of the subGrid lies outside the super grid. Points within the super | ||
| // grid will be overwritten below | ||
| Arrays.fill(edges, -1); |
There was a problem hiding this comment.
Maybe we should be using a symbolic constant like UNLINKED for this, but I guess we have hard-coded -1s all over.
|
@mattwigway I'm going through these older pull requests, hoping to merge some of them. Is this one still applicable? Will there be any side effects to merging it (interference with other changes in the front end for example)? |
|
Revisiting this in October 2020, after combining r5 with analysis-backend. These changes may still be useful but my previous comment still stands - it will take some time to determine whether this is applicable or will necessitate changes elsewhere in the system. |
|
Accidentally closed when cleaning up branches. I would like to revisit these old pull requests and determine whether they're still relevant. |

This does two things: