| 3 | '''Update:''' The problem only happens if use a coverage with multibands (ranges) and encode all of these ranges in NetCDF. In this example: test_projection has 3 bands (Red, Green, Blue). |
| 4 | |
| 5 | |
| 6 | {{{ |
| 7 | Describe Coverage metadata: https://www.diffchecker.com/9uk36tkw |
| 8 | }}} |
| 9 | |
| 10 | |
| 11 | If only select 1 band (Red) then it will have the full geo-referenced metadata. |
| 12 | |
| 13 | '''WCPS query with metadata (select 1 band)''' |
| 14 | |
| 15 | |
| 16 | {{{ |
| 17 | for c in (test_projection), d in (eobstest) |
| 18 | return encode(crsTransform((c.Red), |
| 19 | { Lat:"http://www.opengis.net/def/crs/EPSG/0/3542", Long:"http://www.opengis.net/def/crs/EPSG/0/3542"}, {}), "netcdf") |
| 20 | }}} |
| 21 | |
| 22 | |
| 23 | '''WCPS query without metadata (multibands)''' |
34 | | |
35 | | |
36 | | But if not using this function then it has |
37 | | |
38 | | {{{ |
39 | | for c in (eobstest) return encode( c[t(0)], "netcdf") |
40 | | }}} |
41 | | |
42 | | |
43 | | {{{ |
44 | | Driver: netCDF/Network Common Data Format |
45 | | Files: /home/rasdaman/Downloads/ows(125) |
46 | | Size is 101, 232 |
47 | | Coordinate System is: |
48 | | GEOGCS["WGS 84", |
49 | | DATUM["WGS_1984", |
50 | | SPHEROID["WGS 84",6378137,298.257223563, |
51 | | AUTHORITY["EPSG","7030"]], |
52 | | AUTHORITY["EPSG","6326"]], |
53 | | PRIMEM["Greenwich",0, |
54 | | AUTHORITY["EPSG","8901"]], |
55 | | UNIT["degree",0.0174532925199433, |
56 | | AUTHORITY["EPSG","9122"]], |
57 | | AUTHORITY["EPSG","4326"]] |
58 | | Origin = (25.000000000000000,75.500000000000000) |
59 | | Pixel Size = (0.500000000000000,-0.500000000000000) |
60 | | |
61 | | }}} |
62 | | |
63 | | |