GeoboundingBox Class

Definition

Represents a rectangle that defines a geographic area.

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.DualApiPartition(version=167772160)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Static(Windows.Devices.Geolocation.IGeoboundingBoxStatics, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GeoboundingBox sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.DualApiPartition(version=167772160)]
/// [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")]
/// [Windows.Foundation.Metadata.Static(Windows.Devices.Geolocation.IGeoboundingBoxStatics, 65536, "Windows.Foundation.UniversalApiContract")]
class GeoboundingBox sealed
[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.DualApiPartition(version=167772160)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Windows.Devices.Geolocation.IGeoboundingBoxStatics), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[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.DualApiPartition(version=167772160)]
[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")]
[Windows.Foundation.Metadata.Static(typeof(Windows.Devices.Geolocation.IGeoboundingBoxStatics), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class GeoboundingBox
function GeoboundingBox(northwestCorner, southeastCorner, altitudeReferenceSystem, spatialReferenceId)
Public NotInheritable Class GeoboundingBox
Inheritance
GeoboundingBox
Attributes
Implements

Windows 10 requirements

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

Constructors

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).

Properties

AltitudeReferenceSystem

Gets the altitude reference system used by the GeoboundingBox.

Center

Gets the center of the GeoboundingBox.

GeoshapeType

Gets the type of geographic shape represented by the GeoboundingBox.

MaxAltitude

Gets the altitude of the highest corner of the GeoboundingBox.

MinAltitude

Gets the altitude of the lowest corner of the GeoboundingBox.

NorthwestCorner

Gets the northwest corner of the GeoboundingBox.

SoutheastCorner

Gets the southeast corner of the GeoboundingBox.

SpatialReferenceId

Gets the spatial reference ID (SRID) used by the GeoboundingBox.

Methods

TryCompute(IEnumerable<BasicGeoposition>)

Calculates a GeoboundingBox that contains the specified set of geographic positions.

TryCompute(IEnumerable<BasicGeoposition>, AltitudeReferenceSystem)

Calculates a GeoboundingBox that contains the specified set of geographic positions and uses the specified altitude reference system.

TryCompute(IEnumerable<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).

Applies to

See also