explode method
Explodes the MultiLineString into a List of Points.
Example:
MultiLineString([[Coordinate(1, 2), Coordinate(3, 4)]]).explode(); // [Coordinate(1, 2), Coordinate(3, 4)]
Implementation
@override
List<Point> explode() {
final explodedFeatures = <Point>[];
for (final line in coordinates) {
explodedFeatures.addAll(line.map((coord) => Point(coord)).toList());
}
return explodedFeatures;
}