Skip to content

Move intersection to rawr enqueue step#314

Merged
rmarianski merged 1 commit intomasterfrom
rawr-intersect
Nov 30, 2017
Merged

Move intersection to rawr enqueue step#314
rmarianski merged 1 commit intomasterfrom
rawr-intersect

Conversation

@rmarianski
Copy link
Member

if not is_low_zoom:
did_rawr_tile_gen = True
try:
parent = common_parent(coords, self.group_by_zoom)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also do:

assert parent.zoom >= self.group_by_zoom
parent = parent.zoomTo(self.group_by_zoom).container()

I feel like there are going to be places in the code where we assume parent is a RAWR tile coordinate, but we'll only get a job for the partial tree and end up with parent.zoom=11 or something like that. What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops... I should have looked at the definition of common_parent. That's exactly what it does already.

Copy link
Member

@zerebubuth zerebubuth left a 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!

@rmarianski rmarianski merged commit d987115 into master Nov 30, 2017
@rmarianski rmarianski deleted the rawr-intersect branch November 30, 2017 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants