GeoboundingBox GeoboundingBox GeoboundingBox GeoboundingBox Class

Definition

Represents a rectangle that defines a geographic area.

public : sealed class GeoboundingBox : IGeoboundingBox, IGeoshape
public sealed class GeoboundingBox : IGeoboundingBox, IGeoshape
Public NotInheritable Class GeoboundingBox Implements IGeoboundingBox, IGeoshape
var geoboundingBox = new geoboundingBox(northwestCorner, southeastCorner);
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location

Constructors

GeoboundingBox(BasicGeoposition, BasicGeoposition) GeoboundingBox(BasicGeoposition, BasicGeoposition) GeoboundingBox(BasicGeoposition, BasicGeoposition) GeoboundingBox(BasicGeoposition, BasicGeoposition)

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

public : GeoboundingBox(BasicGeoposition northwestCorner, BasicGeoposition southeastCorner)
public GeoboundingBox(BasicGeoposition northwestCorner, BasicGeoposition southeastCorner)
Public Sub New(northwestCorner As BasicGeoposition, southeastCorner As BasicGeoposition)
var geoboundingBox = new geoboundingBox(northwestCorner, southeastCorner);
Parameters
northwestCorner
BasicGeoposition BasicGeoposition BasicGeoposition BasicGeoposition

The northwest corner to use for the new GeoboundingBox. For more info, see the NorthwestCorner property.

southeastCorner
BasicGeoposition BasicGeoposition BasicGeoposition BasicGeoposition

The southeast corner to use for the new GeoboundingBox. For more info, see the SoutheastCorner property.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location
See Also

GeoboundingBox(BasicGeoposition, BasicGeoposition, AltitudeReferenceSystem) GeoboundingBox(BasicGeoposition, BasicGeoposition, AltitudeReferenceSystem) GeoboundingBox(BasicGeoposition, BasicGeoposition, AltitudeReferenceSystem) GeoboundingBox(BasicGeoposition, BasicGeoposition, AltitudeReferenceSystem)

Initializes a new instance of the GeoboundingBox class that has the specified corners and uses the specified altitude reference system.

public : GeoboundingBox(BasicGeoposition northwestCorner, BasicGeoposition southeastCorner, AltitudeReferenceSystem altitudeReferenceSystem)
public GeoboundingBox(BasicGeoposition northwestCorner, BasicGeoposition southeastCorner, AltitudeReferenceSystem altitudeReferenceSystem)
Public Sub New(northwestCorner As BasicGeoposition, southeastCorner As BasicGeoposition, altitudeReferenceSystem As AltitudeReferenceSystem)
var geoboundingBox = new geoboundingBox(northwestCorner, southeastCorner, altitudeReferenceSystem);
Parameters
northwestCorner
BasicGeoposition BasicGeoposition BasicGeoposition BasicGeoposition

The northwest corner to use for the new GeoboundingBox. For more info, see the NorthwestCorner property.

southeastCorner
BasicGeoposition BasicGeoposition BasicGeoposition BasicGeoposition

The southeast corner to use for the new GeoboundingBox. For more info, see the SoutheastCorner property.

altitudeReferenceSystem
AltitudeReferenceSystem AltitudeReferenceSystem AltitudeReferenceSystem AltitudeReferenceSystem

The altitude reference system to use for the new GeoboundingBox. For more info, see the AltitudeReferenceSystem property.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location
See Also

GeoboundingBox(BasicGeoposition, BasicGeoposition, AltitudeReferenceSystem, UInt32) GeoboundingBox(BasicGeoposition, BasicGeoposition, AltitudeReferenceSystem, UInt32) GeoboundingBox(BasicGeoposition, BasicGeoposition, AltitudeReferenceSystem, UInt32) 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).

public : GeoboundingBox(BasicGeoposition northwestCorner, BasicGeoposition southeastCorner, AltitudeReferenceSystem altitudeReferenceSystem, unsigned int spatialReferenceId)
public GeoboundingBox(BasicGeoposition northwestCorner, BasicGeoposition southeastCorner, AltitudeReferenceSystem altitudeReferenceSystem, UInt32 spatialReferenceId)
Public Sub New(northwestCorner As BasicGeoposition, southeastCorner As BasicGeoposition, altitudeReferenceSystem As AltitudeReferenceSystem, spatialReferenceId As UInt32)
var geoboundingBox = new geoboundingBox(northwestCorner, southeastCorner, altitudeReferenceSystem, spatialReferenceId);
Parameters
northwestCorner
BasicGeoposition BasicGeoposition BasicGeoposition BasicGeoposition

The northwest corner to use for the new GeoboundingBox. For more info, see the NorthwestCorner property.

southeastCorner
BasicGeoposition BasicGeoposition BasicGeoposition BasicGeoposition

The southeast corner to use for the new GeoboundingBox. For more info, see the SoutheastCorner property.

altitudeReferenceSystem
AltitudeReferenceSystem AltitudeReferenceSystem AltitudeReferenceSystem AltitudeReferenceSystem

The altitude reference system to use for the new GeoboundingBox. For more info, see the AltitudeReferenceSystem property.

spatialReferenceId
unsigned int UInt32 UInt32 UInt32

The spatial reference ID (SRID) to use for the new GeoboundingBox. For more info, see the SpatialReferenceId property.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location
See Also

Properties

AltitudeReferenceSystem AltitudeReferenceSystem AltitudeReferenceSystem AltitudeReferenceSystem

Gets the altitude reference system used by the GeoboundingBox.

public : AltitudeReferenceSystem AltitudeReferenceSystem { get; }
public AltitudeReferenceSystem AltitudeReferenceSystem { get; }
Public ReadOnly Property AltitudeReferenceSystem As AltitudeReferenceSystem
var altitudeReferenceSystem = geoboundingBox.altitudeReferenceSystem;
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location

Center Center Center Center

Gets the center of the GeoboundingBox.

public : BasicGeoposition Center { get; }
public BasicGeoposition Center { get; }
Public ReadOnly Property Center As BasicGeoposition
var basicGeoposition = geoboundingBox.center;
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location

GeoshapeType GeoshapeType GeoshapeType GeoshapeType

Gets the type of geographic shape represented by the GeoboundingBox.

public : GeoshapeType GeoshapeType { get; }
public GeoshapeType GeoshapeType { get; }
Public ReadOnly Property GeoshapeType As GeoshapeType
var geoshapeType = geoboundingBox.geoshapeType;
Value
GeoshapeType GeoshapeType GeoshapeType GeoshapeType

The type of geographic shape represented by the GeoboundingBox.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location

MaxAltitude MaxAltitude MaxAltitude MaxAltitude

Gets the altitude of the highest corner of the GeoboundingBox.

public : double MaxAltitude { get; }
public double MaxAltitude { get; }
Public ReadOnly Property MaxAltitude As double
var double = geoboundingBox.maxAltitude;
Value
double double double double

The altitude of the highest corner of the GeoboundingBox.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location

MinAltitude MinAltitude MinAltitude MinAltitude

Gets the altitude of the lowest corner of the GeoboundingBox.

public : double MinAltitude { get; }
public double MinAltitude { get; }
Public ReadOnly Property MinAltitude As double
var double = geoboundingBox.minAltitude;
Value
double double double double

The altitude of the lowest corner of the GeoboundingBox.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location

NorthwestCorner NorthwestCorner NorthwestCorner NorthwestCorner

Gets the northwest corner of the GeoboundingBox.

public : BasicGeoposition NorthwestCorner { get; }
public BasicGeoposition NorthwestCorner { get; }
Public ReadOnly Property NorthwestCorner As BasicGeoposition
var basicGeoposition = geoboundingBox.northwestCorner;
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location

SoutheastCorner SoutheastCorner SoutheastCorner SoutheastCorner

Gets the southeast corner of the GeoboundingBox.

public : BasicGeoposition SoutheastCorner { get; }
public BasicGeoposition SoutheastCorner { get; }
Public ReadOnly Property SoutheastCorner As BasicGeoposition
var basicGeoposition = geoboundingBox.southeastCorner;
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location

SpatialReferenceId SpatialReferenceId SpatialReferenceId SpatialReferenceId

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

public : unsigned int SpatialReferenceId { get; }
public uint SpatialReferenceId { get; }
Public ReadOnly Property SpatialReferenceId As uint
var uint = geoboundingBox.spatialReferenceId;
Value
unsigned int uint uint uint

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

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location

Methods

TryCompute(IIterable) TryCompute(IIterable) TryCompute(IIterable) TryCompute(IIterable)

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

public : static GeoboundingBox TryCompute(IIterable<BasicGeoposition> positions)
public static GeoboundingBox TryCompute(IEnumerable<BasicGeoposition> positions)
Public Static Function TryCompute(positions As IEnumerable<BasicGeoposition>) As GeoboundingBox
var geoboundingBox = Windows.Devices.Geolocation.GeoboundingBox.tryCompute(positions);
Parameters
positions
IIterable<BasicGeoposition> IEnumerable<BasicGeoposition> IEnumerable<BasicGeoposition> IEnumerable<BasicGeoposition>

A collection of geographic positions to include inside the GeoboundingBox.

Returns

The calculated rectangle that contains the specified set of geographic positions.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location
See Also

TryCompute(IIterable, AltitudeReferenceSystem) TryCompute(IIterable, AltitudeReferenceSystem) TryCompute(IIterable, AltitudeReferenceSystem) TryCompute(IIterable, AltitudeReferenceSystem)

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

public : static GeoboundingBox TryCompute(IIterable<BasicGeoposition> positions, AltitudeReferenceSystem altitudeRefSystem)
public static GeoboundingBox TryCompute(IEnumerable<BasicGeoposition> positions, AltitudeReferenceSystem altitudeRefSystem)
Public Static Function TryCompute(positions As IEnumerable<BasicGeoposition>, altitudeRefSystem As AltitudeReferenceSystem) As GeoboundingBox
var geoboundingBox = Windows.Devices.Geolocation.GeoboundingBox.tryCompute(positions, altitudeRefSystem);
Parameters
positions
IIterable<BasicGeoposition> IEnumerable<BasicGeoposition> IEnumerable<BasicGeoposition> IEnumerable<BasicGeoposition>

A collection of geographic positions to include inside the GeoboundingBox.

altitudeRefSystem
AltitudeReferenceSystem AltitudeReferenceSystem AltitudeReferenceSystem AltitudeReferenceSystem

The altitude reference system to use for the GeoboundingBox. For more info, see the AltitudeReferenceSystem property.

Returns

The calculated rectangle that contains the specified set of geographic positions.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location
See Also

TryCompute(IIterable, AltitudeReferenceSystem, UInt32) TryCompute(IIterable, AltitudeReferenceSystem, UInt32) TryCompute(IIterable, AltitudeReferenceSystem, UInt32) TryCompute(IIterable, 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).

public : static GeoboundingBox TryCompute(IIterable<BasicGeoposition> positions, AltitudeReferenceSystem altitudeRefSystem, unsigned int spatialReferenceId)
public static GeoboundingBox TryCompute(IEnumerable<BasicGeoposition> positions, AltitudeReferenceSystem altitudeRefSystem, UInt32 spatialReferenceId)
Public Static Function TryCompute(positions As IEnumerable<BasicGeoposition>, altitudeRefSystem As AltitudeReferenceSystem, spatialReferenceId As UInt32) As GeoboundingBox
var geoboundingBox = Windows.Devices.Geolocation.GeoboundingBox.tryCompute(positions, altitudeRefSystem, spatialReferenceId);
Parameters
positions
IIterable<BasicGeoposition> IEnumerable<BasicGeoposition> IEnumerable<BasicGeoposition> IEnumerable<BasicGeoposition>

A collection of geographic positions to include inside the GeoboundingBox.

altitudeRefSystem
AltitudeReferenceSystem AltitudeReferenceSystem AltitudeReferenceSystem AltitudeReferenceSystem

The altitude reference system to use for the GeoboundingBox. For more info, see the AltitudeReferenceSystem property.

spatialReferenceId
unsigned int UInt32 UInt32 UInt32

The spatial reference ID (SRID) to use for the GeoboundingBox. For more info, see the SpatialReferenceId property.

Returns

The calculated rectangle that contains the specified set of geographic positions.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location
See Also