diff --git a/cdrhook/convert.py b/cdrhook/convert.py index aaa7ff2..892a2e5 100644 --- a/cdrhook/convert.py +++ b/cdrhook/convert.py @@ -29,7 +29,7 @@ def convert_cdr_schema_legend_items_to_cmass_legend(cdr_legend:List[LegendItemRe map_unit.color = item.color map_unit.pattern = item.pattern #map_unit.overlay = - map_unit.bounding_box = [item.px_bbox[0:2],item.px_bbox[2:4]] + map_unit.label_bbox = [item.px_bbox[0:2],item.px_bbox[2:4]] legend.features.append(map_unit) return legend diff --git a/cdrhook/requirements.txt b/cdrhook/requirements.txt index c742747..4299294 100644 --- a/cdrhook/requirements.txt +++ b/cdrhook/requirements.txt @@ -10,4 +10,4 @@ rasterio git+https://github.com/DARPA-CRITICALMAAS/cdr_schemas.git@v0.4.2 --extra-index-url https://test.pypi.org/simple/ -cmaas_utils>=0.1.10 \ No newline at end of file +cmaas_utils==0.1.11 \ No newline at end of file diff --git a/cdrhook/server.py b/cdrhook/server.py index 25b0139..5d5f4bf 100644 --- a/cdrhook/server.py +++ b/cdrhook/server.py @@ -19,7 +19,6 @@ import retrieve import convert from connector import CdrConnector -# from cmaas_utils.io import saveCMASSMap from cmaas_utils.types import CMAAS_Map from cdr_schemas.cdr_responses.area_extractions import AreaType