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

Function: _st_samealignment_transfn

 

 

Schema

public

 

Owner

postgres

 

Descriptions

There is no description for function _st_samealignment_transfn

 

Options

Option

Value

Returns

public.agg_samealignment

Language

plpgsql

Parameters

agg public.agg_samealignment

rast public.raster

 

Definition

CREATE OR REPLACE FUNCTION public._st_samealignment_transfn (
 agg public.agg_samealignment,
 rast public.raster
)
RETURNS public.agg_samealignment AS
$span$
DECLARE

m record;
aligned boolean;
BEGIN
IF
agg IS NULL THEN
agg.refraster := NULL;
agg.aligned := NULL;
END IF;

IF rast IS NULL THEN
agg.aligned := NULL;
ELSE
IF
agg.refraster IS NULL THEN
m := ST_Metadata(rast);
agg.refraster := ST_MakeEmptyRaster(1, 1, m.upperleftx, m.upperlefty, m.scalex, m.scaley, m.skewx, m.skewy, m.srid);
agg.aligned := TRUE;
ELSE IF agg.aligned IS TRUE THEN
agg.aligned := ST_SameAlignment(agg.refraster, rast);
END IF;
END IF;
END IF;
RETURN agg;
END;
$span$
LANGUAGE
'plpgsql'
IMMUTABLE
CALLED 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