Module: ol/format/GMLBase

ol/format/GMLBase


Classes

GMLBase

Type Definitions

Options{Object}

Properties:
Name Type Description
featureNS Object.<string, string> | string | undefined

Feature namespace. If not defined will be derived from GML. If multiple feature types have been configured which come from different feature namespaces, this will be an object with the keys being the prefixes used in the entries of featureType array. The values of the object will be the feature namespaces themselves. So for instance there might be a featureType item topp:states in the featureType array and then there will be a key topp in the featureNS object with value http://www.openplans.org/topp.

featureType Array.<string> | string | undefined

Feature type(s) to parse. If multiple feature types need to be configured which come from different feature namespaces, featureNS will be an object with the keys being the prefixes used in the entries of featureType array. The values of the object will be the feature namespaces themselves. So for instance there might be a featureType item topp:states and then there will be a key named topp in the featureNS object with value http://www.openplans.org/topp.

srsName string | undefined

srsName to use when writing geometries.

surface boolean
(defaults to false)

Write gml:Surface instead of gml:Polygon elements. This also affects the elements in multi-part geometries.

curve boolean
(defaults to false)

Write gml:Curve instead of gml:LineString elements. This also affects the elements in multi-part geometries.

multiCurve boolean
(defaults to true)

Write gml:MultiCurve instead of gml:MultiLineString. Since the latter is deprecated in GML 3.

multiSurface boolean
(defaults to true)

Write gml:multiSurface instead of gml:MultiPolygon. Since the latter is deprecated in GML 3.

schemaLocation string | undefined

Optional schemaLocation to use when writing out the GML, this will override the default provided.

hasZ boolean
(defaults to false)

If coordinates have a Z value.