ST_Raster.getInterleaveType
Definition
The ST_Raster.getInterleaveType function returns the pixel interleave property of the ST_Raster. Valid values include the following:
- sequential—Band sequential (BSQ); for multiband data, pixels are stored in separate bands.
- contiguous—Band interleaved by pixel (BIP); for multiband data, pixels are stored in pixel interleaved format. This type of storage can only be applied to the common three-band, 8-bit data.
Syntax
Oracle
getInterleaveType()
PostgreSQL
getInterleaveType(raster IN ST_RASTER)
SQL Server
getInterleaveType()
Returns
Oracle
VARCHAR2
PostgreSQL
Text
SQL Server
NVARCHAR
Parameters
None
Example
The following query returns the interleave type for each raster in the table:
Oracle
PostgreSQL
Oracle
SELECT image.raster_id, image.getInterleaveType()
FROM FOO t;
T.IMAGE.RASTER_ID T.IMAGE.GETINTERLEAVETYPE()
--------------- -------------------------
2 SEQUENTIAL
3 SEQUENTIAL
23 SEQUENTIAL
24 SEQUENTIAL
42 SEQUENTIAL
43 SEQUENTIAL
PostgreSQL
SELECT raster_id(image), getInterleaveType(image)
FROM foo;
RASTER_ID(IMAGE) GETINTERLEAVETYPE(IMAGE)
---------------- ------------------------
2 SEQUENTIAL
3 SEQUENTIAL
23 SEQUENTIAL
24 SEQUENTIAL
42 SEQUENTIAL
43 SEQUENTIAL
SQL Server
SELECT image.raster_id, image.getInterleaveType()
FROM foo;
IMAGE.RASTER_ID IMAGE.GETINTERLEAVETYPE()
--------------- -------------------------
2 SEQUENTIAL
3 SEQUENTIAL
23 SEQUENTIAL
24 SEQUENTIAL
42 SEQUENTIAL
43 SEQUENTIAL
6/19/2015