Changes between Version 3 and Version 4 of Ticket #1312
- Timestamp:
- May 24, 2016, 10:23:40 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1312
- Property Owner set to
- Property Status new → accepted
- Property Milestone 9.2 → 9.3
-
Ticket #1312 – Description
v3 v4 1 1 Current, bounding box only support to add native coordinates and CRS (e.g: Lat, Long, 4326), when transform to another CRS like 3857. It still set the bounding box with the native values. 2 2 3 WCPS query 3 4 4 {{{ 5 for c in (mean_summer_airtemp) return encode( 6 crsTransform(c[Lat(-40:-25), Long(120:130)] , 7 { Lat:"http://www.opengis.net/def/crs/EPSG/0/3857", 8 Long:"http://www.opengis.net/def/crs/EPSG/0/3857"}, {}), 9 "tiff") 5 for c in (eobstest) return encode( 6 crsTransform(c[t(0), Lat(0:20), Long(25:30)], 7 {Lat:"http://localhost:8080/def/crs/EPSG/0/4269", Long:"http://localhost:8080/def/crs/EPSG/0/4269"}, {}) 8 , "tiff") 10 9 }}} 11 10 12 Rasql query 11 12 '''Update''' When use crsTransform() in Rasql query it will use the bounding box of inputCrs in project() operation and transform to outputCrs. E.g: (4326 to 4269). So it should not need to change and add anything in bounding box as parameters for encoding. 13 13 14 14 15 {{{ 15 select encode( 16 project( c[160:360,320:620], "120.0,-40.0,130.0,-25.0", 17 "EPSG:4326", "EPSG:3857" ), 18 "GTiff", 19 "xmin=120.0;xmax=130.0;ymin=-40.0;ymax=-25.0;crs=EPSG:4326") 20 from mean_summer_airtemp AS c where oid(c)=2049 16 select encode(project( c[0,0:10,111:151], 17 "25.0,0.0,30.0,20.0", "EPSG:4326", "EPSG:4269" ), "GTiff", 18 19 *** "xmin=25.0;xmax=30.0;ymin=0.0;ymax=20.0;crs=EPSG:4326" **** 20 21 ) from eobstest AS c where oid(c)=1537 21 22 }}} 22 23 23 All of values in bounding box of Rasql query should be changed to coordinates in 3857, alo with crs=EPSG:3857.24 25 26 24 It is set correct in extend() with bounding box, but not in scale() also 27 28 25 29 26 {{{