Format comparison

GML vs FlatGeobuf: OGC XML vs Modern Binary

GML and FlatGeobuf are both open geospatial formats, but they represent opposite design philosophies. GML prioritizes standards compliance and schema validation via verbose XML. FlatGeobuf prioritizes performance — compact binary encoding, spatial indexing, and HTTP range streaming.

Advertisement (728×90)

Bottom line

Use GML for OGC WFS compliance and government data exchange. Use FlatGeobuf for performance-critical web GIS delivery.

GML vs FlatGeobuf: feature comparison

FeatureGMLFlatGeobuf
Format typeXML textBinary
Standard bodyOGC GML 3.xOGC Community Standard
File sizeVery verboseVery compact
Schema validationYes (XSD)No
Spatial indexNoYes (Hilbert R-tree)
HTTP streamingNoYes
WFS server outputYesNo

GMLWhen to use GML

  • OGC WFS services
  • Government INSPIRE datasets
  • Schema-validated data exchange

FlatGeobufWhen to use FlatGeobuf

  • Web GIS data delivery via CDN
  • Large datasets requiring fast spatial queries
  • Modern cloud-native GIS pipelines

Convert between GML and FlatGeobuf

Frequently asked questions

Q.Can I convert GML to FlatGeobuf online?

Yes. Maparz converts GML to FlatGeobuf — upload your .gml and download a .fgb file.

Q.Is FlatGeobuf an OGC standard?

FlatGeobuf was adopted as an OGC Community Standard in 2021, so both GML and FlatGeobuf have official OGC status — but they target very different use cases.

Related converters

More format comparisons