MultiPoint.fromWKT constructor
Creates a MultiPoint from a WKT String.
Example:
MultiPoint.fromWKT('MULTIPOINT(0 0, 1 2)'); // MultiPoint([Coordinate(0, 0), Coordinate(1, 2)])
Implementation
@override
factory MultiPoint.fromWKT(String wkt) {
final coordinates = wkt.split('(')[1].split(')')[0].split(',');
return MultiPoint(
coordinates.map((c) => Coordinate.fromWKT(c)).toList(),
);
}