Table of Contents

Constructor SpatialDistance

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

SpatialDistance(Column, Geometry)

Initializes a new instance of ST_Distance with a column and a Geometry literal.

public SpatialDistance(Column column, Geometry geometry)

Parameters

column Column

The spatial column to calculate distance from.

geometry Geometry

The geometry to calculate distance to.

SpatialDistance(Column, Geography)

Initializes a new instance of ST_Distance with a column and a Geography literal.

public SpatialDistance(Column column, Geography geography)

Parameters

column Column

The spatial column to calculate distance from.

geography Geography

The geography to calculate distance to.

SpatialDistance(Geometry, Column)

Initializes a new instance of ST_Distance with a Geometry literal and a column.

public SpatialDistance(Geometry geometry, Column column)

Parameters

geometry Geometry

The geometry to calculate distance from.

column Column

The spatial column to calculate distance to.

SpatialDistance(Geography, Column)

Initializes a new instance of ST_Distance with a Geography literal and a column.

public SpatialDistance(Geography geography, Column column)

Parameters

geography Geography

The geography to calculate distance from.

column Column

The spatial column to calculate distance to.

SpatialDistance(Column, Geography, UnitOfMeasure)

Initializes a new instance of ST_Distance with a column, Geography, and unit of measure.

public SpatialDistance(Column column, Geography geography, UnitOfMeasure unitOfMeasure)

Parameters

column Column

The spatial column to calculate distance from.

geography Geography

The geography to calculate distance to.

unitOfMeasure UnitOfMeasure

The unit of measure for the distance result.

SpatialDistance(Geography, Column, UnitOfMeasure)

Initializes a new instance of ST_Distance with a Geography, column, and unit of measure.

public SpatialDistance(Geography geography, Column column, UnitOfMeasure unitOfMeasure)

Parameters

geography Geography

The geography to calculate distance from.

column Column

The spatial column to calculate distance to.

unitOfMeasure UnitOfMeasure

The unit of measure for the distance result.

SpatialDistance(Column, Column)

Initializes a new instance of ST_Distance with two columns for spatial joins.

public SpatialDistance(Column column1, Column column2)

Parameters

column1 Column

The first spatial column to calculate distance from.

column2 Column

The second spatial column to calculate distance to.

SpatialDistance(Column, Column, UnitOfMeasure)

Initializes a new instance of ST_Distance with two columns and unit of measure for spatial joins.

public SpatialDistance(Column column1, Column column2, UnitOfMeasure unitOfMeasure)

Parameters

column1 Column

The first spatial column to calculate distance from.

column2 Column

The second spatial column to calculate distance to.

unitOfMeasure UnitOfMeasure

The unit of measure for the distance result.

SpatialDistance(Function, Geometry)

Initializes a new instance of ST_Distance with a function result and Geometry literal for function chaining.

public SpatialDistance(Function function, Geometry geometry)

Parameters

function Function

A spatial function that returns a geometry to calculate distance from.

geometry Geometry

The geometry to calculate distance to.

SpatialDistance(Function, Geography)

Initializes a new instance of ST_Distance with a function result and Geography literal for function chaining.

public SpatialDistance(Function function, Geography geography)

Parameters

function Function

A spatial function that returns a geography to calculate distance from.

geography Geography

The geography to calculate distance to.

SpatialDistance(Function, Geography, UnitOfMeasure)

Initializes a new instance of ST_Distance with a function result, Geography literal, and unit of measure for function chaining.

public SpatialDistance(Function function, Geography geography, UnitOfMeasure unitOfMeasure)

Parameters

function Function

A spatial function that returns a geography to calculate distance from.

geography Geography

The geography to calculate distance to.

unitOfMeasure UnitOfMeasure

The unit of measure for the distance result.

SpatialDistance(Geometry, Function)

Initializes a new instance of ST_Distance with a Geometry literal and function result for function chaining.

public SpatialDistance(Geometry geometry, Function function)

Parameters

geometry Geometry

The geometry to calculate distance from.

function Function

A spatial function that returns a geometry to calculate distance to.

SpatialDistance(Geography, Function)

Initializes a new instance of ST_Distance with a Geography literal and function result for function chaining.

public SpatialDistance(Geography geography, Function function)

Parameters

geography Geography

The geography to calculate distance from.

function Function

A spatial function that returns a geography to calculate distance to.

SpatialDistance(Geography, Function, UnitOfMeasure)

Initializes a new instance of ST_Distance with a Geography literal, function result, and unit of measure for function chaining.

public SpatialDistance(Geography geography, Function function, UnitOfMeasure unitOfMeasure)

Parameters

geography Geography

The geography to calculate distance from.

function Function

A spatial function that returns a geography to calculate distance to.

unitOfMeasure UnitOfMeasure

The unit of measure for the distance result.

SpatialDistance(Function, Column)

Initializes a new instance of ST_Distance with a function result and column for function chaining.

public SpatialDistance(Function function, Column column)

Parameters

function Function

A spatial function that returns a geometry to calculate distance from.

column Column

The column containing geometries to calculate distance to.

SpatialDistance(Function, Column, UnitOfMeasure)

Initializes a new instance of ST_Distance with a function result, column, and unit of measure for function chaining.

public SpatialDistance(Function function, Column column, UnitOfMeasure unitOfMeasure)

Parameters

function Function

A spatial function that returns a geography to calculate distance from.

column Column

The column containing geographies to calculate distance to.

unitOfMeasure UnitOfMeasure

The unit of measure for the distance result.

SpatialDistance(Column, Function)

Initializes a new instance of ST_Distance with a column and function result for function chaining.

public SpatialDistance(Column column, Function function)

Parameters

column Column

The column containing geometries to calculate distance from.

function Function

A spatial function that returns a geometry to calculate distance to.

SpatialDistance(Column, Function, UnitOfMeasure)

Initializes a new instance of ST_Distance with a column, function result, and unit of measure for function chaining.

public SpatialDistance(Column column, Function function, UnitOfMeasure unitOfMeasure)

Parameters

column Column

The column containing geographies to calculate distance from.

function Function

A spatial function that returns a geography to calculate distance to.

unitOfMeasure UnitOfMeasure

The unit of measure for the distance result.

SpatialDistance(Function, Function)

Initializes a new instance of ST_Distance with two function results for function chaining.

public SpatialDistance(Function function1, Function function2)

Parameters

function1 Function

A spatial function that returns a geometry to calculate distance from.

function2 Function

A spatial function that returns a geometry to calculate distance to.

SpatialDistance(Function, Function, UnitOfMeasure)

Initializes a new instance of ST_Distance with two function results and unit of measure for function chaining.

public SpatialDistance(Function function1, Function function2, UnitOfMeasure unitOfMeasure)

Parameters

function1 Function

A spatial function that returns a geography to calculate distance from.

function2 Function

A spatial function that returns a geography to calculate distance to.

unitOfMeasure UnitOfMeasure

The unit of measure for the distance result.