Geobounding​Box Geobounding​Box Geobounding​Box Geobounding​Box Class

Definition

Represents a rectangle that defines a geographic area.

public : sealed class GeoboundingBox : IGeoboundingBox, IGeoshapepublic sealed class GeoboundingBox : IGeoboundingBox, IGeoshapePublic NotInheritable Class GeoboundingBox Implements IGeoboundingBox, IGeoshape// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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)// You can use this method in JavaScript.
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.

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)// You can use this method in JavaScript.
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.

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)// You can use this method in JavaScript.
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.

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// You can use this property in JavaScript.

Center Center Center Center

Gets the center of the GeoboundingBox.

public : BasicGeoposition Center { get; }public BasicGeoposition Center { get; }Public ReadOnly Property Center As BasicGeoposition// You can use this property in JavaScript.

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// You can use this property in JavaScript.
Value
GeoshapeType GeoshapeType GeoshapeType GeoshapeType

The type of geographic shape represented by the GeoboundingBox.

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// You can use this property in JavaScript.
Value
double double double double

The altitude of the highest corner of the GeoboundingBox.

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// You can use this property in JavaScript.
Value
double double double double

The altitude of the lowest corner of the GeoboundingBox.

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// You can use this property in JavaScript.

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// You can use this property in JavaScript.

SpatialReferenceId SpatialReferenceId SpatialReferenceId SpatialReferenceId

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

public : unsigned short SpatialReferenceId { get; }public uint SpatialReferenceId { get; }Public ReadOnly Property SpatialReferenceId As uint// You can use this property in JavaScript.
Value
unsigned short uint uint uint

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

Methods

TryCompute(IIterable<BasicGeoposition>) TryCompute(IIterable<BasicGeoposition>) TryCompute(IIterable<BasicGeoposition>) TryCompute(IIterable<BasicGeoposition>)

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// You can use this method in JavaScript.
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.

See Also

TryCompute(IIterable<BasicGeoposition>, AltitudeReferenceSystem) TryCompute(IIterable<BasicGeoposition>, AltitudeReferenceSystem) TryCompute(IIterable<BasicGeoposition>, AltitudeReferenceSystem) TryCompute(IIterable<BasicGeoposition>, 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// You can use this method in JavaScript.
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.

See Also

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

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// You can use this method in JavaScript.
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.

See Also