Class ST_Relate
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.predicates.ST_Relate
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_Relate extends org.h2gis.api.DeterministicScalarFunctionThis function is used to compute the relation between two geometries, as described in the SFS specification. It can be used in two ways. First, if it is given two geometries,it returns a 9-character String representation of the 2 geometries IntersectionMatrix. If it is given two geometries and a IntersectionMatrix representation, it will return a boolean : true it the two geometries' IntersectionMatrix match the given one, false otherwise.- Author:
- Nicolas Fortin
-
-
Constructor Summary
Constructors Constructor Description ST_Relate()Default constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJavaStaticMethod()static Stringrelate(org.locationtech.jts.geom.Geometry a, org.locationtech.jts.geom.Geometry b)static Booleanrelate(org.locationtech.jts.geom.Geometry a, org.locationtech.jts.geom.Geometry b, String iMatrix)-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
relate
public static String relate(org.locationtech.jts.geom.Geometry a, org.locationtech.jts.geom.Geometry b) throws SQLException
- Parameters:
a- Geometry Geometry.b- Geometry instance- Returns:
- 9-character String representation of the 2 geometries IntersectionMatrix
- Throws:
SQLException
-
relate
public static Boolean relate(org.locationtech.jts.geom.Geometry a, org.locationtech.jts.geom.Geometry b, String iMatrix)
- Parameters:
a- Geometry instanceb- Geometry instanceiMatrix- IntersectionMatrix representation- Returns:
- true it the two geometries' IntersectionMatrix match the given one, false otherwise.
-
-