Opened 3 years ago

Closed 3 years ago

#2436 closed defect (fixed)

petascope - WMS request returns incorrect domains without extend()

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.0
Component: petascope Version: 9.8
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

The coverage has 3 axes with this information:

Axis name	Type	Geo Extent	Grid Extent	Resolution	UoM
ansi	Irregular Axis	["2018-08-24T17:00:00.000Z", "2018-08-24T22:00:00.000Z"]	[0, 5]	N/A	d
Lat	Regular Axis	[23.4585287701695, 23.8423441302595]	[0, 1060]	-0.00036174869	degree
Long	Regular Axis	[120.1173108166816, 120.8131103018624]	[0, 1770]	0.0003928850848	degree

with CRS

http://localhost:8080/def/crs-compound?1=http://localhost:8080/def/crs/OGC/0/AnsiDate&2=http://localhost:8080/def/crs/EPSG/0/4326

The WMS style is

switch case $c <= 0 return {red: 13; green:79; blue:220} default return {red: 255; green:254; blue:214})

The generated rasql query for a WMS GetMap request doesn't contain the extend(), e.g:

http://localhost:8082/rasdaman/ows?service=WMS&version=1.3.0&request=GetMap&layers=Yulin_test_from140&bbox=-90,-180,90,180&time=%222018-08-24T17:00:00.000Z%22&width=700&height=600&crs=EPSG:4326&format=image/png&transparent=true&styles=RGB

which returns

SELECT ENCODE( (  SCALE ( ( ( CASE WHEN ( c0[0,0:530,0:885] <= 0 ) THEN ( {13,79,220} ) ELSE ( {255,254,214} ) END ) ), [0:599, 0:699] ) ) , "png", "{
  \"transpose\" : [ 0, 1 ],
  \"nodata\" : [ -999.0 ]
}") FROM  Yulin_test_from140_2 AS c0

Change History (2)

comment:1 by Bang Pham Huu, 3 years ago

Owner: set to Bang Pham Huu
Status: newassigned

comment:2 by Bang Pham Huu, 3 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.