Geopoint 类

定义

描述地理点。

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

Windows 要求

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

构造函数

Geopoint(BasicGeoposition)

为给定位置创建地理点对象。

Geopoint(BasicGeoposition, AltitudeReferenceSystem)

为给定位置和海拔参考系统创建地理点对象。

Geopoint(BasicGeoposition, AltitudeReferenceSystem, UInt32)

为给定位置、海拔参考系统和空间参考 ID 创建地理点对象。

属性

AltitudeReferenceSystem

地理点的海拔参考系统。 在没有海拔参考系统的情况下构造时,GeoPoint 将默认为未指定的值。 未指定的海拔参考系统的行为将取决于 API。 MapIcon 会将未指定的参考系统视为海拔值为 0 的 Surface,而提供的高度值将被忽略。

GeoshapeType

地理形状的类型。

Position

地理点的位置。

SpatialReferenceId

地理点的空间参考标识符,对应于基于用于平面地球映射或圆地球映射的特定椭圆形的空间参考系统。

适用于

另请参阅