Go to previous pageGo to next page

1.2.5. Geography Markup Language

Geography Markup Language (GML) is an XML encoding for the transport and storage of geographic information, including both the geometry and properties of geographic features. It is an open data exchange standard well-suited for transmitting small to medium-sized volumes of information. GML is usable with all standard XML tools. (Reichhardt 2003)

GML was defined to (Reichhardt 2003):

  • Be sufficiently extensible to support a wide variety of spatial tasks.
  • Allow for the efficient encoding of geospatial geometry (points, lines, polygones).
  • Provide encodings of spatial information and spatial relationships that are both machine-readable and human-readable
  • Separate content from presentation (different maps can be produced from the same data)
  • Permit easy integration of spatial and non-spatial XML data.
  • Enable interoperability of independently-developed applications.
GML is great!GML is great! (Geoconnections.org)

"A GML document is an XML-encoded text file and by itself, does not "do" anything." (Geoconnections.org)

Why should I use GML?

According to (Geoconnections.org) there are five main reasons why to use GML:

  1. GML is an OGC and ISO standard for encoding geographic objects. As such, many vendors have already created products to produce or consume GML, and are more likely to do so. Since it has been extensively reviewed, GML is more likely to be complete and error-free than other methods of encoding geographic objects.
  2. Since it is XML based, it is Web-compatible, and inherits from XML all the tools and methods that work on XML schemas and instances.
  3. It is object-based, so everything you need to know about a geographic highway (e.g. a piece of highway) can be encoded in a single object without having to look up other pieces of information.
  4. It is modular so that you can encode a single object, or a large set of features corresponding to an entire map sheet with many layers (with various levels of complexity in between).
  5. GML is mandated by and embedded in other OGC specifications, namely web feature services and filter encoding.

The following image shows an extract of a GML file:

Extract      of a GML fileExtract of a GML file

If you are interested in details about GML have a look at the GML Specification (PDF). Be aware that this specification is neither a quick nor a simple read and you need a basic understanding of XML.



Go to previous page
Go to next page