isPolygon method

bool isPolygon()

Implementation

bool isPolygon() {
  switch (this) {
    case MULTIPOLYGON:
    case POLYGON:
      return true;
    default:
      return false;
  }
}