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

Function: st_value

 

 

Schema

public

 

Owner

postgres

 

Descriptions

args: rast, pt, 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

pt public.geometry

exclude_nodata_value boolean = true

 

Definition

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

COMMENT ON FUNCTION public.st_value(rast public.raster, pt public.geometry, exclude_nodata_value boolean)
IS 'args: rast, pt, 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 13/03/2014 13:23
Previous topic Chapter index Next topic