Feature Z

Since version: 1.5

In the Feature Z profile, expressions can be written to calculate z values for features in a 3D scene or to define the draw order for sorting features in a 2D map view. This is useful in datasets where z information is stored in an attribute instead of the feature's geometry. You can use this profile to return the attribute in lieu of a missing z value. Expressions in this profile must return a Number representing the Z coordinate of the geometry.

Context

This profile was created for use in the following products:

Spatial reference

The spatial reference of the map in which the expression executes determines the execution context's spatial reference.

Time zone

The time zone of the map in which the expression executes determines the execution context's default time zone.

Profile Variables

Variable NameTypeDescription
$featureFeatureThe feature requiring a Z value.

Function bundles

Core | Geometry

Return types

Number

Example

The following example gets the geometry of the feature, and adds the value of the HEIGHT attribute, to create an adjusted height value.

1
2
var adjustedHeight = Geometry($feature).z + $feature.HEIGHT;
return adjustedHeight;

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close