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

Function: st_linecrossingdirection

 

 

Schema

public

 

Owner

postgres

 

Descriptions

args: linestringA, linestringB - Given 2 linestrings, returns a number between -3 and 3 denoting what kind of crossing behavior. 0 is no crossing.

 

Options

Option

Value

Returns

integer

Language

sql

Parameters

geom1 public.geometry

geom2 public.geometry

 

Definition

CREATE OR REPLACE FUNCTION public.st_linecrossingdirection (
 geom1 public.geometry,
 geom2 public.geometry
)
RETURNS integer AS
$span$
SELECT CASE WHEN NOT
$1 && $2 THEN 0 ELSE _ST_LineCrossingDirection($1,$2) END
$span$
LANGUAGE
'sql'
IMMUTABLE
CALLED ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_linecrossingdirection(geom1 public.geometry, geom2 public.geometry)
IS 'args: linestringA, linestringB - Given 2 linestrings, returns a number between -3 and 3 denoting what kind of crossing behavior. 0 is no crossing.';

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