| 25 | |
| 26 | It is set correct in extend() with bounding box, but not in scale() also |
| 27 | |
| 28 | |
| 29 | {{{ |
| 30 | # Extend test: |
| 31 | for c in (mean_summer_airtemp)return encode(extend( |
| 32 | c[Lat(-40:-25), Long(120:130)], |
| 33 | {Lat :"http://www.opengis.net/def/crs/EPSG/0/4326" ( -45:35 ), |
| 34 | Long: "http://www.opengis.net/def/crs/EPSG/0/4326" (125:135) }) |
| 35 | , "tiff") |
| 36 | |
| 37 | select 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") |
| 39 | from mean_summer_airtemp AS c where oid(c)=2049 |
| 40 | |
| 41 | |
| 42 | # Scale test: |
| 43 | for c in (mean_summer_airtemp)return encode(scale( |
| 44 | c[Lat(-40:-25), Long(120:130)], |
| 45 | {Lat :"http://www.opengis.net/def/crs/EPSG/0/4326" ( -45:35 ), |
| 46 | Long: "http://www.opengis.net/def/crs/EPSG/0/4326" (125:135) }) |
| 47 | ,"tiff") |
| 48 | |
| 49 | select 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") |
| 51 | from mean_summer_airtemp AS c where oid(c)=2049 |
| 52 | }}} |
| 53 | |
| 54 | |