public static OGCType getInferredOGCType(Geometry geom) {
    switch (geom.getType()) {
    case Polygon:
      return OGCType.ST_MULTIPOLYGON;
    case Polyline:
      return OGCType.ST_MULTILINESTRING;
    case MultiPoint:
      return OGCType.ST_MULTIPOINT;
    case Point:
      return OGCType.ST_POINT;
    default:
      return OGCType.UNKNOWN;
    }
  }
Sets the WKID (in place) for the given hive geometry bytes

@param geomref reference to hive geometry bytes
@param wkid
ql/src/java/org/apache/hadoop/hive/ql/udf/esri/GeometryUtils.java