pggeodb.nancy.inra.fr/db_cefs - db_cefs on pggeodb.nancy.inra.fr
Previous topic Chapter index Next topic

Function: _st_count

 

 

Schema

public

 

Owner

postgres

 

Descriptions

There is no description for function _st_count

 

Options

Option

Value

Returns

bigint

Language

plpgsql

Parameters

rast public.raster

nband integer = 1

exclude_nodata_value boolean = true

sample_percent double precision = 1

 

Definition

CREATE OR REPLACE FUNCTION public._st_count (
 rast public.raster,
 nband integer = 1,
 exclude_nodata_value boolean = true,
 sample_percent double precision = 1
)
RETURNS bigint AS
$span$
DECLARE

rtn bigint;
BEGIN
IF
exclude_nodata_value IS FALSE THEN
SELECT
width * height INTO rtn FROM ST_Metadata(rast);
ELSE
SELECT count INTO
rtn FROM _st_summarystats($1, $2, $3, $4);
END IF;

RETURN rtn;
END;
$span$
LANGUAGE
'plpgsql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 13/03/2014 13:23
Previous topic Chapter index Next topic