Skip to content

Commit e379e1d

Browse files
committed
Fixing RefDS handling + implementing BEAM-based NetCDF output for ASAR and MERIS.
1 parent c93f664 commit e379e1d

File tree

4 files changed

+240
-46
lines changed

4 files changed

+240
-46
lines changed

eoxserver/conf/default.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ logging_format=[%(asctime)s] %(levelname)s: %(message)s
4949
# The default is to log everything
5050
logging_level=DEBUG
5151

52+
# Path to the temporary files' directory. By default set to '/tmp'.
53+
path_temp=/tmp
54+
5255
[core.interfaces]
5356

5457
# The runtime validation level. Tells the core whether to include type

eoxserver/instance_template/project_name/conf/eoxserver.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
# Mandatory.
3838
instance_id={{ project_name }}
3939

40+
# Path to the temporary files' directory. By default set to '/tmp'.
41+
#path_temp=/tmp
42+
43+
# (optional) Path to BEAM toolbox installation.
44+
#path_beam=
45+
4046
[services.owscommon]
4147
#http_service_url (mandatory) the URL where GET KVP and POST XML
4248
# OWS requests are expected

eoxserver/resources/coverages/metadata/formats/gdal_dataset.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
)
3636
from eoxserver.processing.gdal import reftools as rt
3737
from eoxserver.contrib import osr
38+
from eoxserver.resources.coverages.formats import getFormatRegistry
3839

3940

4041
def open_gdal(obj):
@@ -135,6 +136,11 @@ def gtrans(x, y):
135136

136137
driver_metadata = driver.GetMetadata()
137138
frmt = driver_metadata.get("DMD_MIMETYPE")
139+
if frmt is None:
140+
_driver_name = "GDAL/" + driver.ShortName
141+
_frmt = getFormatRegistry().getFormatsByDriver(_driver_name)
142+
if _frmt:
143+
frmt = _frmt[0].mimeType
138144
if frmt:
139145
values["format"] = frmt
140146

0 commit comments

Comments
 (0)