Geography Markup LanguageEdit
Geography Markup Language (GML) is the XML-based language that underpins the modern exchange of geospatial data. Defining how geographic features and their attributes are encoded for transmission, storage, and interpretation, GML was developed under the auspices of the Open Geospatial Consortium Open Geospatial Consortium and harmonized with the ISO 19136 standard. Its design emphasizes interoperability across diverse systems—from government geoportals to private sector GIS, from desktop analysis to web services—so that data produced in one environment can be readily consumed in another. In an information economy where land, infrastructure, and environmental data drive decision-making, GML serves as a durable, vendor-neutral lingua franca for maps, measurements, and spatial reasoning.
GML sits at the intersection of map-making, data governance, and software architecture. It is not simply a file format but a flexible grammar for describing positions, shapes, extents, times, and the rich properties that describe real-world phenomena. This includes support for various geometry types (points, lines, polygons, and their multi-part extensions), coordinate reference systems, coordinate transformations, temporal attributes, and metadata about the data itself. GML can be used to encode simple features as well as complex, domain-specific schemas that reflect how a particular industry or national system classifies and models the world. For data exchange, GML is especially valuable when combined with other OGC services such as the Web Feature Service Web Feature Service, enabling clients to retrieve and update feature data over the web in a standards-compliant way.
Overview - What GML is: an XML grammar for encoding geographic features and their properties, designed for robust data interchange and long-term archiving. It is defined in close alignment with the ISO 19136 standard for Geography Markup Language. - Core concepts: features, geometries (e.g., Point, LineString, Polygon), coordinate reference systems, properties, and metadata that describe both the data and its provenance. - Relationship to other standards: GML complements other ISO and OGC specifications, integrating with services like WFS and with formats used for visualization and analysis, such as KML for certain consumer apps or GeoJSON in web contexts when lightweight interchange is preferred.
Architecture and Features - Feature-centric data model: GML encodes geographic features as real-world objects (for example, a road, a parcel, or a building) with explicit geometry and a set of properties. The feature-oriented approach supports rich semantics when combined with application schemas that tailor the data model to a given domain. - Geometry and topology: The language supports a full suite of geometry types and their relationships, enabling precise representations of networks, boundaries, and areas of interest. GML’s structure makes it possible to express topological relationships and spatial predicates essential for analysis and planning. - Application schemas: Users can define customized schemas that extend GML for particular domains (e.g., cadastral data, environmental monitoring, or utility networks). This extensibility is a key strength, enabling standards-compliant data exchanges that still meet local needs. See GML Application Schema for more. - Validation and exchange: Because GML relies on XML Schema, documents can be validated for structural integrity and conformance to official definitions. This supports automated quality checks in data pipelines and reduces the risk of misinterpretation when data moves across agencies and vendors. - Evolution and coexistence: GML has evolved through multiple iterations, with ongoing alignment to the broader ISO geospatial standards family. This evolution addresses feedback from government, industry, and academia while preserving backward compatibility where feasible.
History GML originated in the late 1990s and early 2000s as part of a broader push to standardize geospatial data and enable cross-system interoperability. The OGC formalized the language as part of its suite of standards, aligning with ISO 19136 to ensure international adoption. Over time, GML has matured through successive revisions and refinements, with emphasis on modular design, clearer schemas, and better alignment with contemporary data workflows. The resulting ecosystem connects well with other core standards and services, helping to curb duplication of effort and reduce the total cost of ownership for geospatial data infrastructures.
Standards and Governance - Open standardization framework: GML is published and maintained through the collaboration of the OGC and the ISO community. The synergy between OGC specifications (including GML) and ISO standards (such as ISO 19136) helps ensure that data can flow across national and international systems while remaining compatible with enterprise software architectures. - Interoperability with services: GML is frequently used in conjunction with Web services for geospatial data delivery, notably the Web Feature Service Web Feature Service and associated specifications. This enables clients to discover, access, and query feature data in a standards-based manner. - Data quality and governance: The formal nature of GML supports validation, metadata capture, and lineage tracking, which are indispensable for public-sector datasets and regulated industries that require auditable data trails.
Applications and Impacts - Government and infrastructure: National mapping agencies and local governments rely on GML to exchange parcel data, road networks, hydrology, land use, and more between departments and external partners. This reduces duplication and speeds up planning, permitting, and emergency response. - Industries and analytics: Utilities, transportation, architecture, engineering, and construction sectors use GML to integrate GIS data with CAD/BIM (building information modeling) workflows and enterprise data warehouses. The combination of precise geometry with rich attributes supports simulation, asset management, and policy analysis. - Data sharing and open data: As policymakers push for open data, GML provides a robust path for sharing complex geospatial datasets across platforms and organizations. While lighter-weight formats like GeoJSON or KML have small-footprint use cases, GML’s expressiveness makes it the backbone for applications where rigorous modeling of features, properties, and relationships matters. - Global positioning and mapping ecosystems: In contexts where interoperability across vendors is essential, GML complements broader map ecosystems and helps ensure that critical data remains usable even as software stacks change over time.
Controversies and Debates - Complexity vs. web-first formats: A perennial debate centers on whether GML’s richness is a strength or a burden. Critics argue that for many web and mobile applications, lighter-weight formats (often JSON-based) are easier to consume and faster to parse. Proponents counter that the cost of ad hoc formats is higher in the long run due to fragmentation, inconsistent semantics, and data quality gaps. The practical stance is that for mission-critical interoperability, the formal rigor of GML and its ecosystem minimizes ambiguity and supports long-term data stewardship; for lean consumer apps, complementary formats can be used in parallel. - Open vs proprietary control: Advocates of open standards emphasize that GML’s openness reduces vendor lock-in and fosters competition, innovation, and public accountability. Critics sometimes claim that open specifications can still enable centralized influence through dominant implementers. In practice, the GML ecosystem tends to empower a broad base of developers and agencies, because anyone can implement conformant tooling without paying license fees to a single gatekeeper. The result is a more resilient data economy than one based on proprietary formats alone. - Privacy, security, and governance: Open geospatial data raises legitimate concerns about privacy and security, especially when highly detailed location data can reveal sensitive information. A right-of-center perspective on governance typically supports transparent data-sharing standards while advocating prudent data minimization and access controls. The argument is not against sharing data per se, but about ensuring that data is shared in ways that do not expose individuals or critical infrastructure to risk. Critics who characterize open standards as inherently reckless are often overlooking practical governance tools available within the standards ecosystem. - Global coordination vs. local autonomy: Some observers worry that global standards can suppress local data conventions or bespoke systems. The counterpoint is that standards like GML are designed to be extensible; local models can be encoded via application schemas that stay compatible with the core grammar. In this way, communities can preserve unique data practices while still reaping the benefits of interoperable data exchange when needed.
See also - Open Geospatial Consortium - Geographic Information System - ISO 19136 - KML - Web Feature Service - XML - Coordinate Reference System - Geospatial data