parsePolygon method

Polygon parsePolygon(
  1. ValueGetter data,
  2. bool haveZ,
  3. bool haveM
)

Implementation

Polygon parsePolygon(ValueGetter data, bool haveZ, bool haveM) {
  int count = data.getInt();
  List<LinearRing> rings = [];
  for (int i = 0; i < count; i++) {
    rings.add(parseLinearRing(data, haveZ, haveM));
  }
  return gf.createPolygon(rings[0], rings.sublist(1));
}