Sdílet prostřednictvím


Geopoint Class

Definition

Describes a geographic point.

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
Inheritance
Object Platform::Object IInspectable Geopoint
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
location

Constructors

Geopoint(BasicGeoposition, AltitudeReferenceSystem, UInt32)

Create a geographic point object for the given position, altitude reference system, and spatial reference Id.

Geopoint(BasicGeoposition, AltitudeReferenceSystem)

Create a geographic point object for the given position and altitude reference system.

Geopoint(BasicGeoposition)

Create a geographic point object for the given position.

Properties

AltitudeReferenceSystem

The altitude reference system of the geographic point. GeoPoint will default to a value of unspecified when constructed without an altitude reference system. The behavior of an unspecified altitude reference system will depend on the API. A MapIcon will treat an unspecified reference system as Surface with an altitude value of 0 and the supplied value for altitude will be ignored.

GeoshapeType

The type of geographic shape.

Position

The position of a geographic point.

SpatialReferenceId

The spatial reference identifier for the geographic point, corresponding to a spatial reference system based on the specific ellipsoid used for either flat-earth mapping or round-earth mapping.

Applies to

See also