EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit cc625aff authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Fixing paths in EOxServer backend

parent 1d9a5ff9
No related branches found
No related tags found
3 merge requests!36Staging to master to prepare 1.0.0 release,!32Registrar modularization,!27Registrar modularization
......@@ -54,7 +54,7 @@ class EOxServerBackend(Backend):
# get the mapping for this particular item
mapping = self.mapping[item.product_type][item.product_level]
metadata_file = item.metadata_files[0]
metadata_file = '/'.join(item.metadata_files[0].split('/')[1:])
storage = self._get_storage_from_source(source, item.path)
......@@ -92,6 +92,9 @@ class EOxServerBackend(Backend):
# register coverages and link them to the product
for raster_identifier, coverage_type_name in mapping.get('coverages', {}).items():
raster_item = item.raster_files.get(raster_identifier)
raster_item = '/'.join(raster_item.split('/')[1:])
logger.info(f"Registering coverage {raster_item} as {coverage_type_name}")
report = GDALRegistrator().register(
data_locations=[storage + [raster_item]],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment