Geometric MySQL

Function            Description
GLENGTH             The length of the line (as a floating-point number).
ISCLOSED            1 if the starting point is the same as the ending point; otherwise 0.
NUMPOINTS           The number of points that the line comprises.
STARTPOINT          The first point.
ENDPOINT            The last point.
POINTN(g, N)        The point at location N.