Skip to content

Getting Started with AMDB ​

SimVector AMDB data comes in two forms, each intended for a different kind of project and provided on separate terms:

  • AMXM XML files are primarily for inclusion in flight simulation addons.
  • AMDB vector tiles are primarily for display in web applications.

Pick the path that matches what you are building. If you have not used AMXM before, the file sections explain how to read it, and they are useful background for tile attributes too.

Check your terms

The file and tile products are provided on different terms, including for redistribution. Review the licensing summary before you build on either one.

Prerequisites ​

  • For tiles: a SimVector API Key (SimVector Console, Community Settings), an active paid SimVector Community Subscription, and a vector tile client such as MapLibre GL JS. See the Map Tiles Quick Start for authentication and the protocol handler.
  • For XML files: a commercial agreement with SimVector that covers your intended use, including any redistribution inside your addon.

1. Request the data (flight simulation addons) ​

AMXM XML files are provided on request under a commercial agreement. Contact SimVector with the airports and the intended use, for example the addon and how you will distribute it.

Files are delivered per airport, identified by ICAO code (for example LFBO). Each file is a single amxm:AerodromeMappingDatabase document that you can validate against the public schema.

Download the schema and examples to follow along:

FileDescription
amxm.xsdThe AMXM 2.0.2 schema
amxm_example_very_basic.xmlA minimal file with one feature
amxm_example.xmlA larger example including temporality attributes and comments

Keep amxm.xsd and your data file in the same folder to validate with common tools, for example:

bash
xmllint --noout --schema amxm.xsd amxm_example_very_basic.xml

2. Read an AMXM file ​

Document structure ​

Every file has one root element, amxm:AerodromeMappingDatabase, containing one amxm:featureMember per feature. Each feature carries a gml:id that is unique within the file.

xml
<amxm:AerodromeMappingDatabase gml:id="LOCAL_ID_0" ...>
  <amxm:featureMember>
    <amxm:RunwayExitLine gml:id="LOCAL_ID_1">
      <amxm:feattype>19</amxm:feattype>
      <amxm:idnumber>10019</amxm:idnumber>
      <amxm:idarpt>LFBO</amxm:idarpt>
      <amxm:source>Geophenix</amxm:source>
      <amxm:revdate>2009-11-09T00:00:00.000Z</amxm:revdate>
      <amxm:hacc uom="meters">0.5000000000</amxm:hacc>
      <amxm:status nilReason="Unknown"/>
      <amxm:exittype>2</amxm:exittype>
      <amxm:geoline>
        <gml:LineString gml:id="LOCAL_ID_2" srsName="urn:ogc:def:crs:EPSG::4326">
          <gml:posList srsDimension="2" count="11">43.6192 1.3722 43.6192 1.3722 ...</gml:posList>
        </gml:LineString>
      </amxm:geoline>
    </amxm:RunwayExitLine>
  </amxm:featureMember>
</amxm:AerodromeMappingDatabase>

The element name tells you the feature type. Look it up in the Feature Catalog — for example RunwayExitLine — to see its attributes, units and allowed values.

Identifying features ​

AttributePurpose
feattypeNumeric code for the feature type. See the feattype enumeration.
idnumberPermanent unique identifier assigned by the data provider.
idarptICAO location indicator of the aerodrome.
source, revdateWho supplied the data and when it was last revised.

All common attributes are described on the Common Attributes page.

Coded values ​

Many attributes hold a numeric code, such as <amxm:exittype>2</amxm:exittype>. The meaning of each code is listed in the attribute's documentation, or in a shared enumeration page when several features use the same list. Some enumerations also accept free text in the form other: <value>.

Geometry ​

Geometry is encoded with GML 3.2 inside a feature attribute such as geoline, geopoly or geopnt. Coordinates are WGS 84 (srsName="urn:ogc:def:crs:EPSG::4326") and are written latitude longitude in posList, with srsDimension giving the number of values per position.

Units, accuracy and missing values ​

  • Units: measured values carry a uom attribute, for example uom="meters".
  • Accuracy: hacc and vacc give horizontal and vertical accuracy, and hres and vres the resolution of the coordinates.
  • Missing values: when a value is not available, the element is empty and carries a nilReason of Not Entered, Null, Unknown or Not Applicable, as in <amxm:status nilReason="Unknown"/>.

Time and versioning ​

Features can describe when they exist and when the data is valid, using the optional stfeat, endfeat, stvalid and endvalid attributes. A far-future date such as 9999-01-05T00:00:00 means "no end". The interp attribute states whether a feature is a snapshot, a baseline, or a temporary or permanent change.

3. Use AMDB tiles (web applications) ​

Draft

AMDB tile layer names and fields are proposed and not final. See the AMDB Tile Specification for the current layers and fields.

AMDB data is also available as vector tiles through the same authenticated service as the base map. Tiles select the layers most useful for rendering, and carry attributes derived from the AMXM fields documented in this reference, with coded values decoded to readable strings.

  1. Follow the Map Tiles Quick Start to install @simvector/maplibre-protocol and mint a session token.
  2. Add the AMDB tile source to your MapLibre style and style its layers.
  3. Cover the OpenStreetMap airports on the Globe wherever AMDB exists. See Using AMDB with the Globe.
typescript
map.addSource('simvector-amdb', {
  type: 'vector',
  tiles: ['simvector://amdb/{z}/{x}/{y}'],
  minzoom: 8,
  maxzoom: 17,
  promoteId: 'uid',
});

Next steps ​

AMXM schema © 2024 RTCA, EUROCAE. Use does not imply endorsement by RTCA or EUROCAE.