isMultiPoint method

bool isMultiPoint()

Is this a multipoint shape? Hint- all shapes are multipoint except NULL, UNDEFINED, and the POINTs.

@return true if multipoint, false otherwise.

Implementation

bool isMultiPoint() {
  if (this == UNDEFINED) {
    return false;
  } else if (this == NULL) {
    return false;
  } else if (this == POINT || this == POINTM || this == POINTZ) {
    return false;
  }
  return true;
}