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:
| File | Description |
|---|---|
| amxm.xsd | The AMXM 2.0.2 schema |
| amxm_example_very_basic.xml | A minimal file with one feature |
| amxm_example.xml | A 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:
xmllint --noout --schema amxm.xsd amxm_example_very_basic.xml2. 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.
<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
| Attribute | Purpose |
|---|---|
feattype | Numeric code for the feature type. See the feattype enumeration. |
idnumber | Permanent unique identifier assigned by the data provider. |
idarpt | ICAO location indicator of the aerodrome. |
source, revdate | Who 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
uomattribute, for exampleuom="meters". - Accuracy:
haccandvaccgive horizontal and vertical accuracy, andhresandvresthe resolution of the coordinates. - Missing values: when a value is not available, the element is empty and carries a
nilReasonofNot Entered,Null,UnknownorNot 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.
- Follow the Map Tiles Quick Start to install
@simvector/maplibre-protocoland mint a session token. - Add the AMDB tile source to your MapLibre style and style its layers.
- Cover the OpenStreetMap airports on the Globe wherever AMDB exists. See Using AMDB with the Globe.
map.addSource('simvector-amdb', {
type: 'vector',
tiles: ['simvector://amdb/{z}/{x}/{y}'],
minzoom: 8,
maxzoom: 17,
promoteId: 'uid',
});Next steps
- Browse the Feature Catalog for every feature and attribute.
- Use Common Attributes and Enumerations as lookup references while parsing.
- Review the AMDB overview for scope and licensing.