OpenGIS® Implementation Specification, 20 February 2001

OGC Document Number: 01-029

This version:

http://www.opengis.net/gml/01-029/GML2.html

(Available as: PDF, zip archive of XHTML)

Latest version:

http://www.opengis.net/gml/01-029/GML2.html

Previous versions:

http://www.opengis.net/gml/00-029/GML.html

Editors:

Simon Cox (CSIRO Exploration & Mining) <Simon.Cox@dem.csiro.au>

Adrian Cuthbert (SpotOn MOBILE) <adrian@spotonmobile.com>

Ron Lake (Galdos Systems, Inc.) <rlake@galdosinc.com>

Richard Martell (Galdos Systems, Inc.) <rmartell@galdosinc.com>

Contributors:

Simon Cox (CSIRO Exploration & Mining) <Simon.Cox@dem.csiro.au>

Adrian Cuthbert (SpotOn MOBILE) <adrian@spotonmobile.com>

Paul Daisey (U.S. Census Bureau) <pdaisey@geo.census.gov>

John Davidson (OGC IP2000 Team) <georef@erols.com>

Sandra Johnson (MapInfo Corporation) <sandra_johnson@mapinfo.com>

Edric Keighan (Cubewerx Inc.) <ekeighan@cubewerx.com>

Ron Lake (Galdos Systems Inc.) <rlake@galdosinc.com>

Marwa Mabrouk (ESRI Ltd.) <mmabrouk@esri.com>

Serge Margoulies (IONIC Software) <serge.margoulies@ionicsoft.com>

Richard Martell (Galdos Systems, Inc.) <rmartell@galdosinc.com>

Lou Reich (NASA/CSC) <louis.i.reich@gsfc.nasa.gov>

Barry O'Rourke (Compusult Ltd.) <barry@compusult.nf.ca>

Jayant Sharma (Oracle Corporation) <jsharma@us.oracle.com>

Panagiotis (Peter) Vretanos (CubeWerx Inc.) <pvretano@cubewerx.com>

Copyright © 2001 OGC, All Rights Reserved.

Abstract

The Geography Markup Language (GML) is an XML encoding for the transport and storage of geographic information, including both the spatial and non-spatial properties of geographic features. This specification defines the XML Schema syntax, mechanisms, and conventions that

  • Provide an open, vendor-neutral framework for the definition of geospatial application schemas and objects;

  • Allow profiles that support proper subsets of GML framework descriptive capabilities;

  • Support the description of geospatial application schemas for specialized domains and information communities;

  • Enable the creation and maintenance of linked geographic application schemas and datasets;

  • Support the storage and transport of application schemas and data sets;

  • Increase the ability of organizations to share geographic application schemas and the information they describe.

Implementers may decide to store geographic application schemas and information in GML, or they may decide to convert from some other storage format on demand and use GML only for schema and data transport.

Document status

This document is an OpenGIS® Implementation Specification.

XML instances which are compliant to this specification shall validate against a conforming application schema. A conforming application schema shall import the Geometry Schema (geometry.xsd), the Feature Schema (feature.xsd), and the XLinks schema (xlinks.xsd) as base schemas; furthermore, it shall be developed using the rules for the development of application schemas specified in section 5 of this document.

Sections 1 and 2 of this document present the background information and modeling concepts that are needed to understand GML. Section 3 presents the GML conceptual model which is independent of encoding. Section 4 presents material which discusses the encoding of the GML conceptual model using the XML Schema definition language (XSDL). This material is intended to demonstrate how to employ the normative GML geometry and feature schemas specified in Appendices A and B of this document. Section 5 of this document presents the rules for the development of conformant GML application schemas. Section 6 presents examples to illustrate techniques for constructing compliant GML application to model recurring geographic themes; these techniques are not normative but they do represent the collective experience of the editors of this document and are strongly recommended. Conforming profiles of this document shall be developed according to the rules specified in section 7. Appendix A presents the Geometry schema, Appendix B presents the Feature schema, and Appendix C presents the XLinks schema.

The OpenGIS Consortium (OGC) invites comments on this Implementation Specification?please submit them to gml.sig@opengis.org.

Table of Contents

1 Representing geographic features

1.1 Introduction

1.2 Feature and Geometry models

2 Overview of GML

2.1 Design goals

2.2 Schemas for geospatial data

2.3 Graphical rendering

3 Conceptual framework

3.1 Features and properties

3.2 Geometric properties

3.3 Application schemas

4 Encoding GML

4.1 Introduction

4.2 Encoding features without geometry

4.3 Encoding geometry

4.4 Encoding features with geometry

4.5 Encoding feature collections

4.6 Encoding feature associations

5 GML application schemas

5.1 Introduction

5.2 Rules for constructing application schemas (normative)

6 Worked examples of application schemas (non-normative)

7 Profiles of GML

Appendix A: The Geometry schema, v2.06 (normative)

Appendix B: The Feature schema, v2.06 (normative)

Appendix C: The XLinks schema, v2.01 (normative)

Appendix D: References

Appendix E: Revision history