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.
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.)
Convert CityGML to other formats
- CityGML to DXF
- CityGML to SHP
- CityGML to GeoJSON
- CityGML to XLSX
- CityGML to GPKG
- CityGML to GeoPDF
- CityGML to CSV
- CityGML to KMZ
- CityGML to KML
- CityGML to TopoJSON
- CityGML to GPX
- CityGML to FGB
- CityGML to GML
- CityGML to MIF
- CityGML to Parquet
- CityGML to SVG
- CityGML to WKT
- CityGML to DGN
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.
Related formats
- KMLKeyhole Markup LanguageOGC-standard XML format for geographic features, styles and overlays, widely used with Google Earth
- KMZKeyhole Markup Language (Compressed)ZIP-compressed KML package bundling a main KML document with icons, images and 3D models
- SHPESRI ShapefileEsri multi-file vector format storing one geometry type per layer with attributes in a dBase table
- AVCBINArc/Info Binary CoverageLegacy topological vector format of Esri ArcInfo Workstation, stored as a directory of binary files with INFO attribute tables
- FGBFlatGeobuf (FGB)Open binary vector format built on FlatBuffers with an optional packed Hilbert R-tree spatial index
- GMLGeography Markup LanguageOGC XML grammar for encoding geographic features, geometries and coordinate reference systems using application schemas
- MapInfoMapInfo TAB (binary)Native multi-file vector table format of MapInfo Pro, storing geometry, attributes, styles and indexes in separate files
- MIFMapInfo Interchange FormatPlain-text MapInfo exchange format with geometry and styles in a .mif file and attribute values in a .mid file
Ready to convert your data?
Drop the files and the Converter does the rest — no install, no account needed for your first conversions.