Sdílet prostřednictvím


GeoboundingBox.TryCompute Method

Definition

Overloads

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

TryCompute(IIterable<BasicGeoposition>)

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

public:
 static GeoboundingBox ^ TryCompute(IIterable<BasicGeoposition> ^ positions);
/// [Windows.Foundation.Metadata.Overload("TryCompute")]
 static GeoboundingBox TryCompute(IIterable<BasicGeoposition> const& positions);
[Windows.Foundation.Metadata.Overload("TryCompute")]
public static GeoboundingBox TryCompute(IEnumerable<BasicGeoposition> positions);
function tryCompute(positions)
Public Shared Function TryCompute (positions As IEnumerable(Of BasicGeoposition)) As GeoboundingBox

Parameters

positions

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

Attributes

Windows requirements

App capabilities
location

See also

Applies to

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);
/// [Windows.Foundation.Metadata.Overload("TryComputeWithAltitudeReference")]
 static GeoboundingBox TryCompute(IIterable<BasicGeoposition> const& positions, AltitudeReferenceSystem const& altitudeRefSystem);
[Windows.Foundation.Metadata.Overload("TryComputeWithAltitudeReference")]
public static GeoboundingBox TryCompute(IEnumerable<BasicGeoposition> positions, AltitudeReferenceSystem altitudeRefSystem);
function tryCompute(positions, altitudeRefSystem)
Public Shared Function TryCompute (positions As IEnumerable(Of BasicGeoposition), altitudeRefSystem As AltitudeReferenceSystem) As GeoboundingBox

Parameters

positions

IIterable<BasicGeoposition>

IEnumerable<BasicGeoposition>

A collection of geographic positions to include inside the GeoboundingBox.

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

Attributes

Windows requirements

App capabilities
location

See also

Applies to

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);
/// [Windows.Foundation.Metadata.Overload("TryComputeWithAltitudeReferenceAndSpatialReference")]
 static GeoboundingBox TryCompute(IIterable<BasicGeoposition> const& positions, AltitudeReferenceSystem const& altitudeRefSystem, uint32_t const& spatialReferenceId);
[Windows.Foundation.Metadata.Overload("TryComputeWithAltitudeReferenceAndSpatialReference")]
public static GeoboundingBox TryCompute(IEnumerable<BasicGeoposition> positions, AltitudeReferenceSystem altitudeRefSystem, uint spatialReferenceId);
function tryCompute(positions, altitudeRefSystem, spatialReferenceId)
Public Shared Function TryCompute (positions As IEnumerable(Of BasicGeoposition), altitudeRefSystem As AltitudeReferenceSystem, spatialReferenceId As UInteger) As GeoboundingBox

Parameters

positions

IIterable<BasicGeoposition>

IEnumerable<BasicGeoposition>

A collection of geographic positions to include inside the GeoboundingBox.

altitudeRefSystem
AltitudeReferenceSystem

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

spatialReferenceId
UInt32

unsigned int

uint32_t

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.

Attributes

Windows requirements

App capabilities
location

See also

Applies to