GeoboundingBox 类

定义

表示定义地理区域的矩形。

public ref class GeoboundingBox sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Geolocation.IGeoboundingBoxFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GeoboundingBox final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Geolocation.IGeoboundingBoxFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class GeoboundingBox final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Geolocation.IGeoboundingBoxFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GeoboundingBox
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Geolocation.IGeoboundingBoxFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class GeoboundingBox
function GeoboundingBox(northwestCorner, southeastCorner, altitudeReferenceSystem, spatialReferenceId)
Public NotInheritable Class GeoboundingBox
继承
Object Platform::Object IInspectable GeoboundingBox
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
应用功能
location

构造函数

GeoboundingBox(BasicGeoposition, BasicGeoposition)

初始化具有指定角的 GeoboundingBox 类的新实例。

GeoboundingBox(BasicGeoposition, BasicGeoposition, AltitudeReferenceSystem)

初始化 GeoboundingBox 类的新实例,该实例具有指定的角并使用指定的海拔参考系统。

GeoboundingBox(BasicGeoposition, BasicGeoposition, AltitudeReferenceSystem, UInt32)

初始化 GeoboundingBox 类的新实例,该实例具有指定的角,并使用指定的海拔参考系统和空间引用 ID (SRID) 。

属性

AltitudeReferenceSystem

获取 GeoboundingBox 使用的海拔参考系统。

Center

获取 GeoboundingBox 的中心。

GeoshapeType

获取 GeoboundingBox 表示的地理形状的类型。

MaxAltitude

获取 GeoboundingBox 的最高角的高度。

MinAltitude

获取 GeoboundingBox 最低角的高度。

NorthwestCorner

获取 GeoboundingBox 的西北角。

SoutheastCorner

获取 GeoboundingBox 的东南角。

SpatialReferenceId

获取 GeoboundingBox 使用的空间引用 ID (SRID) 。

方法

TryCompute(IIterable<BasicGeoposition>)

计算包含指定地理位置集的 GeoboundingBox

TryCompute(IIterable<BasicGeoposition>, AltitudeReferenceSystem)

计算包含指定地理位置集并使用指定海拔参考系统的 GeoboundingBox

TryCompute(IIterable<BasicGeoposition>, AltitudeReferenceSystem, UInt32)

计算包含指定地理位置集的 GeoboundingBox ,并使用指定的海拔参考系统和空间参考 ID (SRID) 。

适用于

另请参阅