empowerplan / epp-app

EmPowerPlan - App
GNU Affero General Public License v3.0
0 stars 0 forks source link

Missing MVTs in eastern part of region #54

Closed nesnoj closed 7 months ago

nesnoj commented 7 months ago

Many MVTs in level 11 and 12 are not rendered despite being within the region, e.g. mvts/map/12/2210/1344/ (subdirs 2210, 2211 and so on which cover the entire east do not exist) 8-10 seem to be complete though.

The max tiles for right and bottom are: 11: 1107/676 12: 2215/1352

I added 1 to MAP_ENGINE_X_OFFSET and MAP_ENGINE_Y_OFFSET, this increases the extend by 1 tile for 8 to 12 each(!), but I'd expect it to add more for higher LOD. I think it's is related to this piece of code: https://github.com/rl-institut/django-mapengine/blob/efd1238d91688bee6a1161fc165f52cf45782485/django_mapengine/distill.py#L15-L40

henhuy commented 7 months ago

I added 1 to MAP_ENGINE_X_OFFSET and MAP_ENGINE_Y_OFFSET, this increases the extend by 1 tile for 8 to 12 each(!), but I'd expect it to add more for higher LOD. I think it's is related to this piece of code: https://github.com/rl-institut/django-mapengine/blob/efd1238d91688bee6a1161fc165f52cf45782485/django_mapengine/distill.py#L15-L40

You are right! - the offset factor should increase with z-level as well! Will fix it.