Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description splitCollectionboolean
(defaults to false)读取时是否将 GeometryCollections 拆分为多个要素。
hexboolean
(defaults to true)输出时返回 hex 字符串而非 ArrayBuffer。这也用作内部提示,决定在读取时应将内容作为文本还是 ArrayBuffer 加载。
littleEndianboolean
(defaults to true)输出时使用小端序。
ewkbboolean
(defaults to true)输出时使用 EWKB 格式。
geometryLayoutGeometryLayout
(defaults to null)为输出要素使用特定的坐标布局(null: 自动检测)
nodataZnumber
(defaults to 0)如果
geometryLayout与要输出的几何图形不匹配,此值用于填充缺失的 Z 坐标值。nodataMnumber
(defaults to 0)如果
geometryLayout与要输出的几何图形不匹配,此值用于填充缺失的 M 坐标值。sridnumber | boolean
(defaults to true)输出的 SRID。指定整数值以强制将该值作为 SRID。指定
true从dataProjection中提取。false以抑制输出。此选项仅在ewkb为true时生效。