addPolygon method
Implementation
void addPolygon(Polygon p) {
addPolygonRing(p.getExteriorRing(), Location.EXTERIOR, Location.INTERIOR);
for (int i = 0; i < p.getNumInteriorRing(); i++) {
LinearRing hole = p.getInteriorRingN(i);
// Holes are topologically labelled opposite to the shell, since
// the interior of the polygon lies on their opposite side
// (on the left, if the hole is oriented CW)
addPolygonRing(hole, Location.INTERIOR, Location.EXTERIOR);
}
}