Opened 5 years ago
Last modified 3 years ago
#2255 closed enhancement
WMS - does not work with two partially overlapping layers — at Initial Version
Reported by: | Bang Pham Huu | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 11.0 |
Component: | petascope | Version: | 9.8 |
Keywords: | Cc: | Dimitar Misev, Vlad Merticariu | |
Complexity: | Medium |
Description
If two WMS layers are overlaid from WMS clients but they don't intersect completely from grid domains, then rasql will show error, e.g:
sdom(BlueMarbleCov): [0:17999,0:8999] sdom(Germany_2D_B04_10m): [0:5000,0:5000]
SELECT ENCODE( ( Scale( ( ( c1[5473:5972, 1145:1787] ) ), [0:255, 0:255] ) ) OVERLAY ( Scale( ( ( c0[9984:10054, 1828:1898] ) ), [0:255, 0:255] ) ) , "png", FROM BlueMarbleCov AS c0, Germany_2D_B04_10m AS c1
with error
Reason: The subset extent [5473:5972,1145:1787] extends outside the array extent [0:5000,0:5000]
It will need to enhance in WMS with:
- If a subset is within the collection's grid domain, use the current implementation.
- If a subset only intersects with the collection's grid domain, it needs to use extend, e.g:
rasql -q 'select extend(c[0:20,0:50], [0:255,0:255]) from BlueMarbleCov as c'
- If a subset is outside of collection's grid domain, it will create a 2D marray with null values instead, e.g:
extend(<[0:0,0:0] 0c>, [0:255,0:255]) 0c is replaced with null values of the first collection
Note:
See TracTickets
for help on using tickets.