Shape.xid.xml 2.32 KB
<?xml version="1.0" encoding="UTF-8" ?>

<specification xmlns="https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd"
               xmlns:xid="https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd"
    identity="Shape.xid.xml">
    <title>Shape Definitions</title>

  <import ref="https://xid.location.studio/Tensor/V1.0.0/Definitions.xid.xml" local="Definitions.xid.xml" />

  <namespace name="GeoSpatial">
        <using namespace="Tensor"/>

        <!--
         *******************************************************
         Shape Datatypes
         *******************************************************
         -->
        <enum name="ShapeType" type="Tensor.int8" default="undefined">
            <!-- we can reduce this set -->
            <literal name="undefined" value="0"/>
            <literal name="Covariance" value="1"/>

            <literal name="Point2D" value="20"/>
            <literal name="Circle" value="21"/>
            <literal name="Ellipse" value="22"/>
            <literal name="Arc" value="23"/>
            <literal name="ArcBand" value="24"/>
            <literal name="Polygon" value="25"/>

            <literal name="Point3D" value="30"/>
            <literal name="Spheroid" value="31"/>
            <literal name="Ellipsoid" value="32"/>
            <literal name="Arc3D" value="33"/>
            <literal name="ArcBand3D" value="34"/>
            <literal name="Polygon3D" value="35"/>
        </enum>

        <array name="ShapeTypeArray" type="ShapeType"/>

        <struct name="Shape">
            <comment>
                Shapes are used to describe various kinds of geometry.\n
                When used in an Estimate result the Shape represents the
                uncertainty area (2D) or uncertainty volume (3D) at the
                confidence in the Estimate.
            </comment>
            <elem name="type" type="ShapeType" multiplicity="1" rttd="true">
                <comment>This is the one thing all shapes have in common</comment>
            </elem>
        </struct>      
    </namespace>
</specification>