decodeHex<T extends Geometry> static method
GeometryCollection<T>
decodeHex<T extends Geometry>(
- String bytesHex, {
- BinaryFormat<
GeometryContent> format = WKB.geometry, - CoordRefSys? crs,
- Map<
String, dynamic> ? options,
Decodes a geometry collection with elements of T
from bytesHex
(as a
hex string) conforming to format
.
See decode for more information.
Examples:
// a geometry collection from a WKB encoded hex string - same geometry as
// WKT: "GEOMETRYCOLLECTION(POINT(10.1 20.2),POINT(10.1 20.2),LINESTRING(10.1 10.1,20.2 20.2,30.3 30.3))"
GeometryCollection.decodeHex('0107000000030000000101000000333333333333244033333333333334400101000000333333333333244033333333333334400102000000030000003333333333332440333333333333244033333333333334403333333333333440cdcccccccc4c3e40cdcccccccc4c3e40');
Implementation
static GeometryCollection<T> decodeHex<T extends Geometry>(
String bytesHex, {
BinaryFormat<GeometryContent> format = WKB.geometry,
CoordRefSys? crs,
Map<String, dynamic>? options,
}) =>
GeometryBuilder.decodeCollectionHex<T>(
bytesHex,
format: format,
crs: crs,
options: options,
);