Skip to main content

GMLLoader

ogc-logo

From-3.3

 

BETA

The GMLLoader parses the XML-formatted response from the the OGC-standardized GML (Geographic Markup Language) file format into a standard geospatial feature table.

Note that the GML standard is very ambitious and full support of the format is out of scope.

LoaderCharacteristic
File Extension.gml
File TypeText
File FormatGML
Data FormatData structure
Decoder TypeSynchronous
Worker Thread SupportYes
Streaming SupportNo

Usage

import {GMLLoader} from '@loaders.gl/wms';
import {load} from '@loaders.gl/core';

// Form a GML request
const url = `${WFS_SERVICE_URL}?REQUEST=GetFeature&...`;

const data = await load(url, GMLLoader, options);

Parsed Data Format

The GMLLoader only supports parsing the standard geospatial subset of features (points, multipoints, lines, linestrings, polygons and multipolygons), on a "best effort" basis. Because of this, the GMLLoader is treated as a geospatial loader and can return GeoJSON style output.

Options

OptionTypeDefaultDescription