Opened 8 years ago

Closed 5 years ago

#1303 closed enhancement (duplicate)

WCPS_Support interpolation argument in crsTransform()

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.0
Component: petascope Version: development
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description (last modified by Dimitar Misev)

As Rasql supports more interpolation methods in project() as http://doc.rasdaman.org/04_ql-guide.html#the-project-function then WCPS can add interpolation parameter for projection.

Here is WCSP query example:

for c in (test_projection)  return encode(crsTransform(c, 
{ Lat:"http://www.opengis.net/def/crs/EPSG/0/3857", Long:"http://www.opengis.net/def/crs/EPSG/0/3857"},
{#INTERPOLATION_TYPE}), "tiff", "nodata=0")

In addition it should be possible to support interpolation as an argument in some way for WMS, perhaps with a non-standard GetMap parameter.

Change History (14)

comment:1 by Dimitar Misev, 8 years ago

Type: defectenhancement

comment:2 by Dimitar Misev, 8 years ago

Description: modified (diff)

comment:3 by Bang Pham Huu, 8 years ago

Milestone: 9.210.0
Priority: majorminor

comment:4 by Bang Pham Huu, 6 years ago

Milestone: 10.09.8

seem like it can be fixed sooner.

comment:5 by Dimitar Misev, 6 years ago

Resolution: fixed
Status: newclosed

The new project() variants support specifying the resampling algorithm: http://doc.rasdaman.org/04_ql-guide.html#the-project-function

By default now it's nearest neighbour (as in gdalwarp).

comment:6 by Bang Pham Huu, 6 years ago

Description: modified (diff)
Priority: minormajor
Summary: Rasql_WCPS_Support interpolation argument in project() and crsTransform() functionsWCPS_Support interpolation argument in crsTransform()

comment:7 by Bang Pham Huu, 6 years ago

Resolution: fixed
Status: closedreopened

comment:8 by Bang Pham Huu, 6 years ago

Resolution: fixed
Status: reopenedclosed

comment:9 by Bang Pham Huu, 6 years ago

Resolution: fixed
Status: closedreopened

comment:10 by Dimitar Misev, 6 years ago

Description: modified (diff)

comment:11 by Dimitar Misev, 6 years ago

Owner: changed from Dimitar Misev to Bang Pham Huu
Status: reopenedassigned

comment:12 by Bang Pham Huu, 5 years ago

@dmisev: Although the resampleAlgorithm parameter was added to Rasql in #2082 but according to WCPS 1.0 standard, it will need something like this

Example The following expression transforms coverage C (which is assumed to have x and y dimensions)
into the CRS identified by urn:ogc:def:crs:EPSG:6.6:63266405. Linear interpolation with null resistance
“none” is applied to range field red if necessary, to all other range fields the default itenrpolation and
null resistance is applied.

crsTransform( C,
 { x: “ urn:ogc:def:crs:EPSG::63266405”,
 y: “ urn:ogc:def:crs:EPSG::63266405”
 },
  *** { red(linear,none) ***
 } 


interpolationMethod: // taken from WCS [OGC 07-067r5]
 ( interpolationType : nullResistance )

interpolationType: // taken from WCS [OGC 07-067r5] Table I.7
 nearest
 | linear
 | quadratic
 | cubic

nullResistance: // taken from WCS [OGC 07-067r5]
 full
 | none
 | half
 | other

comment:13 by Bang Pham Huu, 5 years ago

Milestone: 9.810.0

comment:14 by Bang Pham Huu, 5 years ago

Resolution: duplicate
Status: assignedclosed
Note: See TracTickets for help on using tickets.