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

Function: st_pixelascentroid

 

 

Schema

public

 

Owner

albenard

 

Descriptions

args: rast, x, y - Returns the centroid (point geometry) of the area represented by a pixel.

 

Options

Option

Value

Returns

public.geometry

Language

sql

Parameters

rast public.raster

x integer

y integer

 

Definition

CREATE OR REPLACE FUNCTION public.st_pixelascentroid (
 rast public.raster,
 x integer,
 y integer
)
RETURNS public.geometry AS
$span$
SELECT public
.ST_Centroid(geom) FROM public._ST_pixelaspolygons($1, NULL, $2, $3)
$span$
LANGUAGE
'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_pixelascentroid(rast public.raster, x integer, y integer)
IS 'args: rast, x, y - Returns the centroid (point geometry) of the area represented by a pixel.';

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