ST_Raster.getInterpolationType

Definition

The ST_Raster.getInterpolationType function returns the pyramid interpolation property used to build the pyramid of the ST_Raster. Valid return values are as follows:

Syntax

Oracle

getInterpolationType()

PostgreSQL

getInterpolationType(raster IN ST_RASTER)

SQL Server

getInterpolationType()

Returns

Oracle

VARCHAR2

PostgreSQL

Text

SQL Server

NVARCHAR

Parameters

raster—The ST_Raster object to be tested

Examples

The following statements return the pyramid interpolation property for each raster in the table.

NoteNote:

The pyramid interpolation property is only defined for the first two rows; the rest of them are empty. This is because they do not have pyramids built, so the pyramid interpolation property is not defined.

Oracle

SELECT image.raster_id, image.getInterpolationType()
FROM FOO t;


T.IMAGE.RASTER_ID T.IMAGE.GETINTERPOLATIONTYPE()
--------------- ------------------------------
              2 BILINEAR
              3 BILINEAR
             23 
             24  
             42 
             43 

PostgreSQL

SELECT raster_id(image), getInterpolationType(image)
FROM foo t;


RASTER_ID(IMAGE) GETINTERPOLATIONTYPE(IMAGE)
---------------- ---------------------------
               2 BILINEAR
               3 BILINEAR
              23 
              24  
              42 
              43 

SQL Server

SELECT image.raster_id, image.getInterpolationType()
FROM foo;

IMAGE.RASTER_ID IMAGE.GETINTERPOLATIONTYPE()
--------------- ------------------------------
              2 BILINEAR
              3 BILINEAR
             23 
             24  
             42 
             43

2/5/2013