Windows Dev Center

GeoboundingBox class

Represents a rectangle that defines a geographic area.

Syntax


var geoboundingBox = new Windows.Devices.Geolocation.GeoboundingBox(basicGeoposition, basicGeoposition);
var geoboundingBox = new Windows.Devices.Geolocation.GeoboundingBox(basicGeoposition, basicGeoposition, altitudeReferenceSystem);
var geoboundingBox = new Windows.Devices.Geolocation.GeoboundingBox(basicGeoposition, basicGeoposition, altitudeReferenceSystem, uInt32);

Members

The GeoboundingBox class has these types of members:

Constructors

The GeoboundingBox class has these constructors.

ConstructorDescription
GeoboundingBox(BasicGeoposition,BasicGeoposition) Initializes a new instance of the GeoboundingBox class that has the specified corners.
GeoboundingBox(BasicGeoposition,BasicGeoposition,AltitudeReferenceSystem) Initializes a new instance of the GeoboundingBox class that has the specified corners and uses the specified altitude reference system.
GeoboundingBox(BasicGeoposition,BasicGeoposition,AltitudeReferenceSystem,UInt32) Initializes a new instance of the GeoboundingBox class that has the specified corners and uses the specified altitude reference system and spatial reference ID (SRID).

 

Methods

The GeoboundingBox class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
TryCompute(IIterable(BasicGeoposition)) Calculates a GeoboundingBox that contains the specified set of geographic positions.
TryCompute(IIterable(BasicGeoposition),AltitudeReferenceSystem) Calculates a GeoboundingBox that contains the specified set of geographic positions and uses the specified altitude reference system.
TryCompute(IIterable(BasicGeoposition),AltitudeReferenceSystem,UInt32) Calculates a GeoboundingBox that contains the specified set of geographic positions and uses the specified altitude reference system and spatial reference ID (SRID).

 

Properties

The GeoboundingBox class has these properties.

PropertyAccess typeDescription

AltitudeReferenceSystem

Read-onlyGets the altitude reference system used by the GeoboundingBox.

Center

Read-onlyGets the center of the GeoboundingBox.

GeoshapeType

Read-onlyGets the type of geographic shape represented by the GeoboundingBox.

MaxAltitude

Read-onlyGets the altitude of the highest corner of the GeoboundingBox.

MinAltitude

Read-onlyGets the altitude of the lowest corner of the GeoboundingBox.

NorthwestCorner

Read-onlyGets the northwest corner of the GeoboundingBox.

SoutheastCorner

Read-onlyGets the southeast corner of the GeoboundingBox.

SpatialReferenceId

Read-onlyGets the spatial reference ID (SRID) used by the GeoboundingBox.

 

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Geolocation
Windows::Devices::Geolocation [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Devices.Geolocation
Windows::Devices::Geolocation [C++]

Metadata

Windows.winmd

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version]

See also

Object
IGeoshape

 

 

Show:
© 2015 Microsoft