Point.decodeHex constructor
Point.decodeHex(
- String bytesHex, {
- BinaryFormat<
SimpleGeometryContent> format = WKB.geometry, - CoordRefSys? crs,
- Map<
String, dynamic> ? options,
Decodes a point geometry from bytesHex
(as a hex string)
conforming to format
.
See Point.decode for more information.
Examples:
// a point with a 2D position (x: 10.1, y: 20.2) from a WKB encoded hex
// string
Point.decodeHex('010100000033333333333324403333333333333440');
Implementation
factory Point.decodeHex(
String bytesHex, {
BinaryFormat<SimpleGeometryContent> format = WKB.geometry,
CoordRefSys? crs,
Map<String, dynamic>? options,
}) =>
GeometryBuilder.decodeHex<Point>(
bytesHex,
format: format,
crs: crs,
options: options,
);