Module: ol/format/GMLBase

ol/format/GMLBase


Classes

GMLBase

Type Definitions

Options{Object}

Properties:
Name Type Argument Default Description
featureNS Object.<string, string> | string <optional>

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 <optional>

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 <optional>

srsName to use when writing geometries.

surface boolean <optional>
false

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

curve boolean <optional>
false

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

multiCurve boolean <optional>
true

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

multiSurface boolean <optional>
true

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

schemaLocation string <optional>

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

hasZ boolean <optional>
false

If coordinates have a Z value.