Skip to content

fix mercator baselevel(overviews generation) #560

@Scartography

Description

@Scartography

on_edge_use 'rt' results in an invalid tile: row (128) exceeds matrix height (128)
File "/usr/local/src/mapchete_hub/mapchete_hub/app.py", line 561, in job_wrapper
_run_job_on_cluster(
File "/usr/local/src/mapchete_hub/mapchete_hub/app.py", line 695, in _run_job_on_cluster
for i, _ in enumerate(job, 1):
File "/usr/local/lib/python3.8/site-packages/mapchete/_processing.py", line 141, in iter
yield from self._run()
File "/usr/local/lib/python3.8/site-packages/mapchete/_processing.py", line 107, in _run
yield from self.func(*self.fargs, executor=self.executor, **self.fkwargs)
File "/usr/local/lib/python3.8/site-packages/mapchete/commands/_execute.py", line 213, in _process_everything
for future in mp.compute(**kwargs):
File "/usr/local/lib/python3.8/site-packages/mapchete/_core.py", line 235, in compute
yield from compute(self, **kwargs)
File "/usr/local/lib/python3.8/site-packages/mapchete/_processing.py", line 296, in compute
for num_processed, future in enumerate(
File "/usr/local/lib/python3.8/site-packages/mapchete/_processing.py", line 677, in _compute_tasks
for future in _process_batches(
File "/usr/local/lib/python3.8/site-packages/mapchete/_processing.py", line 711, in _run_multi_overviews
for future in executor.as_completed(
File "/usr/local/lib/python3.8/site-packages/mapchete/_executor.py", line 318, in as_completed
for item in iterable:
File "/usr/local/lib/python3.8/site-packages/mapchete/_processing.py", line 713, in
iterable=(
File "/usr/local/lib/python3.8/site-packages/mapchete/_processing.py", line 483, in _filter_skipable
for tile, skip in process.skip_tiles(tiles_batches=tiles_batches):
File "/usr/local/lib/python3.8/site-packages/mapchete/_core.py", line 210, in skip_tiles
yield from tiles_exist(
File "/usr/local/lib/python3.8/site-packages/mapchete/path.py", line 660, in tiles_exist
yield from _process_tiles_batches_exist(
File "/usr/local/lib/python3.8/site-packages/mapchete/path.py", line 709, in _process_tiles_batches_exist
for batch in executor.as_completed(
File "/usr/local/lib/python3.8/site-packages/mapchete/_executor.py", line 89, in as_completed
for i, item in enumerate(iterable, 1):
File "/usr/local/lib/python3.8/site-packages/mapchete/path.py", line 711, in
(list(b) for b in process_tiles_batches),
File "/usr/local/lib/python3.8/site-packages/mapchete/_core.py", line 178, in get_process_tiles
for tile in self.config.process_pyramid.tiles_from_geom(
File "/usr/local/lib/python3.8/site-packages/mapchete/tile.py", line 135, in tiles_from_geom
for batch in self.tile_pyramid.tiles_from_geom(
File "/usr/local/lib/python3.8/site-packages/tilematrix/_tilepyramid.py", line 242, in tiles_from_geom
for batch in self.tiles_from_bbox(
File "/usr/local/lib/python3.8/site-packages/tilematrix/_tilepyramid.py", line 210, in tiles_from_bbox
yield from self.tiles_from_bounds(geometry.bounds, zoom, batch_by=batch_by)
File "/usr/local/lib/python3.8/site-packages/tilematrix/_tilepyramid.py", line 198, in tiles_from_bounds
yield from _global_tiles_from_bounds(self, bounds, zoom, batch_by=batch_by)
File "/usr/local/lib/python3.8/site-packages/tilematrix/_funcs.py", line 213, in _global_tiles_from_bounds
yield from _tiles_from_cleaned_bounds(tp, bounds, zoom, batch_by=batch_by)
File "/usr/local/lib/python3.8/site-packages/tilematrix/_funcs.py", line 219, in _tiles_from_cleaned_bounds
lb = _tile_from_xy(tp, bounds.left, bounds.bottom, zoom, on_edge_use="rt")
File "/usr/local/lib/python3.8/site-packages/tilematrix/_funcs.py", line 261, in _tile_from_xy
raise ValueError(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions