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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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 |
---|---|---|
System.Double | x1 | First coordinate along x-axis |
System.Double | y1 | First coordinate along y-axis |
System.Double | x2 | Second coordinate along x-axis |
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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 |
---|---|---|
System.Double | x1 | First coordinate along x-axis |
System.Double | y1 | First coordinate along y-axis |
System.Double | x2 | Second coordinate along x-axis |
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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 |
---|---|---|
System.Double | xMin | The minimal x-value. |
System.Double | yMin | The minimal y-value. |
System.Double | xMax | The maximum x-value. |
System.Double | yMax | The maximum y-value. |
System.Double | zMin | The minimal z-value. |
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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 |
---|---|---|
System.Double | xMin | The minimal x-value. |
System.Double | yMin | The minimal y-value. |
System.Double | xMax | The maximum x-value. |
System.Double | yMax | The maximum y-value. |
System.Double | zMin | The minimal z-value. |
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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. |
System.Double | width | The width of the envelope. |
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.1 - 200.6 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 200.6 |
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. |
System.Double | width | The width of the envelope. |
System.Double | height | The height of the envelope. |
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.1 - 200.6 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 200.6 |