parsePolygon method
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));
}