GeoDataViewer
Menu
Launch Studio
Theme
• GeoDataViewer Team

What Is GML? Geography Markup Language File Format Explained

What is GML (Geography Markup Language)? Learn how OGC GML stores GIS features in XML and how to open, inspect, or convert GML files online.

GML (Geography Markup Language) is an OGC standard that encodes geographic features in XML. It’s common in government datasets, spatial data infrastructures, and OGC web services such as WFS, where interoperability and schema-based validation matter.

Quick answer: GML is an OGC XML format for exchanging geographic features, geometry, attributes, and schema-driven metadata. Open it in the online GML viewer or convert GML to GeoJSON for web maps.

If you just need to inspect a dataset quickly, you can open it directly in the browser with the GML viewer at /open-gml-online/.

What GML contains

A typical GML dataset describes features (real-world objects) and includes:

  • Geometry (points, lines, polygons, and more complex types)
  • Attributes (properties like names, IDs, classifications)
  • Coordinate reference system information (often via srsName)

Because it’s XML and can be schema-rich, GML files are often larger and more complex than lightweight web formats like GeoJSON.

When GML is a good choice

GML is often used when:

  • You receive data from standards-based GIS platforms
  • You need schema-based structure for complex feature models
  • You work with OGC services that emit GML

Common issues when opening GML

  • Big file sizes: XML can be verbose; large feature collections may be slow.
  • CRS confusion: a missing or incorrect CRS can place data in the wrong location.
  • Multiple namespaces / application schemas: some datasets reference external schema definitions.

How to open a GML file online

  1. Go to the GML viewer: /open-gml-online/
  2. Upload your .gml (or .xml if it’s GML content).
  3. Inspect features and attributes in the map and data panels.

Convert GML to web-friendly formats

If you want to use the data in web maps or APIs, GeoJSON is a common target:

Share this post:
G
GeoDataViewer Team
The GeoDataViewer team builds tools for GIS professionals who need quick, private, browser-based access to geospatial data. We write about formats, conversion workflows, and practical GIS techniques based on years of experience with QGIS, ArcGIS, GDAL, and web mapping libraries.