你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Point 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
Azure Cosmos DB 服务中的点几何类。
[System.Runtime.Serialization.DataContract]
[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Cosmos.TextJsonGeometryConverterFactory))]
public sealed class Point : Azure.Cosmos.Spatial.Geometry, IEquatable<Azure.Cosmos.Spatial.Point>
[<System.Runtime.Serialization.DataContract>]
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Cosmos.TextJsonGeometryConverterFactory))>]
type Point = class
inherit Geometry
interface IEquatable<Point>
Public NotInheritable Class Point
Inherits Geometry
Implements IEquatable(Of Point)
- 继承
- 属性
- 实现
构造函数
Point(Double, Double) |
初始化 Azure Cosmos DB 服务中 类的新实例 Point 。 |
Point(Position) |
初始化 Azure Cosmos DB 服务中 类的新实例 Point 。 |
Point(Position, GeometryParams) |
初始化 Azure Cosmos DB 服务中 类的新实例 Point 。 |
属性
AdditionalProperties |
获取 Azure Cosmos DB 服务中的其他属性。 (继承自 Geometry) |
BoundingBox |
获取 Azure Cosmos DB 服务中此几何图形的边界框。 (继承自 Geometry) |
Crs |
获取 Azure Cosmos DB 服务中此几何图形的坐标参考系统。 (继承自 Geometry) |
Position |
获取 Azure Cosmos DB 服务中的点坐标。 |
Type |
获取 Azure Cosmos DB 服务中的 geometry 类型。 (继承自 Geometry) |
方法
Distance(Geometry) |
Azure Cosmos DB 服务中两个几何图形之间的距离(以米为单位)。 (继承自 Geometry) |
Equals(Object) | |
Equals(Point) |
确定这 Point 在 Azure Cosmos DB 服务中是否等于 |
GetHashCode() |
用作 Azure Cosmos DB 服务中类型的哈希函数 Point 。 |
Intersects(Geometry) |
检查当前 geometry1 是否与 geometry2 相交。 (继承自 Geometry) |
IsValid() |
确定指定的几何图形是否有效,并且可由 Azure Cosmos DB 服务在查询中编制索引或使用。
如果几何图形无效,则不会对其进行索引。 此外,在查询期间,无效的几何图形等效于 |
IsValidDetailed() |
确定指定的几何图形是否有效,并且可以由 Azure Cosmos DB 服务在查询中编制索引或使用,如果无效,则以字符串值的形式提供其他原因。
如果几何图形无效,则不会对其进行索引。 此外,在查询期间,无效的几何图形等效于 |
Within(Geometry) |
确定当前内部 Geometry 是否完全包含在 Azure Cosmos DB 服务中 |