svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.expressionevaluator / org.gvsig.expressionevaluator.lib / org.gvsig.expressionevaluator.lib.impl / src / main / java / org / gvsig / expressionevaluator / impl / function / spatial / STTouchesFunction.java @ 43512
History | View | Annotate | Download (479 Bytes)
1 |
package org.gvsig.expressionevaluator.impl.function.spatial; |
---|---|
2 |
|
3 |
import org.apache.commons.lang3.Range; |
4 |
import org.gvsig.expressionevaluator.spi.AbstractFunction; |
5 |
|
6 |
public class STTouchesFunction extends AbstractFunction { |
7 |
|
8 |
public STTouchesFunction() {
|
9 |
super("OGC", "ST_Touhes", Range.is(2)); |
10 |
} |
11 |
|
12 |
@Override
|
13 |
public Object call(Object[] args) throws Exception { |
14 |
boolean r = getGeom(args, 0).touches(getGeom(args, 1)); |
15 |
return r;
|
16 |
} |
17 |
|
18 |
} |