toWKT method

  1. @override
String toWKT()
override

Converts the Polygon to a WKT String.

Implementation

@override
String toWKT() {
  return 'POLYGON (${coordinates.map((ring) => "(${ring.coordinates.map((c) => c.toWKT()).toList().join(', ')})").join(', ')})';
}