你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

LineString 类

定义

表示由连接的线段组成的几何图形。

[System.Runtime.Serialization.DataContract]
public sealed class LineString : Microsoft.Azure.Cosmos.Spatial.Geometry, IEquatable<Microsoft.Azure.Cosmos.Spatial.LineString>
[<System.Runtime.Serialization.DataContract>]
type LineString = class
    inherit Geometry
    interface IEquatable<LineString>
Public NotInheritable Class LineString
Inherits Geometry
Implements IEquatable(Of LineString)
继承
LineString
属性
实现

构造函数

LineString(IList<Position>)

初始化 LineString 类的新实例。

LineString(IList<Position>, GeometryParams)

初始化 LineString 类的新实例。

属性

AdditionalProperties

获取 Azure Cosmos DB 服务中的其他属性。

(继承自 Geometry)
BoundingBox

获取 Azure Cosmos DB 服务中此几何图形的边界框。

(继承自 Geometry)
Crs

获取 Azure Cosmos DB 服务中此几何图形的坐标参考系统。

(继承自 Geometry)
Positions

获取行字符串位置。

Type

获取 Azure Cosmos DB 服务中的 geometry 类型。

(继承自 Geometry)

方法

Distance(Geometry)

Azure Cosmos DB 服务中两个几何图形之间的距离(以米为单位)。

(继承自 Geometry)
Equals(LineString)

确定这 LineString 是否等于 other

Equals(Object)

确定指定的 LineString 是否等同于当前的 LineString

GetHashCode()

用作 LineString 类型的哈希函数。

Intersects(Geometry)

检查当前 geometry1 是否与 geometry2 相交。

(继承自 Geometry)
IsValid()

确定指定的几何图形是否有效,并且可由 Azure Cosmos DB 服务在查询中编制索引或使用。

如果几何图形无效,则不会对其进行索引。 此外,在查询期间,无效的几何图形等效于 undefined

(继承自 Geometry)
IsValidDetailed()

确定指定的几何图形是否有效,并且可以由 Azure Cosmos DB 服务在查询中编制索引或使用,如果无效,则以字符串值的形式提供其他原因。

如果几何图形无效,则不会对其进行索引。 此外,在查询期间,无效的几何图形等效于 undefined

(继承自 Geometry)
Within(Geometry)

确定当前内部 Geometry 是否完全包含在 Azure Cosmos DB 服务中 outerGeometry

(继承自 Geometry)

适用于