Property Z
Z
Gets the z-value for the map point.
Declaration
public double Z { get; }
Property Value
Type | Description |
---|---|
System.Double | The z-value for the map point. |
Remarks
Geometries can have z-values, indicating values along the z-axis, which is perpendicular to both the x-axis and y-axis. Z-values indicate height above or depth below a surface, or an absolute elevation. For example, z-values are used to draw the locations of geometries in a scene view. Note that geometries are not considered true 3D shapes and are draped onto surfaces in the view, or in some cases, drawn in a single plane by using z-values. Z-values are stored on MapPoint and Envelope. Since Multipoint, Polyline, and Polygon are created from a collection of MapPoint, all types of geometry can have z-values.
Whether or not a geometry has z-values is determined when the geometry is created; if you
use a method that has a z-value parameter, the new geometry has z-values
(HasZ is true
). If you create geometries using
constructors that take z-value parameters, or if you pass into the constructor points or
segments that have z-values, the new geometry has z-values. A Geometry
with z-values is sometimes known as a z-aware geometry.
It may be that not all vertices in your geometry have a z-value defined. System.Double.NaN is a valid z-value used to indicate an unknown z-value. However, the default z-value is 0. When you get z-values from a geometry that does not have z-values, the default is 0. Check the HasZ to determine whether a z-value of 0 means that there are no z-values in the geometry or that the z-value in the geometry's coordinates really is 0.
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 |