RefLib

Reference library for AI

Back

postgresql_16:3.5.8.3 Line Segments

PostgreSQL 16 > The SQL Language > Data Types > Geometric Types > Line Segments

Line segments are represented by pairs of points that are the endpoints of the segment. Values of type lseg are specified using any of the following syntaxes: [ ( *x1* , *y1* ) , ( *x2* , *y2* ) ] ( ( *x1* , *y1* ) , ( *x2* , *y2* ) ) ( *x1* , *y1* ) , ( *x2* , *y2* ) *x1* , *y1* , *x2* , *y2* where (*x1*,*y1*) and (*x2*,*y2*) are the end points of the line segment.

Line segments are output using the first syntax.

Back