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 )
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 , 12 years ago
Milestone: | → 8.4 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 12 years ago
Description: | modified (diff) |
---|---|
Summary: | WMS init script fails when collection name is not the first one returned by RASQL select query → WMS init and fill pyramid scripts fail when collection name is not the first one returned by RASQL select query |
Note:
See TracTickets
for help on using tickets.
The same check fails for the WMS fill_pyramid script.