模块:ol/format/WKB

ol/format/WKB


WKB

类型定义

Options{Object}

属性:
Name Type 描述
splitCollection boolean
(defaults to false)

是否在读取时将几何集合拆分为多个要素。

hex boolean
(defaults to true)

输出返回十六进制字符串而非 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。指定true从中提取dataProjection. false用于抑制输出。此选项仅在以下条件下生效。ewkbtrue.