Module: ol/format/GMLBase

ol/format/GMLBase


Classes

GMLBase

Type Definitions

Options{Object}

Properties:
Name Type Description
featureNS 对象。<string, string> | string | undefined 要素命名空间。如果未定义,将从 GML 中推导。如果配置了来自不同要素命名空间的多个要素类型,这将是一个对象,其键为 featureType 数组条目中使用的前缀。对象的值将是要素命名空间本身。例如,在 featureType 数组中可能有一个 featureType 项 topp:states,然后在 featureNS 对象中将有一个键 topp,其值为 http://www.openplans.org/topp。
featureType Array.<string> | string | undefined 要解析的要素类型。如果需要配置来自不同要素命名空间的多个要素类型,featureNS 将是一个对象,其键为 featureType 数组条目中使用的前缀。对象的值将是要素命名空间本身。例如,可能有一个 featureType 项 topp:states,然后在 featureNS 对象中将有一个名为 topp 的键,其值为 http://www.openplans.org/topp。
srsName string | undefined

写入几何对象时使用的 srsName。

surface boolean
(defaults to false)

写入 gml:Surface 而不是 gml:Polygon 元素。这也会影响多部件几何对象中的元素。

curve boolean
(defaults to false)

写入 gml:Curve 而不是 gml:LineString 元素。这也会影响多部件几何对象中的元素。

multiCurve boolean
(defaults to true)

写入 gml:MultiCurve 而不是 gml:MultiLineString。 因为后者在 GML 3 中已弃用。

multiSurface boolean
(defaults to true)

写入 gml:multiSurface 而不是 gml:MultiPolygon。因为后者在 GML 3 中已弃用。

schemaLocation string | undefined

写入 GML 时使用的可选 schemaLocation, 这将覆盖提供的默认值。

hasZ boolean
(defaults to false)

坐标是否包含 Z 值。