NiVO / BY TECHNOGISGermany · Indonesia
Inventory record retention

GeoJSON Null Geometry: Keep Unlocated Records in a Drone Inventory Review

Distinguish a GeoJSON Feature with geometry:null from a missing member, and reconcile record counts without inventing positions or dropping attributes.

GeoJSON Null Geometry: Keep Unlocated Records in a Drone Inventory Review

Identify the population behind the count

A drone inventory table and its map can appear to disagree even when both views refer to the same exchange. The table may contain a Feature whose geometry is explicitly null, while a spatial view shows only records it can draw. Before describing that difference as lost data, identify the population each count represents. This tutorial reviews GeoJSON Feature records in a NiVO handoff context. It uses a constructed collection and does not inspect a project register, establish an actual asset location or claim how a particular NiVO application exports unlocated items. Preserve the original exchange and the producer description before changing any record.

Ask whether the delivery represents assets, observations, locations or a selected subset of those concepts. An observation can retain useful attributes while its location remains unresolved, but the meaning of that state must come from the actual project. Record the intended inclusion rule and any selection made by the receiving software. A visible map symbol count is not automatically a complete inventory count. Conversely, a complete table does not demonstrate that every record has usable spatial content. Keep those questions separate so a review can distinguish record retention from location availability and the evidence required for the intended analytical task.

Read explicit null and absent members differently

RFC 7946 requires a Feature geometry member and allows its value to be a Geometry object or JSON null for an unlocated Feature. It also requires a properties member, whose value may be an object or null. Therefore an explicit geometry:null is different from omitting geometry entirely. Retain that distinction in an inspection rather than using a convenience lookup that silently treats both situations as the same state. A missing required member is a structural finding; an explicitly unlocated Feature raises a different question about the delivery meaning and whether the project permits that state.

A geometry object being present is also different from proving that it supplies a usable location. The RFC allows processors to interpret Geometry objects with empty coordinate arrays as null objects. GeometryCollections and other geometry structures require their own appropriate review. The narrow code below therefore reports geometryObjectRecords, not a count named valid locations. It does not validate coordinate structure, spatial reference suitability or geometric correctness. Use precise labels in the resulting table so a colleague does not mistake a JSON object-presence check for a completed spatial validation or a guarantee that every object will appear in a particular receiving map.

NiVO VTOL V7 with a white fuselage, lift rotors, and yellow wing tips
NiVO VTOL V7 with a white fuselage, lift rotors, and yellow wing tips.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.

Inspect a constructed collection without editing it

The fictional collection below contains one unlocated Feature and one Feature with a Point object. The coordinate values are constructed solely to make the representation visible; they are not a NiVO observation or an accepted asset position. Both records retain their own identifiers and properties. A record-preservation review should account for both before any spatial operation selects a subset. Do not substitute a coordinate pair for the null value merely to make every row drawable. That would create new spatial content without the producer evidence needed to support it and obscure the original reason the location was unresolved.

Keep the accepted Feature identifiers and the meaning of any status attributes with the comparison. The example status labels are invented teaching vocabulary, not a required GeoJSON vocabulary or a NiVO schema. In a real exchange, ask the responsible producer how an unlocated record should be interpreted and which records the recipient is expected to retain. The null value alone does not explain whether a position is unknown, intentionally withheld or awaiting another process. Preserve the observed representation and the project explanation separately rather than guessing a cause from the appearance of a blank geometry cell.

{
  "type": "FeatureCollection",
  "features": [
    {"type": "Feature", "id": "A", "geometry": null,
     "properties": {"review_state": "location unresolved"}},
    {"type": "Feature", "id": "B",
     "geometry": {"type": "Point", "coordinates": [110.25, -7.5]},
     "properties": {"review_state": "constructed location example"}}
  ]
}

Count representation states in a bounded Python check

The Python function accepts an already parsed FeatureCollection object. It checks the selected required members and separates explicit null geometries from geometry objects while retaining their original zero-based record positions. It does not remove Features, modify properties or manufacture coordinates. Those positions are inspection references within this collection, not stable asset identifiers. The check is intentionally narrower than full GeoJSON validation: a dictionary in geometry is reported as an object present, without certifying its geometry type or coordinates. Use a suitable reader and the applicable project requirements for the later spatial assessment.

For the constructed collection, the expected record total is two, with one position in each representation group. Retain that result alongside the original collection instead of exporting only the geometry-bearing subset and describing it as the entire inventory. A missing geometry member causes this narrow check to stop, preserving the structural distinction from explicit null. The published recipe cases also retain null properties and demonstrate that object presence alone does not validate empty geometry content. These are memory-only teaching checks, not an executed import into a project GIS or evidence of how every reader handles the same collection.

def geometry_states(document):
    if not isinstance(document, dict) or document.get("type") != "FeatureCollection":
        raise ValueError("expected a FeatureCollection")
    features = document.get("features")
    if not isinstance(features, list):
        raise ValueError("expected a features array")
    null_records, object_records = [], []
    for number, feature in enumerate(features):
        if not isinstance(feature, dict) or feature.get("type") != "Feature":
            raise ValueError("expected Feature records")
        if "geometry" not in feature or "properties" not in feature:
            raise ValueError("missing a required Feature member")
        if feature["properties"] is not None and not isinstance(feature["properties"], dict):
            raise ValueError("properties must be an object or null")
        geometry = feature["geometry"]
        if geometry is None:
            null_records.append(number)
        elif isinstance(geometry, dict):
            object_records.append(number)
        else:
            raise ValueError("geometry must be an object or null")
    return {"featureRecords": len(features), "nullGeometryRecords": null_records,
            "geometryObjectRecords": object_records}

Reconcile the actual receiving operation and retained attributes

Inspect the actual receiving workflow with the identified input and an explicit inclusion rule. Record whether it preserves unlocated rows, creates a spatial subset or presents a separate attribute-only view. Keep the reader version, selected layer, warnings and observed record counts when you perform that test. No such application execution is claimed in this tutorial. If an operation intentionally excludes records without usable geometry, identify the derivative as that subset and preserve the remaining records through an appropriate documented handoff. A spatial result can be useful without representing every record in the accepted source.

Compare identifiers and relevant properties as well as totals. Equal row counts alone cannot prove that the same observations or attribute meanings survived an exchange. If a correction requires adding or replacing a location, obtain the authoritative source evidence and record the change under a separately identified candidate revision. Retain the received original and repeat the project checks required for the intended use. Avoid filling missing positions from unrelated nearby Features or a convenient map background. A review should explain the accepted record relationship and any unresolved location requirement without turning an absence of geometry into an invented measurement.

Deliver separate findings for records and locations

A clear handoff identifies the collection revision, inclusion rule, Feature record count, observed geometry states and the actual receiving-test scope. Include structural errors and unresolved spatial limitations without merging them into one vague missing-data label. Another analyst should be able to account for every retained record and understand which ones still need location evidence. Keep the original identifiers, properties and producer explanation available. The constructed collection and narrow Python result help demonstrate the distinction, but do not establish inventory completeness, valid geometry or acceptance of any real asset register.

For NiVO mapping and inspection discussions, this provides a practical way to preserve useful inventory information while a location issue is resolved. It complements Feature identity and exchange-format reviews while addressing a different retention question. The photograph supplies product context only and does not depict the constructed records or demonstrate an export capability. Keep record completeness and spatial usability visible as separate review findings. The recipient then has a reproducible account of what the exchange contains, what was actually checked and which additional evidence is still required before its locations can support the intended analytical task.

Technical references

  1. RFC 7946: Geometry, Feature and FeatureCollection definitions ↗
  2. GDAL GeoJSON driver: Feature and layer representation context ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team