gis
Database
Tables
(current)
Columns
Constraints
Relationships
Orphan Tables
Anomalies
Routines
calcul_point_position
Parameters
Name
Type
Mode
seg
USER-DEFINED
IN
pointc
USER-DEFINED
IN
Definition
DECLARE a geometry; b geometry; BEGIN a = ST_StartPoint(seg); b = ST_EndPoint(seg); RETURN (ST_X(b) - St_X(a))*(ST_Y(pointc) - ST_Y(a)) - (ST_Y(b) - ST_Y(a))*(ST_X(pointc) - St_X(a)) > 0; END;