Module: ol/format/WKB

ol/format/WKB


Classes

WKB

Type Definitions

Options{Object}

Properties:
Name Type Description
splitCollection boolean
(defaults to false)

读取时是否将 GeometryCollections 拆分为多个要素。

hex boolean
(defaults to true)

输出时返回 hex 字符串而非 ArrayBuffer。这也用作内部提示,决定在读取时应将内容作为文本还是 ArrayBuffer 加载。

littleEndian boolean
(defaults to true)

输出时使用小端序。

ewkb boolean
(defaults to true)

输出时使用 EWKB 格式。

geometryLayout GeometryLayout
(defaults to null)

为输出要素使用特定的坐标布局(null: 自动检测)

nodataZ number
(defaults to 0)

如果 geometryLayout 与要输出的几何图形不匹配,此值用于填充缺失的 Z 坐标值。

nodataM number
(defaults to 0)

如果 geometryLayout 与要输出的几何图形不匹配,此值用于填充缺失的 M 坐标值。

srid number | boolean
(defaults to true)

输出的 SRID。指定整数值以强制将该值作为 SRID。指定 truedataProjection 中提取。false 以抑制输出。此选项仅在 ewkbtrue 时生效。