Changes between Version 3 and Version 4 of Ticket #1312


Ignore:
Timestamp:
May 24, 2016, 10:23:40 AM (8 years ago)
Author:
Bang Pham Huu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1312

    • Property Owner set to Bang Pham Huu
    • Property Status newaccepted
    • Property Milestone 9.29.3
  • Ticket #1312 – Description

    v3 v4  
    11Current, 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.
    22
    3 WCPS query
     3
    44{{{
    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")
     5for c in (eobstest)  return encode(
     6crsTransform(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")
    109}}}
    1110
    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
    1314
    1415{{{
    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
     16select 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
    2122}}}
    2223
    23 All of values in bounding box of Rasql query should be changed to coordinates in 3857, alo with crs=EPSG:3857.
    24 
    25 
    2624It is set correct in extend() with bounding box, but not in scale() also
    27 
    2825
    2926{{{