NiVO / BY TECHNOGISGermany · Indonesia
Feature identity interpretation

GeoJSON Feature IDs: Preserve Member Paths Before Joining Drone Inventories

Distinguish a GeoJSON Feature id from property fields and imported row identifiers before matching records across drone-inventory revisions.

GeoJSON Feature IDs: Preserve Member Paths Before Joining Drone Inventories

Identify the key that the exchange is intended to preserve

Two inventory files can display similar identifier columns while exposing different kinds of identity. A GeoJSON Feature may have a top-level id member, an attribute inside properties named id, and a row identifier created by the receiving software. Those locations should not be treated as interchangeable merely because a table view gives them familiar labels. In a NiVO mapping handoff, first establish the key that is intended to link records across revisions. This tutorial inspects constructed unlocated Features and outlines a read-only review. It makes no claim about an actual NiVO export or asset register.

Preserve the accepted original and record the inventory revision, selected population and authoritative identifier policy. Determine whether the key identifies a physical asset, an observation, a geometry version or a row in a particular export. An asset can have multiple observations, so a repeated asset reference is not automatically a duplicate observation. Conversely, a distinct row number does not prove that two records represent different assets. Establish the intended relationship before applying uniqueness rules or merging tables, and retain the source evidence used to resolve ambiguous matches.

Distinguish Feature members from properties

RFC 7946 describes a Feature object with geometry and properties members. When a Feature has a commonly used identifier, the specification recommends including it as the Feature id, whose value is a JSON string or number. A properties object is a separate member location. An attribute named id inside it is therefore not the same JSON member as the Feature id. Read the full path when documenting a key, such as Feature.id or Feature.properties.asset_ref, rather than relying on a shortened column heading in one application.

This structural distinction does not supply a complete identity policy for a project. Decide which member is authoritative, what its values mean and how revisions retain or replace them. Keep the original JSON type in the review record. A receiver may expose the information through its own field and feature abstractions, so document that mapping explicitly. If a table offers both an internal feature number and an ordinary identifier attribute, identify their sources before using either one to connect inspection notes. A readable display is only the start of the evidence.

Restored NiVO VTOL V3 product image from the supplied brochure
Restored NiVO VTOL V3 product image from the supplied brochure.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.

Trace two constructed Features with different typed IDs

The teaching FeatureCollection below contains a string-valued Feature id and a number-valued Feature id that share the visible digits seventeen. Their properties also contain distinct fields named id. The geometry values are null to mark the Features as unlocated, a representation permitted by RFC 7946. There are no fabricated coordinates or project assets here. The example is intended to make member paths and value types visible, not to recommend mixing identifier types in a production register or to claim that a particular application will match the two values.

Inspect each Feature id alongside its properties without collapsing them into one dictionary key or converting both to text during the first review. Whether two values should identify the same project entity requires an agreed contract, not merely a formatting decision. For an actual exchange, compare the authoritative source reference with the delivered member and the receiver representation. Record missing and duplicate identities under the chosen policy. Parsing this JSON establishes that its syntax is readable; it does not validate an actual inventory, a receiving driver or a completed join.

{
  "type": "FeatureCollection",
  "features": [
    {"type": "Feature", "id": "17", "geometry": null,
     "properties": {"id": "note-A", "asset_ref": "teaching-A"}},
    {"type": "Feature", "id": 17, "geometry": null,
     "properties": {"id": "note-B", "asset_ref": "teaching-B"}}
  ]
}

Inspect the original member paths before importing

The Python json module documents decoding JSON objects and values into Python representations. The read-only recipe below reports the presence, decoded type and representation of each top-level Feature id, together with the properties member. The teaching filename is not supplied as an actual project input, and no Python inventory run is claimed. The presence check distinguishes a missing id member from one that exists. Review supported identifier types and any invalid values separately; this small recipe is an inspection aid rather than a complete GeoJSON or project-schema validator.

Use a suitably sized accepted local file and record the exact revision inspected. This recipe expects a FeatureCollection containing a features array; it should not be applied unchanged to a single Feature or a text-sequence export. Preserve all warnings and exceptions. A complete JSON parse does not establish that object member names are unambiguous under every decoder or that the document meets the inventory contract. For a real acceptance review, inspect the required structure, geometry policy, attribute meanings and identity rules with appropriate tools, while keeping the original file unchanged.

# Teaching filename; this recipe expects a FeatureCollection.
import json

with open("accepted-inventory.geojson", encoding="utf-8") as stream:
    collection = json.load(stream)
for feature in collection["features"]:
    present = "id" in feature
    value = feature.get("id")
    print(present, type(value).__name__, repr(value),
          feature.get("properties"))

Record driver mapping and export decisions explicitly

GDAL documents GeoJSON export options for selecting the source field written as a Feature id, choosing its type and generating feature identifiers. These are named ID_FIELD, ID_TYPE and ID_GENERATE in the driver documentation. Record the actual supported options and tool version used by the producing workflow rather than assuming the output member came from a particular attribute. A generated identifier can be useful within an export, but its presence alone supplies no evidence that it is the persistent project key across another selection or revision.

For an actual round trip, compare the accepted key in the source, the delivered Feature member and the representation exposed by the receiving application. Include cases relevant to the project, such as missing values, text keys and multiple observations associated with one asset. If conversion is necessary, document the mapping and retain the original values in the review evidence. Do not silently replace an authoritative identifier with a convenient sequence merely to satisfy a uniqueness check. Retain unresolved associations and describe their scope until the producer can provide the evidence needed to resolve them.

Deliver an identity contract with the matching evidence

A useful identity record names the authoritative member path, expected value type, uniqueness scope and revision policy. It explains how source keys correspond to delivered Feature ids and any property references used for matching. Keep the selected inventory revision and receiving-tool findings with that record. Another analyst should be able to locate an entry in both packages without depending on their current sort order. When a matching operation produces unmatched or repeated records, preserve those results and investigate the relationship rather than forcing a one-to-one assumption onto a different data model.

For NiVO inventory discussions, this turns a vague complaint about changed IDs into a reproducible review of member paths, types and provenance. It complements coordinate, record-framing and field-type checks without claiming that correct identity proves a correct survey. Geometry, observation quality and asset interpretation still require their own evidence. Keep the accepted original, the intended key and the actual receiver behavior together. The resulting handoff lets recipients distinguish an internal row number from a persistent reference and understand exactly what was checked before using the inventory in another workflow.

Technical references

  1. RFC 7946 — Feature objects, identifiers and unlocated geometry ↗
  2. GDAL GeoJSON — Feature mapping and ID export options ↗
  3. Python json — JSON decoding and value representations ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team