geosolutions-it/geonode

Refactor WMS thumbnail generation to accept BBOX argument

Closed this issue · 0 comments

Current WMS based thumbnail generation is forcing a default BBOX for a thumbnail (it is used only in post_save signals for layers and maps):

def create_gs_thumbnail_geonode(instance, overwrite=False, check_bbox=False):

In order to use this implementation, a refactor is needed enabling providing the BBOX as an external argument (to be complaint with setting a thumbnail using Layer->Editing Tools->Thumbnail).

Outcome of this task should allow:
def create_gs_thumbnail_geonode(instance, bbox=None, overwrite=False, check_bbox=False):
in case the BBOX is defined, it should not be re-calculated.