NiVO / BY TECHNOGISGermany · Indonesia
Geospatial Delivery

Audit KML Altitude Modes Before Reviewing a Drone Survey in 3D

Check absolute, relativeToGround and clampToGround behavior before treating a KML display as evidence about drone survey elevations or terrain clearance.

Audit KML Altitude Modes Before Reviewing a Drone Survey in 3D

Define the role of the KML review copy

A KML feature that appears above the ground in a three-dimensional viewer can invite conclusions that its source data do not support. Before using a NiVO survey review copy, identify whether the file is intended for orientation, communication or a specific checked geospatial task. Preserve the master survey data and the export history. This tutorial examines KML altitude interpretation, not a real mission or a navigation plan. It does not establish flight clearance, certify an elevation model or claim that a particular aircraft uses the viewer's terrain as an operational reference.

Record the file revision, exporter, geometry types and intended viewer. Establish what any height values represent before changing display settings. A source may contain an absolute height, a local project elevation, a relative offset or a value with incomplete metadata. Those possibilities cannot be resolved by choosing whichever display looks most convincing. Keep the original file unchanged and use a separately identified working copy for inspection. If the source height definition is uncertain, retain that limitation while investigating it rather than allowing an attractive three-dimensional scene to conceal an unsupported reference assumption.

Read the altitude mode attached to the geometry

Google's KML documentation distinguishes clampToGround, relativeToGround and absolute altitude interpretation. Clamping ignores the supplied height for placement and uses the ground surface. Relative-to-ground placement measures the offset from the ground below the coordinate. Absolute placement uses the format's sea-level reference independently of the terrain beneath the feature. A missing mode defaults to clamping in the documented behavior. These are rendering semantics to inspect with the actual geometry and viewer, not instructions to relabel an unknown survey height until the feature becomes visible.

Check where the mode is defined instead of searching for one string and applying it to the whole document. A file can contain different geometries and views with their own altitude-related properties. Extensions can also add behavior that another viewer may not support. The KML reference describes coordinate tuples and geometry-specific settings, while the OGC specification defines the standard model. Identify the actual element being reviewed. A camera viewpoint, an extruded feature and a point placement are different objects, even when the application presents their height controls in a similar-looking interface.

NiVO VTOL V2 with a white fixed wing and four vertical-lift rotors
NiVO VTOL V2 with a white fixed wing and four vertical-lift rotors.Source: NiVO / TechnoGIS catalogue materials supplied by the site owner · Catalogue photo
Product context only; this photograph does not depict the constructed examples in this article.

Inventory point modes without changing the file

For a manageable, trusted local KML file, the Python example below lists the altitudeMode text for each Point geometry in the standard namespace. Replace review.kml with the identified working copy. It uses namespaced XML searches and reports an omitted mode explicitly rather than inventing a measured height. The example is deliberately limited to Point geometries. It does not audit LineStrings, polygons, overlays, model placements or extension-specific tracks, and it does not establish whether the document is fully schema-valid or whether every viewer will render it identically.

Compare the listing with the geometry inventory and the export settings. If a relevant feature is not a Point, inspect its documented altitude behavior separately. Preserve source coordinates and mode values together in the review notes. An empty listing can indicate that the file contains other geometry types or uses a different structure; it is not proof that the export has no altitude-related content. The code is a documented inspection procedure only. No real KML file, viewer session, coordinate or successful feature count was produced during article preparation.

import xml.etree.ElementTree as ET

uri = "http://www.opengis.net/kml/2.2"
ns = {"k": uri}
root = ET.parse("review.kml").getroot()
points = root.findall(".//k:Point", ns)
tag = "k:altitudeMode"
for number, point in enumerate(points, 1):
    mode = point.findtext(tag, None, ns)
    if mode is None:
        mode = "omitted: default clamping"
    print(number, mode)

Separate viewer ground from surveyed terrain

A relative-to-ground offset depends on the ground surface used by the receiving viewer. That surface is separate evidence from a supplied survey DTM, DSM or control record. Do not assume the viewer has adopted the project's accepted terrain merely because a survey overlay is visible in the same scene. Record the terrain source and relevant display settings when the relationship matters to the review. A feature that follows the background surface can be useful for orientation while still providing no independent measurement of its separation from a roof, tree canopy or local terrain break.

Inspect a few representative locations whose source meaning is understood, including areas where the background and project terrain differ visibly or conceptually. Keep the comparison descriptive unless the references and data support a quantitative check. Clamping can hide a meaningful supplied elevation, while relative placement can add a stored height to a ground surface that the exporter did not intend. A visible vertical discrepancy is a reason to review the reference chain. It is not by itself evidence that the GNSS solution, point cloud or aircraft altitude measurement is wrong.

Preserve height definitions through export

KML coordinate order and altitude semantics need to agree with the actual source representation. Check the source horizontal and vertical definitions, units and any transformation performed before export. A familiar height unit does not make ellipsoidal and sea-level-related values interchangeable. Keep the source definition and the selected output mode in the export record, and use an appropriate documented operation where a reference conversion is required. Changing an altitudeMode tag alters interpretation; it is not a geodetic transformation that can supply missing reference information or correct an unknown vertical offset.

Review any additional geometry-specific display settings that affect the question, such as extrusion or offset extensions, using the actual viewer documentation. Preserve a separate copy when testing a display change and record exactly what changed. Compare the resulting view with the source metadata and intended use. Do not repeatedly adjust a height until a feature appears to touch the background and then call that alignment a survey check. The goal is a reproducible explanation of placement, including the viewer assumptions, rather than a persuasive image that another recipient cannot interpret or reproduce.

Deliver the display assumptions with the review file

Provide a short opening guide naming the file revision, intended viewer, geometry scope, height definition, altitude modes and relevant terrain/display assumptions. Keep links to the master analytical data and quality evidence. Include a checked example from the real delivery when available and explain what that example verifies. If a mode was deliberately chosen for communication convenience, state that purpose. A recipient should be able to distinguish a feature draped for orientation from a feature whose stored height supports a specific technical comparison, without relying on the original presenter to explain every visible relationship.

For a NiVO handover, the accepted conclusion should remain bounded: the KML copy uses documented placement semantics that are consistent with its stated review purpose. It does not replace a surveyed height assessment, obstacle analysis or an approved operational clearance procedure. Keep those decisions with the appropriate data and responsible workflow. Auditing altitude modes before sharing a three-dimensional view protects the value of that view by making its assumptions visible in the accompanying record, so a rendered position becomes an understandable representation instead of an unsupported claim about the measured world.

Technical references

  1. Google KML: altitude mode behavior ↗
  2. Google KML reference: geometry, coordinates and altitude properties ↗
  3. OGC KML 2.3 standard ↗
  4. Python: namespaced ElementTree searches ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team