Changes between Initial Version and Version 3 of Ticket #1312


Ignore:
Timestamp:
May 13, 2016, 9:55:58 AM (8 years ago)
Author:
Bang Pham Huu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1312

    • Property Summary Petascope_Set correct bounding box when project to not nativeCRSPetascope_Set correct bounding box to Rasql
  • Ticket #1312 – Description

    initial v3  
    2323All of values in bounding box of Rasql query should be changed to coordinates in 3857, alo with crs=EPSG:3857.
    2424
     25
     26It is set correct in extend() with bounding box, but not in scale() also
     27
     28
     29{{{
     30# Extend test:
     31for c in (mean_summer_airtemp)return encode(extend(
     32c[Lat(-40:-25), Long(120:130)],
     33{Lat :"http://www.opengis.net/def/crs/EPSG/0/4326" ( -45:35 ),
     34Long: "http://www.opengis.net/def/crs/EPSG/0/4326" (125:135) })
     35, "tiff")
     36
     37select encode(extend(c[160:360,320:620],[260:460,-880:720]), "GTiff",
     38"xmin=125.0;xmax=135.0;ymin=-45.0;ymax=35.0;crs=EPSG:4326")
     39from mean_summer_airtemp AS c where oid(c)=2049
     40
     41
     42# Scale test:
     43for c in (mean_summer_airtemp)return encode(scale(
     44c[Lat(-40:-25), Long(120:130)],
     45{Lat :"http://www.opengis.net/def/crs/EPSG/0/4326" ( -45:35 ),
     46Long: "http://www.opengis.net/def/crs/EPSG/0/4326" (125:135)  })
     47,"tiff")
     48
     49select encode(scale( c[160:360,320:620], [260:460,-880:720] ), "GTiff",
     50"xmin=120.0;xmax=130.0;ymin=-40.0;ymax=-25.0;crs=EPSG:4326")
     51from mean_summer_airtemp AS c where oid(c)=2049
     52}}}
     53
     54