Table of Contents

Class SpatialPointN

Namespace
YndigoBlue.Velocity.Functions
Assembly
YndigoBlue.Velocity.dll

Represents the ST_PointN spatial accessor function that returns the Nth point in a linestring geometry.

public class SpatialPointN : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
Inheritance
SpatialPointN
Implements

Remarks

The ST_PointN function returns a point geometry representing the Nth vertex (1-based index) of a linestring. The first point is at index 1, not 0. For multi-linestrings or non-linestring geometries, behavior varies by database implementation. Negative indices may access points from the end in some implementations. For Geometry types in planar coordinate systems, this is useful for extracting specific vertices, analyzing linestring structure, or sampling points along a line. OGC-compliant.

Constructors

SpatialPointN(Column, int)

Initializes a new instance of ST_PointN with a linestring geometry column and point index.