-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer implied pointsets, and allow sub-pointsets to be uncontained b… #225
base: dev
Are you sure you want to change the base?
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could also be done with
Envelope envelope = new Envelope(transportNetwork.streetLayer.envelope);
envelope.expandBy(lonBuffer, latBuffer);
@@ -174,10 +176,22 @@ public LinkedPointSet(LinkedPointSet sourceLinkage, WebMercatorGridPointSet subG | |||
distances0_mm = new int[nCells]; | |||
distances1_mm = new int[nCells]; | |||
|
|||
// 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: