Package org.teiid.query.function
Class GeometryFunctionMethods
- java.lang.Object
-
- org.teiid.query.function.GeometryFunctionMethods
-
public class GeometryFunctionMethods extends Object
-
-
Constructor Summary
Constructors Constructor Description GeometryFunctionMethods()
-
Method Summary
-
-
-
Method Detail
-
asText
@TeiidFunction(name="st_astext", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static ClobType asText(GeometryType geometry) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
asEwkt
@TeiidFunction(name="st_asewkt", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static ClobType asEwkt(GeometryType geometry) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
asBlob
@TeiidFunction(name="st_asbinary", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static BlobType asBlob(GeometryType geometry)
-
asBlob
public static BlobType asBlob(AbstractGeospatialType geometry, String encoding) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
asEwkb
@TeiidFunction(name="st_asewkb", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static BlobType asEwkb(GeometryType geometry)
-
asGml
@TeiidFunction(name="st_asgml", category="Geometry", pushdown=CAN_PUSHDOWN, nullOnNull=true) public static ClobType asGml(CommandContext context, GeometryType geometry) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
asKml
@TeiidFunction(name="st_askml", category="Geometry", pushdown=CAN_PUSHDOWN, nullOnNull=true) public static ClobType asKml(CommandContext context, GeometryType geometry) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
geomFromText
@TeiidFunction(name="st_geomfromtext", category="Geometry", nullOnNull=true) public static GeometryType geomFromText(ClobType wkt) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
geomFromText
@TeiidFunction(name="st_geomfromtext", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType geomFromText(ClobType wkt, int srid) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
geoFromBlob
@TeiidFunction(name="st_geomfromwkb", category="Geometry", nullOnNull=true, alias="ST_GEOMFROMBINARY") public static GeometryType geoFromBlob(BlobType wkb) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
geoFromBlob
@TeiidFunction(name="st_geomfromwkb", category="Geometry", pushdown=CAN_PUSHDOWN, nullOnNull=true, alias="ST_GEOMFROMBINARY") public static GeometryType geoFromBlob(BlobType wkb, int srid) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
geomFromGml
@TeiidFunction(name="st_geomfromgml", category="Geometry", nullOnNull=true) public static GeometryType geomFromGml(ClobType gml) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
geomFromGml
@TeiidFunction(name="st_geomfromgml", category="Geometry", pushdown=CAN_PUSHDOWN, nullOnNull=true) public static GeometryType geomFromGml(ClobType gml, int srid) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
intersects
@TeiidFunction(name="st_intersects", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean intersects(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
contains
@TeiidFunction(name="st_contains", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean contains(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
crosses
@TeiidFunction(name="st_crosses", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean crosses(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
disjoint
@TeiidFunction(name="st_disjoint", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean disjoint(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
distance
@TeiidFunction(name="st_distance", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Double distance(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
overlaps
@TeiidFunction(name="st_overlaps", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean overlaps(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
touches
@TeiidFunction(name="st_touches", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean touches(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
getSrid
@TeiidFunction(name="st_srid", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static int getSrid(GeometryType geom1)
-
setSrid
@TeiidFunction(name="st_setsrid", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType setSrid(GeometryType geom1, int srid)
-
equals
@TeiidFunction(name="st_equals", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean equals(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
envelope
@TeiidFunction(name="st_envelope", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType envelope(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
within
@TeiidFunction(name="st_within", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean within(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
dwithin
@TeiidFunction(name="st_dwithin", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean dwithin(GeometryType geom1, GeometryType geom2, double distance) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
simplify
@TeiidFunction(name="st_simplify", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType simplify(GeometryType geom, double tolerance) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
simplifyPreserveTopology
@TeiidFunction(name="st_simplifypreservetopology", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType simplifyPreserveTopology(GeometryType geom, double tolerance) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
force2D
@TeiidFunction(name="st_force_2d", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType force2D(GeometryType geom)
-
hasArc
@TeiidFunction(name="st_hasarc", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static boolean hasArc(GeometryType geom)
-
boundingBoxIntersects
@TeiidFunction(name="&&", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static boolean boundingBoxIntersects(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
geomFromEwkt
@TeiidFunction(name="st_geomfromewkt", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType geomFromEwkt(ClobType ewkt) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
geomFromEwkb
@TeiidFunction(name="st_geomfromewkb", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType geomFromEwkb(BlobType ewkb) throws FunctionExecutionException, SQLException
-
area
@TeiidFunction(name="st_area", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Double area(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
boundary
@TeiidFunction(name="st_boundary", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType boundary(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
buffer
@TeiidFunction(name="st_buffer", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType buffer(GeometryType geom, double distance) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
centroid
@TeiidFunction(name="st_centroid", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType centroid(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
convexHull
@TeiidFunction(name="st_convexhull", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType convexHull(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
coordDim
@TeiidFunction(name="st_coorddim", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Integer coordDim(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
curveToLine
@TeiidFunction(name="st_curvetoline", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType curveToLine(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
difference
@TeiidFunction(name="st_difference", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType difference(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
dimension
@TeiidFunction(name="st_dimension", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Integer dimension(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
endPoint
@TeiidFunction(name="st_endpoint", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType endPoint(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
exteriorRing
@TeiidFunction(name="st_exteriorring", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType exteriorRing(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
geometryN
@TeiidFunction(name="st_geometryn", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType geometryN(GeometryType geom, int index) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
geometryType
@TeiidFunction(name="st_geometrytype", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static String geometryType(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
interiorRingN
@TeiidFunction(name="st_interiorringn", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType interiorRingN(GeometryType geom, int index) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
intersection
@TeiidFunction(name="st_intersection", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType intersection(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
isClosed
@TeiidFunction(name="st_isclosed", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean isClosed(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
isEmpty
@TeiidFunction(name="st_isempty", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean isEmpty(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
isRing
@TeiidFunction(name="st_isring", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean isRing(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
isSimple
@TeiidFunction(name="st_issimple", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean isSimple(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
isValid
@TeiidFunction(name="st_isvalid", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean isValid(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
length
@TeiidFunction(name="st_length", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Double length(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
numGeometries
@TeiidFunction(name="st_numgeometries", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Integer numGeometries(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
numInteriorRings
@TeiidFunction(name="st_numinteriorrings", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Integer numInteriorRings(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
numPoints
@TeiidFunction(name="st_numpoints", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Integer numPoints(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
orderingEquals
@TeiidFunction(name="st_orderingequals", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean orderingEquals(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
point
@TeiidFunction(name="st_point", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType point(double x, double y)
-
pointN
@TeiidFunction(name="st_pointn", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType pointN(GeometryType geom, int index) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
perimeter
@TeiidFunction(name="st_perimeter", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Double perimeter(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
pointOnSurface
@TeiidFunction(name="st_pointonsurface", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType pointOnSurface(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
polygon
@TeiidFunction(name="st_polygon", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType polygon(GeometryType geom, int srid) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
relate
@TeiidFunction(name="st_relate", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static String relate(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
relate
@TeiidFunction(name="st_relate", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Boolean relate(GeometryType geom1, GeometryType geom2, String intersectionPattern) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
startPoint
@TeiidFunction(name="st_startpoint", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType startPoint(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
symDifference
@TeiidFunction(name="st_symdifference", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType symDifference(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
union
@TeiidFunction(name="st_union", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType union(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
ordinateX
@TeiidFunction(name="st_x", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Double ordinateX(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
ordinateY
@TeiidFunction(name="st_y", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Double ordinateY(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
ordinateZ
@TeiidFunction(name="st_z", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static Double ordinateZ(GeometryType geom) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
makeEnvelope
@TeiidFunction(name="st_makeenvelope", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType makeEnvelope(double xmin, double ymin, double xmax, double ymax)
-
makeEnvelope
@TeiidFunction(name="st_makeenvelope", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType makeEnvelope(double xmin, double ymin, double xmax, double ymax, int srid)
-
snapToGrid
@TeiidFunction(name="st_snaptogrid", category="Geometry", nullOnNull=true, pushdown=CAN_PUSHDOWN) public static GeometryType snapToGrid(GeometryType geom, float size) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
-