Opened 12 years ago

Last modified 12 years ago

#295 closed defect

WMS init and fill pyramid scripts fail when collection name is not the first one returned by RASQL select query — at Version 2

Reported by: Dirk Daems Owned by: Piero Campalani
Priority: minor Milestone: 8.4
Component: rasgeo Version: 8.3
Keywords: Cc:
Complexity: Medium

Description (last modified by Dirk Daems)

The WMS init script (init_wms.sh) and fill pyramid script (fill_pyramid.sh) contain a check to validate if the collection name exists in the RASBASE database.
The query

select r from RAS_COLLECTIONNAMES as r" --out string

returns the existing collection names but the output of the result objects is (according to AWK) not printed on separate lines which makes the check

while read coll; do 
  if [ "$coll" = "$COLLNAME" ]; then collExists=1; fi
  done <<< "$( rasql -q "select r from RAS_COLLECTIONNAMES as r" --out string | grep "Result object" | awk 'BEGIN { FS=" "}; { print $4 };' )"

to fail if the collection name passed to the script is not the first collection name returned by the RASQL select query.

Change History (2)

comment:1 by Dimitar Misev, 12 years ago

Milestone: 8.4
Owner: changed from Dimitar Misev to Piero Campalani
Status: newassigned

comment:2 by Dirk Daems, 12 years ago

Description: modified (diff)
Summary: WMS init script fails when collection name is not the first one returned by RASQL select queryWMS init and fill pyramid scripts fail when collection name is not the first one returned by RASQL select query

The same check fails for the WMS fill_pyramid script.

Note: See TracTickets for help on using tickets.