code: protected String getGtype(final String ogcGeometryType) {
        final String gType;
        if (ogcGeometryType == null) {
           gType = null;
        } else if ("LineString".equalsIgnoreCase(ogcGeometryType)) {
           gType = "LINE";
        } else if ("MultiLineString".equalsIgnoreCase(ogcGeometryType)) {
           gType = "MULTILINE";
        } else if ("Triangle".equalsIgnoreCase(ogcGeometryType)) {
           gType = "POLYGON";
        } else if ("Point".equalsIgnoreCase(ogcGeometryType)
              || "MultiPoint".equalsIgnoreCase(ogcGeometryType)
              || "Curve".equalsIgnoreCase(ogcGeometryType)
              || "MultiCurve".equalsIgnoreCase(ogcGeometryType)
              || "Polygon".equalsIgnoreCase(ogcGeometryType)
              || "MultiPolygon".equalsIgnoreCase(ogcGeometryType)) {
           gType = ogcGeometryType.toUpperCase();
        } else {
           gType = "COLLECTION";
        }
        return gType;
     }
docs: Converts the OGC geometry type to Oracle's <code>SDO_GTYPE</code>.
  
  @param ogcGeometryType
  the OGC geometry type.
  @return the corresponding Oracle <code>SDO_GTYPE</code>.