共用方式為


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 類別的新實例,這個類別具有指定的角落,並使用指定的高度參考系統和空間參考識別碼 (SRID) 。

屬性

AltitudeReferenceSystem

取得 GeoboundingBox所使用的高度參考系統。

Center

取得 GeoboundingBox的中心。

GeoshapeType

取得 GeoboundingBox所代表的地理圖形類型。

MaxAltitude

取得 GeoboundingBox最高角的高度。

MinAltitude

取得 GeoboundingBox最低角落的高度。

NorthwestCorner

取得 GeoboundingBox的北角。

SoutheastCorner

取得 GeoboundingBox的東南部角落。

SpatialReferenceId

取得 GeoboundingBox所使用的空間參考識別碼 (SRID) 。

方法

TryCompute(IIterable<BasicGeoposition>)

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

TryCompute(IIterable<BasicGeoposition>, AltitudeReferenceSystem)

計算 GeoboundingBox ,其中包含一組指定的地理位置,並使用指定的高度參考系統。

TryCompute(IIterable<BasicGeoposition>, AltitudeReferenceSystem, UInt32)

計算 GeoboundingBox ,其中包含一組指定的地理位置,並使用指定的高度參考系統和空間參考識別碼, (SRID) 。

適用於

另請參閱