From 25b4af61f5112bb0cc3104f95b98812aab735b1e Mon Sep 17 00:00:00 2001 From: Martin Paces Date: Fri, 26 Sep 2014 09:16:56 +0200 Subject: [PATCH] Small correction of the ingestion script. --- ingeng/product_ingest.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ingeng/product_ingest.sh b/ingeng/product_ingest.sh index 8b5f593..3f19bd5 100755 --- a/ingeng/product_ingest.sh +++ b/ingeng/product_ingest.sh @@ -139,8 +139,8 @@ fi if [ -z "$SRS" -a -f "$COVDESCR" ] then - # extract the EPSG code of the projection - SRS="`xml_extract.py "$COVDESCR" '//{http://www.opengis.net/gml/3.2}Envelope/@srsName'`" + # try to extract the EPSG code of the projection + SRS="`xml_extract.py "$COVDESCR" '//{http://www.opengis.net/gml/3.2}Envelope/@srsName' 2>/dev/null `" fi # extract coverage identifier @@ -259,7 +259,6 @@ $EOXS_MNG eoxs_rangetype_load -i "$RANGET" #TODO: fix coverage removal $EOXS_MNG eoxs_id_check --type Coverage "$IDENTIFIER" || $EOXS_MNG eoxs_dataset_deregister "$IDENTIFIER" $EOXS_MNG eoxs_id_check --type Coverage "${IDENTIFIER}_view" || $EOXS_MNG eoxs_dataset_deregister "${IDENTIFIER}_view" -set -x $EOXS_MNG eoxs_dataset_register --traceback -r "$DATA_RANGE_TYPE" -i "${IDENTIFIER}" \ -d "$DATA" -m "$META" --collection "$COLLECTION" $SRID \ --view "${IDENTIFIER}_view" $DATE_REG_OPT