Refactor WMS thumbnail generation to accept BBOX argument
Closed this issue · 0 comments
bieganowski commented
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):
geonode/geonode/layers/utils.py
Line 1066 in 0a82a14
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.