Share via


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.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GeoboundingBox final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [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")]
class GeoboundingBox final
[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.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[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.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")]
public sealed class GeoboundingBox
function GeoboundingBox(northwestCorner, southeastCorner, altitudeReferenceSystem, spatialReferenceId)
Public NotInheritable Class GeoboundingBox
Inheritance
Object Platform::Object IInspectable GeoboundingBox
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

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

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)

Initializes a new instance of the GeoboundingBox class that has the specified corners.

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

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

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

Applies to

See also