Skip to content

spatial is parsed, but missing type and dropped with toGeoJSON #130

@organize

Description

@organize
<event version="2.0" uid="bdd4c8fa-ecc5-481e-94c6-3424b232b004" type="a-f-A-C" time="2026-05-21T08:28:28.926Z"
    start="2026-05-21T08:28:28.926Z" stale="2026-05-21T08:28:32.426Z" how="m-g" access="Undefined">
    <point lat="63.0525" lon="22.7323" hae="-0.052372" ce="9999999.0" le="9999999.0" />
    <detail>
        <track course="238" slope="0.0" speed="-0" />
        <sensor elevation="-71" vfov="60" north="0.0" roll="0.0" range="1" azimuth="140" fov="60" type="r-e"
            version="0.6" />
        <spatial>
            <attitude roll="-0.210788" pitch="-0.0474837" yaw="238" />
            <spin roll="0.0" pitch="0.0" yaw="0.0" />
        </spatial>
    </detail>
</event>

CoTParser.from_xml results in:

... {
 ... {
   spatial: {
    attitude: { _attributes: { ... },
    spin: { _attributes: { ... }
  },
 }
}

but theCoT type is missing this field. additionally, it gets dropped during to_geojson.

MITRE XSD: https://github.com/TAK-Product-Center/atak-civ/blob/main/takcot/mitre/CoT%20Spatial%20Schema%20%20(PUBLIC%20RELEASE).xsd

Metadata

Metadata

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions