/** * Return the Type as String * * @return String representation for the type of this geometry */ public String getTypeString() { return getTypeString(this.type); }
/** * Return the Type as String * * @return String representation for the type of this geometry */ public String getTypeString() { return getTypeString(this.type); }
/** * Render the WKT version of this Geometry (without SRID) into the given * StringBuffer. * * @param sb StringBuffer to render into * @param putM flag to indicate if the M character should be used. */ public void outerWKT(StringBuffer sb, boolean putM) { sb.append(getTypeString()); if (putM && haveMeasure && dimension == 2) { sb.append('M'); } mediumWKT(sb); }
/** * Render the WKT version of this Geometry (without SRID) into the given * StringBuffer. * * @param sb StringBuffer to render into * @param putM flag to indicate if the M character should be used. */ public void outerWKT(StringBuffer sb, boolean putM) { sb.append(getTypeString()); if (putM && haveMeasure && dimension == 2) { sb.append('M'); } mediumWKT(sb); }
@Override protected Node makeNode() { RDFDatatype datatype = TypeMapper.getInstance().getSafeTypeByName(OgcVocab.wktLiteral); Geometry g = geometry.getGeometry(); Node result = NodeFactory.createLiteral(g.getTypeString() + g.getValue(), datatype); return result; }