Tools that honor the Output has Z Values environment will control whether the output geodataset will store z-values.
Usage notes
- As each feature is written to the output feature class, each vertex that does not already have a z-value will be assigned the value in the Default Output Z Value environment. If the Default Output Z Value environment is not set, then a value of 0 (zero) will be set.
Dialog syntax
- Same As Input—If the input has z-values, then the output will have z-values. If it does not have z-values, then the output will not have z-values. This is the default.
- Enabled—The output will have z-values.
- Disabled—The output will not have z-values.
Scripting syntax
arcpy.env.outputZFlag = output_z_flag
output_z_flag | Explanation |
---|---|
Same As Input | Same as the input: if input has z-values, then the output will have z-values. If does not have z-values, then the output will not have z-values. |
Enabled | Output features will have z-values. |
Disabled | Output features will not have z-values. |
Script example
import arcpy
# Set the outputZFlag environment to Enabled
arcpy.env.outputZFlag = "Enabled"