Opened 6 years ago
Closed 6 years ago
#1892 closed defect (fixed)
WMS_Wrong result in GetMap if input CRS is different from native CRS with WCPS style
Reported by: | Bang Pham Huu | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | major | Milestone: | 9.7 |
Component: | petascope | Version: | development |
Keywords: | Cc: | Dimitar Misev, Vlad Merticariu | |
Complexity: | Medium |
Description
WMS style on a EPSG:4326 coverage
switch case $c > 0.6 return {red: 107; green:17; blue:68} default return {red: 150; green:103; blue:14}
WMS requests on with and without the style:
http://143.225.214.136:8090/rasdaman/ows?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=EU_SBIO_soil_bio_new&TILED=true&STYLES=wcpsQueryFragment&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&BBOX=5009377.085697312%2C5009377.085697312%2C5635549.221409475%2C5635549.221409475 http://143.225.214.136:8090/rasdaman/ows?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=EU_SBIO_soil_bio_new&TILED=true&STYLES=&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&BBOX=5009377.085697312%2C5009377.085697312%2C5635549.221409475%2C5635549.221409475
Generated rasql results with and without style:
SELECT ENCODE( ( Extend( Scale( project(( ( CASE WHEN ( c0[3149:3206, 96:112] > 0.6 ) THEN ( (107) * { 1c,0c,0c } + (17) * { 0c,1c,0c } + (68) * { 0c,0c,1c } ) ELSE ( (150) * { 1c,0c,0c } + (103) * { 0c,1c,0c } + (14) * { 0c,0c,1c } ) END ) ), "135, 72.3957057065325670919264666736125946044921875, 140.625, 74.019543311502246751842903904616832733154296875", "EPSG:4326", "EPSG:3857"), [0:255, 0:255] ), [0:255, 0:255] ) ) , "png", "{ \"nodata\" : [ 0 ] }") FROM EU_SBIO_soil_bio_new as c0' SELECT ENCODE( ( Extend( Scale( project(( ( c0[2249:2306, 385:426] ) ), "44.99999999999999289457264239899814128875732421875, 40.97989806962012693247743300162255764007568359375, 50.62499999999999289457264239899814128875732421875, 45.08903556483101482399433734826743602752685546875", "EPSG:4326", "EPSG:3857"), [0:255, 0:255] ), [0:255, 0:255] ) ) , "png", "{ \"nodata\" : [ 0 ] }") FROM EU_SBIO_soil_bio_new as c0
Note:
See TracTickets
for help on using tickets.