XML Schema Documentation

Printer-friendly Version
XML Instance Representation:
[ Expand All | Collapse All ]

Schema Component Representation:
[ Expand All | Collapse All ]

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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
top