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

Function: st_value

 

 

Schema

public

 

Owner

postgres

 

Descriptions

args: rast, x, y, exclude_nodata_value=true - Returns the value of a given band in a given columnx, rowy pixel or at a particular geometric point. Band numbers start at 1 and assumed to be 1 if not specified. If exclude_nodata_value is set to false, then all pixels include nodata pixels are considered to intersect and return value. If exclude_nodata_value is not passed in then reads it from metadata of raster.

 

Options

Option

Value

Returns

double precision

Language

sql

Parameters

rast public.raster

x integer

y integer

exclude_nodata_value boolean = true

 

Definition

CREATE OR REPLACE FUNCTION public.st_value (
 rast public.raster,
 x integer,
 y integer,
 exclude_nodata_value boolean = true
)
RETURNS double precision AS
$span$
SELECT
st_value($1, 1, $2, $3, $4)
$span$
LANGUAGE
'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_value(rast public.raster, x integer, y integer, exclude_nodata_value boolean)
IS 'args: rast, x, y, exclude_nodata_value=true - Returns the value of a given band in a given columnx, rowy pixel or at a particular geometric point. Band numbers start at 1 and assumed to be 1 if not specified. If exclude_nodata_value is set to false, then all pixels include nodata pixels are considered to intersect and return value. If exclude_nodata_value is not passed in then reads it from metadata of raster.';

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 26/02/2014 11:51
Previous topic Chapter index Next topic