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
columnColumnThe spatial column to calculate distance from.
geometryGeometryThe 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
columnColumnThe spatial column to calculate distance from.
geographyGeographyThe 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
geometryGeometryThe geometry to calculate distance from.
columnColumnThe 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
geographyGeographyThe geography to calculate distance from.
columnColumnThe 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
columnColumnThe spatial column to calculate distance from.
geographyGeographyThe geography to calculate distance to.
unitOfMeasureUnitOfMeasureThe 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
geographyGeographyThe geography to calculate distance from.
columnColumnThe spatial column to calculate distance to.
unitOfMeasureUnitOfMeasureThe 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
column1ColumnThe first spatial column to calculate distance from.
column2ColumnThe 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
column1ColumnThe first spatial column to calculate distance from.
column2ColumnThe second spatial column to calculate distance to.
unitOfMeasureUnitOfMeasureThe 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
functionFunctionA spatial function that returns a geometry to calculate distance from.
geometryGeometryThe 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
functionFunctionA spatial function that returns a geography to calculate distance from.
geographyGeographyThe 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
functionFunctionA spatial function that returns a geography to calculate distance from.
geographyGeographyThe geography to calculate distance to.
unitOfMeasureUnitOfMeasureThe 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
geometryGeometryThe geometry to calculate distance from.
functionFunctionA 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
geographyGeographyThe geography to calculate distance from.
functionFunctionA 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
geographyGeographyThe geography to calculate distance from.
functionFunctionA spatial function that returns a geography to calculate distance to.
unitOfMeasureUnitOfMeasureThe 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
functionFunctionA spatial function that returns a geometry to calculate distance from.
columnColumnThe 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
functionFunctionA spatial function that returns a geography to calculate distance from.
columnColumnThe column containing geographies to calculate distance to.
unitOfMeasureUnitOfMeasureThe 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
columnColumnThe column containing geometries to calculate distance from.
functionFunctionA 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
columnColumnThe column containing geographies to calculate distance from.
functionFunctionA spatial function that returns a geography to calculate distance to.
unitOfMeasureUnitOfMeasureThe 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
function1FunctionA spatial function that returns a geometry to calculate distance from.
function2FunctionA 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
function1FunctionA spatial function that returns a geography to calculate distance from.
function2FunctionA spatial function that returns a geography to calculate distance to.
unitOfMeasureUnitOfMeasureThe unit of measure for the distance result.