You are trying the new MyGeodata Cloud. Send feedback Back to the previous version

Vector · GIS vector

CityGML — GML (application schema) — CityGML

OGC standard GML application schema for exchanging semantic 3D city and landscape models at multiple levels of detail.

Type
Vector · GIS vector
Extension
.gml, .citygml
Converter
Read only
Coordinate system
Any (EPSG, ESRI, custom)
Layers
Multiple

What is a CityGML file?

CityGML is an open data model and XML-based encoding for representing virtual 3D city and landscape models. It is an application schema of the Geography Markup Language (GML) standardised by the Open Geospatial Consortium (OGC). The model was originally developed in Germany by the Special Interest Group 3D. It defines thematic classes for buildings, terrain, transportation, vegetation, water bodies, city furniture and land use, each with semantic attributes and relationships, and represents objects at several levels of detail.

A dataset is typically one or more XML files with the .gml extension that validate against the CityGML XSD schemas. Textures are kept as separate image files referenced from the XML. Coordinate reference systems are declared through srsName attributes, and true 3D coordinates are supported. Files can become very large, and the deeply nested structure often requires specialised tools or flattening before use in conventional 2D GIS.

CityGML files usually come from municipal survey offices, national mapping agencies and 3D city modelling projects, and are exchanged with planners, architects and simulation specialists. Check the CityGML version and the level of detail before converting, keep texture images next to the .gml file, and confirm the srsName so that heights and coordinates are not misread.

Typical uses

  • Publishing official 3D building models of a city or region.
  • Urban planning, visibility and shadow analysis on semantic building data.
  • Energy demand, noise and flood simulations based on building attributes.
  • Exchanging 3D city data between GIS, CAD and database systems.
Files: 3D city models; can reference textures and schemas.

Sample CityGML files — free download

Small, real datasets of the island of Saint Helena (OpenStreetMap, Copernicus DEM, Sentinel-2). Download them, open them in your software, or convert them in one click.

A sample file for this format is not available yet. (CityGML needs 3D building models with measured heights; OpenStreetMap has no building heights for Saint Helena, so a realistic sample cannot be produced.)

Frequently asked questions

CityGML stores nested objects, such as buildings with parts, surfaces and semantic attributes, which 2D GIS formats cannot represent directly. During conversion the data is often flattened to footprints or surfaces, so some relationships and attributes may be dropped or simplified.

Ready to convert your data?

Drop the files and the Converter does the rest — no install, no account needed for your first conversions.