Skip to content

Commit

Permalink
Small correction of the ingestion script.
Browse files Browse the repository at this point in the history
  • Loading branch information
pacesm committed Sep 26, 2014
1 parent 4736698 commit 25b4af6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ingeng/product_ingest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 25b4af6

Please sign in to comment.