GmlReader class

A static class that reads GML data.

Methods

read(string, GmlReadOptions)

Reads GeoJSON objects from a string that is in GML format.

readGeometry(string | XmlNode, GmlReadOptions)

Reads a GML Geometry; Feature, Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, MultiSurface, MultiCurve. Other Spatial XML files such as GeoRSS often have embedded GML geometries in them.

Method Details

read(string, GmlReadOptions)

Reads GeoJSON objects from a string that is in GML format.

static function read(gml: string, options?: GmlReadOptions): ExtendedFeatureCollection

Parameters

gml

string

The GML string to read.

options
GmlReadOptions

Options to use when parsing GML data.

Returns

readGeometry(string | XmlNode, GmlReadOptions)

Reads a GML Geometry; Feature, Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, MultiSurface, MultiCurve. Other Spatial XML files such as GeoRSS often have embedded GML geometries in them.

static function readGeometry(gmlNode: string | XmlNode, options?: GmlReadOptions): azmaps.data.Feature<azmaps.data.Geometry, any>

Parameters

gmlNode

string | XmlNode

A GML node to parse.

options
GmlReadOptions

Options to use when parsing GML data.

Returns

azmaps.data.Feature<azmaps.data.Geometry, any>