Geometry g = (Geometry) evaluateLiteral(expression, Geometry.class);
if (g instanceof LinearRing) {
//WKT does not support linear rings
g = g.getFactory().createLineString(((LinearRing) g).getCoordinateSequence());
}
out.write( "GeomFromText('"+g.toText()+"', "+currentSRID+")");
}
@Override
protected Object visitBinarySpatialOperator(BinarySpatialOperator filter,
PropertyName property, Literal geometry, boolean swapped, Object extraData) {