Constructor Envelope
Envelope(MapPoint, MapPoint)
Initializes a new instance of the Envelope class from given diagonal corner points.
Declaration
public Envelope(MapPoint point1, MapPoint point2)
Parameters
Type | Name | Description |
---|---|---|
MapPoint | point1 | First corner |
MapPoint | point2 | Second corner |
Remarks
The SpatialReference of the given points must be the same. The spatial reference of the result Envelope will come from the points. Resulting envelope will span the area between two diagonal corner points, determined by their min and max coordinates.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
Envelope(Double, Double, Double, Double)
Initializes a new instance of the Envelope class from given diagonal corner coordinates.
Declaration
public Envelope(double x1, double y1, double x2, double y2)
Parameters
Type | Name | Description |
---|---|---|
Double | x1 | First coordinate along x-axis |
Double | y1 | First coordinate along y-axis |
Double | x2 | Second coordinate along x-axis |
Double | y2 | Second coordinate along y-axis |
Remarks
Resulting envelope will span the area between two diagonal corner coordinates,
determined by the min and max values for each axis.
The SpatialReference of the new envelope is initialized to null
.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
Envelope(Double, Double, Double, Double, SpatialReference)
Initializes a new instance of the Envelope class from given diagonal corner coordinates in the given SpatialReference.
Declaration
public Envelope(double x1, double y1, double x2, double y2, SpatialReference spatialReference)
Parameters
Type | Name | Description |
---|---|---|
Double | x1 | First coordinate along x-axis |
Double | y1 | First coordinate along y-axis |
Double | x2 | Second coordinate along x-axis |
Double | y2 | Second coordinate along y-axis |
SpatialReference | spatialReference | Spatial reference in which coordinates are defined. |
Remarks
Resulting envelope will span the area between two diagonal corner coordinates, determined by the min and max values for each axis.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
Envelope(Double, Double, Double, Double, Double, Double)
Initializes a new instance of the Envelope class based on the x, y, and z values.
Declaration
public Envelope(double xMin, double yMin, double xMax, double yMax, double zMin, double zMax)
Parameters
Type | Name | Description |
---|---|---|
Double | xMin | The minimal x-value. |
Double | yMin | The minimal y-value. |
Double | xMax | The maximum x-value. |
Double | yMax | The maximum y-value. |
Double | zMin | The minimal z-value. |
Double | zMax | The maximum z-value. |
Remarks
If the values for min parameters are bigger than corresponding max parameters, then they are re-ordered.
The resulting envelope always has min less than or equal to max.
Resulting envelope will span the volume between two diagonal corner points.
The SpatialReference of the new envelope is initialized to null
.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Envelope(Double, Double, Double, Double, Double, Double, SpatialReference)
Initializes a new instance of the Envelope class based on the x, y, and z values in the given SpatialReference.
Declaration
public Envelope(double xMin, double yMin, double xMax, double yMax, double zMin, double zMax, SpatialReference spatialReference)
Parameters
Type | Name | Description |
---|---|---|
Double | xMin | The minimal x-value. |
Double | yMin | The minimal y-value. |
Double | xMax | The maximum x-value. |
Double | yMax | The maximum y-value. |
Double | zMin | The minimal z-value. |
Double | zMax | The maximum z-value. |
SpatialReference | spatialReference | The spatial reference for the envelope. |
Remarks
If the values for min parameters are bigger than corresponding max parameters, then they are re-ordered. The resulting envelope always has min less than or equal to max. Resulting envelope will span the volume between two diagonal corner points.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
Envelope(MapPoint, Double, Double)
Initializes a new instance of the Envelope class from a center point, with a defined width and height.
Declaration
public Envelope(MapPoint center, double width, double height)
Parameters
Type | Name | Description |
---|---|---|
MapPoint | center | The center point for the envelope. |
Double | width | The width of the envelope. |
Double | height | The height of the envelope. |
Remarks
The SpatialReference of the resulting envelope comes from the
center
point. This spatial reference also determines
the unit of measure for the specified width
and height
values
(see Unit).
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 100.15 |
Envelope(MapPoint, Double, Double, Double)
Initializes a new instance of the Envelope class from a center point, with a defined width, height, and depth.
Declaration
public Envelope(MapPoint center, double width, double height, double depth)
Parameters
Type | Name | Description |
---|---|---|
MapPoint | center | The center point for the envelope. |
Double | width | The width of the envelope. |
Double | height | The height of the envelope. |
Double | depth | The depth of the envelope. |
Remarks
The SpatialReference of the resulting envelope comes from the
center
point. This spatial reference also determines the unit of measure
for the specified width
and height
values
(see Unit).
The depth
parameter value is assumed to be in meters.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 100.15 |