@Override
public Object evaluate(final Object[] args) throws TypeErrorException {
if(args.length==1) {
final Geometry geo = GeoHelper.getStSPARQLGeometry(args[0]);
final Geometry boundary = geo.getBoundary();
return new StSPARQLSerializer().toLiteral(boundary);
}
else {
throw new TypeErrorException("Boundary Function expects exactly 1 arguments: one geometry object.");
}
}