MultiPoint.decode constructor

MultiPoint.decode(
  1. Uint8List bytes, {
  2. BinaryFormat<SimpleGeometryContent> format = WKB.geometry,
  3. CoordRefSys? crs,
  4. Map<String, dynamic>? options,
})

Decodes a multi point geometry from bytes conforming to format.

When format is not given, then the geometry format of WKB is used as a default.

Use crs to give hints (like axis order, and whether x and y must be swapped when read in) about coordinate reference system in binary input. When data itself have CRS information it overrides this value.

Format or decoder implementation specific options can be set by options.

See also MultiPoint.decodeHex to decode from bytes represented as a hex string.

Implementation

factory MultiPoint.decode(
  Uint8List bytes, {
  BinaryFormat<SimpleGeometryContent> format = WKB.geometry,
  CoordRefSys? crs,
  Map<String, dynamic>? options,
}) =>
    GeometryBuilder.decode<MultiPoint>(
      bytes,
      format: format,
      crs: crs,
      options: options,
    );