Opened 2 years ago
Closed 23 months ago
#2673 closed defect (fixed)
WCPS - keep the grid origin of left-handside operand in crsTransform()
Reported by: | Bang Pham Huu | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | major | Milestone: | 10.1 |
Component: | petascope | Version: | 10.0 |
Keywords: | Cc: | Dimitar Misev, Vlad Merticariu | |
Complexity: | Medium |
Description
e.g. this WCPS query:
for c in (test_mean_summer_airtemp) return encode( clip( crsTransform( c[Lat(-40:-30), Lon(120:130)] + c[Lat(-20:-10), Lon(140:150)] , "EPSG:4326") , POLYGON((-40 120, -35 125, -30 130)) ), "png")
Petascope generates a rasql query with POLYGON starting with 0 18
for Long Lat axes, but it should keep the grid origin 17 43
from the first operand inside the project()
.
SELECT encode( clip( project( c[17:36,43:62] + c[57:76,3:22], "120.475,-40.474999999999987,130.475,-30.474999999999987", "EPSG:4326", "EPSG:4326", near ), POLYGON((0 18,9 9,18 0)) ), "png" , "{\"geoReference\":{\"crs\":\"EPSG:4326\",\"bbox\":{\"xmin\":119.975,\"ymin\":-39.974999999999987,\"xmax\":129.975,\"ymax\":-29.974999999999987}},\"nodata\":[]}") FROM test_mean_summer_airtemp AS c
Note:
See TracTickets
for help on using tickets.