ST_Raster.hasStats

Definición

La función ST_Raster.hasStats indica si el objeto ST_Raster tiene estadísticas de imágenes calculadas o no. Devuelve 1 si las estadísticas están presentes y 0 si no lo están.

Sintaxis

Oracle

hasStats()

PostgreSQL

hasStats(raster IN ST_RASTER)

SQL Server

hasStats()

Devuelve

Oracle

Número

PostgreSQL

Booleano

SQL Server

Entero

Parámetros

Ninguno

Ejemplo

La siguiente consulta muestra si las estadísticas de imagen están disponibles o no para cada ráster en la tabla:

Oracle

SELECT t.image.raster_id, t.image.hasStats() FROM FOO t;  T.IMAGE.RASTER_ID T.IMAGE.HASSTATS() ---------------   ------------------               2                1               3                0              23                0              24                0              42                0              43                0

PostgreSQL

SELECT raster_id(image), hasStats(image) FROM foo;   RASTER_ID(IMAGE) HASSTATS(IMAGE) ---------------  ---------------               2                1               3                0              23                0              24                0              42                0              43                0

SQL Server

SELECT image.raster_id, image.hasStats() FROM foo;  IMAGE.RASTER_ID IMAGE.HASSTATS() --------------- ----------------               2                1               3                0              23                0              24                0              42                0              43                0
9/11/2013