Share via


Geopoint Constructors

Definition

Overloads

Geopoint(BasicGeoposition)

Create a geographic point object for the given position.

Geopoint(BasicGeoposition, AltitudeReferenceSystem)

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

Geopoint(BasicGeoposition, AltitudeReferenceSystem, UInt32)

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

Geopoint(BasicGeoposition)

Create a geographic point object for the given position.

public:
 Geopoint(BasicGeoposition position);
 Geopoint(BasicGeoposition const& position);
public Geopoint(BasicGeoposition position);
function Geopoint(position)
Public Sub New (position As BasicGeoposition)

Parameters

position
BasicGeoposition

Create a geographic point object for the given position.

Windows requirements

App capabilities
location

Remarks

The constructor will throw an exception if the provided BasicGeoposition has a latitude is less than -90 or greater than 90.

Applies to

Geopoint(BasicGeoposition, AltitudeReferenceSystem)

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

public:
 Geopoint(BasicGeoposition position, AltitudeReferenceSystem altitudeReferenceSystem);
 Geopoint(BasicGeoposition const& position, AltitudeReferenceSystem const& altitudeReferenceSystem);
public Geopoint(BasicGeoposition position, AltitudeReferenceSystem altitudeReferenceSystem);
function Geopoint(position, altitudeReferenceSystem)
Public Sub New (position As BasicGeoposition, altitudeReferenceSystem As AltitudeReferenceSystem)

Parameters

position
BasicGeoposition

Create a geographic point object for the given position.

altitudeReferenceSystem
AltitudeReferenceSystem

The altitude reference system of the new point.

Windows requirements

App capabilities
location

Applies to

Geopoint(BasicGeoposition, AltitudeReferenceSystem, UInt32)

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

public:
 Geopoint(BasicGeoposition position, AltitudeReferenceSystem altitudeReferenceSystem, unsigned int spatialReferenceId);
 Geopoint(BasicGeoposition const& position, AltitudeReferenceSystem const& altitudeReferenceSystem, uint32_t const& spatialReferenceId);
public Geopoint(BasicGeoposition position, AltitudeReferenceSystem altitudeReferenceSystem, uint spatialReferenceId);
function Geopoint(position, altitudeReferenceSystem, spatialReferenceId)
Public Sub New (position As BasicGeoposition, altitudeReferenceSystem As AltitudeReferenceSystem, spatialReferenceId As UInteger)

Parameters

position
BasicGeoposition

Create a geographic point object for the given position.

altitudeReferenceSystem
AltitudeReferenceSystem

The altitude reference system of the new point.

spatialReferenceId
UInt32

unsigned int

uint32_t

The spatial reference Id of the new point.

Windows requirements

App capabilities
location

Applies to