isCompatibleWith method
Implementation
bool isCompatibleWith(EGeometryType geometryType) {
switch (geometryType) {
case LINESTRING:
return this == LINESTRING;
case MULTILINESTRING:
return this == LINESTRING || this == MULTILINESTRING;
case POINT:
return this == POINT;
case MULTIPOINT:
return this == POINT || this == MULTIPOINT;
case POLYGON:
return this == POLYGON;
case MULTIPOLYGON:
return this == POLYGON || this == MULTIPOLYGON;
default:
return false;
}
}