Skip to main content

Adjust 3D Z Values

Overview

The Adjust 3D Z Values tool batch modifies vector features that contain Z coordinates. It supports point, line, polygon, and multipart geometries, and can apply sign inversion, unit conversion, fixed offsets, or per-feature offsets from a field to Z values.

This tool is commonly used to correct elevation datums before loading 3D data, standardize units, convert signs between depth and elevation values, and normalize Z values across different data sources.

How It Works

For each vertex with a Z value, the tool calculates the new Z value in the following order:

z=zr×usut+az' = z_r \times \frac{u_s}{u_t} + a

Where zrz_r is the Z value after optional sign inversion, usu_s is the conversion factor from the source unit to meters, utu_t is the conversion factor from the target unit to meters, and aa is the adjustment amount.

If Invert Z sign is enabled:

zr=zz_r = -z

Otherwise:

zr=zz_r = z

Adjustment field takes precedence over Fixed adjustment value. If the specified adjustment field exists, the tool reads the field value of each feature as the adjustment amount. If it is not specified or the field does not exist, the fixed adjustment value is used. The adjustment amount is added after unit conversion and should usually be interpreted in the target unit.

Use Cases

  • 3D visualization correction: raise or lower pipelines, building outlines, or trajectory lines as a whole.
  • Unit standardization: convert Z values from feet, inches, yards, or other units to meters, or to another unit required by the project.
  • Elevation datum conversion: correct Z values with a fixed correction value or a per-feature correction field.
  • Depth/elevation sign conversion: convert depth data that is positive downward to elevation values that are positive upward, or the reverse.

Parameters

ParameterDescriptionNotes
Input vector fileThe 3D feature dataset whose Z values need to be adjusted.Required. At least one geometry should contain Z coordinates.
Invert Z signSpecifies whether to multiply Z values by -1 before other calculations.Optional. Default: False.
Fixed adjustment valueA fixed Z offset applied to all features.Required. Default: 0.0. Used only when no valid adjustment field is used.
Adjustment fieldReads per-feature Z offsets from an attribute field.Optional. Takes precedence over the fixed adjustment value when the field exists.
Source unitThe unit of the Z values in the input geometry.Required. Default: meter.
Target unitThe unit of the Z values in the output geometry.Required. Default: meter.
Output vector fileThe adjusted 3D feature dataset.Required. Input attributes are preserved.

Supported units are listed below:

Parameter valueUnitConversion factor to meters
millimeterMillimeter0.001
centimeterCentimeter0.01
meterMeter1.0
inchInch0.0254
footFoot0.3048
yardYard0.9144
fathomFathom1.8288

Output

The output is a new vector feature dataset. Output geometries keep the original X and Y coordinates and update the Z coordinates of vertices that have Z values. Attribute fields remain unchanged. If the input geometry contains M values, the current implementation preserves them where possible.

Steps

  1. Start the tool: Open Geoprocessing Toolbox > Vector > Feature processing > Build, then start the Adjust 3D Z Values tool pane.
  2. Set the input: Select the Input vector file that contains Z coordinates.
  3. Choose sign handling: To switch between elevation and depth directions, enable Invert Z sign.
  4. Set the adjustment amount: If all features use the same offset, enter a Fixed adjustment value. If each feature uses a different offset, select an Adjustment field.
  5. Set unit conversion: Select the Source unit and Target unit, and make sure the adjustment value uses the target unit.
  6. Configure the output: Set the path and name of the Output vector file.
  7. Run and check the result: Click Run. After the tool finishes, check the Z value range, 3D display effect, and attribute fields.

Notes

  • Input features must contain Z coordinates. If none of the geometries contain Z values, the tool reports that the input data does not contain Z values.
  • The adjustment field should be numeric. Null values are treated as 0.0.
  • The fixed adjustment value or field-based adjustment amount is added after unit conversion, so prepare it in the target unit when possible.
  • A geographic coordinate system only affects the meaning of X and Y coordinates. Z values are still handled by elevation or depth units.
  • Before processing, back up the original 3D features and validate the sign, unit, and offset direction with a small sample.