XML Schema Documentation

Table of Contents

top

Schema Document Properties

Target Namespace http://www.topografix.com/GPX/gpx_overlay/0/3
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations belong to this schema's target namespace.
  • By default, local attribute declarations have no namespace.
Schema Composition
  • This schema imports schema(s) from the following namespace(s):
    • http://www.topografix.com/GPX/gpx_style/0/2 (at http://www.topografix.com/GPX/gpx_style/0/2/gpx_style.xsd)

Declared Namespaces

Prefix Namespace
Default namespace http://www.topografix.com/GPX/gpx_overlay/0/3
xml http://www.w3.org/XML/1998/namespace
xsd http://www.w3.org/2001/XMLSchema
gpx_style http://www.topografix.com/GPX/gpx_style/0/2
Schema Component Representation
<xsd:schema targetNamespace="http://www.topografix.com/GPX/gpx_overlay/0/3" elementFormDefault="qualified">
<xsd:import namespace="http://www.topografix.com/GPX/gpx_style/0/2" schemaLocation="http://www.topografix.com/GPX/gpx_style/0/2/gpx_style.xsd"/>
...
</xsd:schema>
top

Global Declarations

Element: label

Name label
Type labelType
Nillable no
Abstract no
Documentation Text overlay (waypoint or route map label, e.g.)
XML Instance Representation
<label>
Start Choice [0..1]
<point> ptType </point> [0..1] ?
<translate> xyOffsetType </translate> [0..1] ?
End Choice
<rotate> degreesType </rotate> [0..1] ?
<margin> xyOffsetType </margin> [0..1] ?
<label_text> xsd:string </label_text> [0..1] ?
<derived_from> xsd:string </derived_from> [0..1] ?
<type> xsd:string </type> [0..1] ?
<max_scale> ... </max_scale> [0..1] ?
<gpx_style:text> ... </gpx_style:text> [0..1] ?
<gpx_style:line> ... </gpx_style:line> [0..1] ?
<gpx_style:fill> ... </gpx_style:fill> [0..1] ?
<extensions> extensionsType </extensions> [0..1] ?
</label>
Schema Component Representation
<xsd:element name="label" type="labelType"/>
top

Element: max_scale

Name max_scale
Type xsd:decimal
Nillable no
Abstract no
Documentation Maximum scale at which the parent object is displayed on a map. "24000" for a 1:24000 scale USGS topo, e.g.
XML Instance Representation
<max_scale> xsd:decimal </max_scale>
Schema Component Representation
<xsd:element name="max_scale" type="xsd:decimal"/>
top

Element: points

Name points
Type pointsType
Nillable no
Abstract no
Documentation List of points
XML Instance Representation
<points>
<pt> ptType </pt> [0..*] ?
</points>
Schema Component Representation
<xsd:element name="points" type="pointsType"/>
top

Element: polyline

Name polyline
Type polylineType
Nillable no
Abstract no
Documentation Set of points describing a filled shape or line (map drawing, etc)
XML Instance Representation
<polyline>
<desc> xsd:string </desc> [0..1] ?
<type> xsd:string </type> [0..1] ?
<max_scale> ... </max_scale> [0..1] ?
<label> ... </label> [0..1] ?
<gpx_style:line> ... </gpx_style:line> [0..1] ?
<gpx_style:fill> ... </gpx_style:fill> [0..1] ?
<extensions> extensionsType </extensions> [0..1] ?
<points> pointsType </points> [0..*] ?
</polyline>
Schema Component Representation
<xsd:element name="polyline" type="polylineType"/>
top

Element: pt

Name pt
Type ptType
Nillable no
Abstract no
Documentation lat/lon/ele/timestamp point
XML Instance Representation
<pt
lat="latitudeType [1] ?"
lon="longitudeType [1] ?">
<ele> xsd:decimal </ele> [0..1] ?
<time> xsd:dateTime </time> [0..1] ?
</pt>
Schema Component Representation
<xsd:element name="pt" type="ptType"/>
top

Global Definitions

Complex Type: extensionsType

Super-types: None
Sub-types: None
Name extensionsType
Abstract no
Documentation You can add extend GPX by adding your own elements from another schema here.
XML Instance Representation
<...>
Allow any elements from a namespace other than this schema's namespace (strict validation). [0..*]
</...>
Schema Component Representation
<xsd:complexType name="extensionsType">
<xsd:sequence>
<xsd:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: labelType

Super-types: None
Sub-types: None
Name labelType
Abstract no
Documentation Text overlay (waypoint or route map label, e.g.)
XML Instance Representation
<...>
Start Choice [0..1]
<point> ptType </point> [0..1] ?
<translate> xyOffsetType </translate> [0..1] ?
End Choice
<rotate> degreesType </rotate> [0..1] ?
<margin> xyOffsetType </margin> [0..1] ?
<label_text> xsd:string </label_text> [0..1] ?
<derived_from> xsd:string </derived_from> [0..1] ?
<type> xsd:string </type> [0..1] ?
<max_scale> ... </max_scale> [0..1] ?
<gpx_style:text> ... </gpx_style:text> [0..1] ?
<gpx_style:line> ... </gpx_style:line> [0..1] ?
<gpx_style:fill> ... </gpx_style:fill> [0..1] ?
<extensions> extensionsType </extensions> [0..1] ?
</...>
Schema Component Representation
<xsd:complexType name="labelType">
<xsd:sequence>
<-- elements must appear in this order -->
<-- spatial elements -->
<xsd:choice minOccurs="0">
<xsd:element name="point" type="ptType" minOccurs="0"/>
<xsd:element name="translate" type="xyOffsetType" minOccurs="0"/>
</xsd:choice>
<xsd:element name="rotate" type="degreesType" minOccurs="0"/>
<xsd:element name="margin" type="xyOffsetType" minOccurs="0"/>
<xsd:element name="label_text" type="xsd:string" minOccurs="0"/>
<xsd:element name="derived_from" type="xsd:string" minOccurs="0"/>
<xsd:element name="type" type="xsd:string" minOccurs="0"/>
<xsd:element ref="max_scale" minOccurs="0"/>
<xsd:element ref="gpx_style:text" minOccurs="0"/>
<xsd:element ref="gpx_style:line" minOccurs="0"/>
<xsd:element ref="gpx_style:fill" minOccurs="0"/>
<xsd:element name="extensions" type="extensionsType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: pointsType

Super-types: None
Sub-types: None
Name pointsType
Abstract no
Documentation An ordered sequence of points.
XML Instance Representation
<...>
<pt> ptType </pt> [0..*] ?
</...>
Schema Component Representation
<xsd:complexType name="pointsType">
<xsd:sequence>
<-- elements must appear in this order -->
<xsd:element name="pt" type="ptType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: polylineType

Super-types: None
Sub-types: None
Name polylineType
Abstract no
Documentation polyline represents an ordered list of points describing a closed or open shape.
XML Instance Representation
<...>
<desc> xsd:string </desc> [0..1] ?
<type> xsd:string </type> [0..1] ?
<max_scale> ... </max_scale> [0..1] ?
<label> ... </label> [0..1] ?
<gpx_style:line> ... </gpx_style:line> [0..1] ?
<gpx_style:fill> ... </gpx_style:fill> [0..1] ?
<extensions> extensionsType </extensions> [0..1] ?
<points> pointsType </points> [0..*] ?
</...>
Schema Component Representation
<xsd:complexType name="polylineType">
<xsd:sequence>
<xsd:element name="desc" type="xsd:string" minOccurs="0"/>
<xsd:element name="type" type="xsd:string" minOccurs="0"/>
<xsd:element ref="max_scale" minOccurs="0"/>
<xsd:element ref="label" minOccurs="0"/>
<xsd:element ref="gpx_style:line" minOccurs="0"/>
<xsd:element ref="gpx_style:fill" minOccurs="0"/>
<xsd:element name="extensions" type="extensionsType" minOccurs="0"/>
<xsd:element name="points" type="pointsType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: ptType

Super-types: None
Sub-types: None
Name ptType
Abstract no
Documentation A geographic point with optional elevation and time. Available for use by other schemas.
XML Instance Representation
<...
lat="latitudeType [1] ?"
lon="longitudeType [1] ?">
<ele> xsd:decimal </ele> [0..1] ?
<time> xsd:dateTime </time> [0..1] ?
</...>
Schema Component Representation
<xsd:complexType name="ptType">
<xsd:sequence>
<-- elements must appear in this order -->
<xsd:element name="ele" type="xsd:decimal" minOccurs="0"/>
<xsd:element name="time" type="xsd:dateTime" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="lat" type="latitudeType" use="required"/>
<xsd:attribute name="lon" type="longitudeType" use="required"/>
</xsd:complexType>
top

Complex Type: xyOffsetType

Super-types: None
Sub-types: None
Name xyOffsetType
Abstract no
Documentation Offset in x,y dimensions (screen or printed page). Units in millimeters.
XML Instance Representation
<...
dx="xsd:decimal [1] ?"
dy="xsd:decimal [1] ?"/>
Schema Component Representation
<xsd:complexType name="xyOffsetType">
<xsd:attribute name="dx" type="xsd:decimal" use="required"/>
<xsd:attribute name="dy" type="xsd:decimal" use="required"/>
</xsd:complexType>
top

Simple Type: degreesType

Super-types: xsd:decimal < degreesType (by restriction)
Sub-types: None
Name degreesType
Content
  • Base XSD Type: decimal
  • 0.0 <= value < 360.0
Documentation Used for bearing, heading, course. Units are decimal degrees, true (not magnetic).
Schema Component Representation
<xsd:simpleType name="degreesType">
<xsd:restriction base="xsd:decimal">
<xsd:minInclusive value="0.0"/>
<xsd:maxExclusive value="360.0"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: latitudeType

Super-types: xsd:decimal < latitudeType (by restriction)
Sub-types: None
Name latitudeType
Content
  • Base XSD Type: decimal
  • -90.0 <= value <= 90.0
Documentation The latitude of the point. Decimal degrees, WGS84 datum.
Schema Component Representation
<xsd:simpleType name="latitudeType">
<xsd:restriction base="xsd:decimal">
<xsd:minInclusive value="-90.0"/>
<xsd:maxInclusive value="90.0"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: longitudeType

Super-types: xsd:decimal < longitudeType (by restriction)
Sub-types: None
Name longitudeType
Content
  • Base XSD Type: decimal
  • -180.0 <= value < 180.0
Documentation The longitude of the point. Decimal degrees, WGS84 datum.
Schema Component Representation
<xsd:simpleType name="longitudeType">
<xsd:restriction base="xsd:decimal">
<xsd:minInclusive value="-180.0"/>
<xsd:maxExclusive value="180.0"/>
</xsd:restriction>
</xsd:simpleType>
top