Class ST_Drape
java.lang.Object
org.h2gis.api.AbstractFunction
org.h2gis.api.DeterministicScalarFunction
org.h2gis.functions.spatial.topography.ST_Drape
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_Drape
extends org.h2gis.api.DeterministicScalarFunction
This function could be used to drape a geometry to a set of triangles
- Author:
- Erwan Bocher
-
Field Summary
Fields inherited from interface org.h2gis.api.Function
PROP_NAME, PROP_REMARKSFields inherited from interface org.h2gis.api.ScalarFunction
PROP_DETERMINISTIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.locationtech.jts.geom.Geometrydrape(org.locationtech.jts.geom.Geometry geomToDrape, org.locationtech.jts.geom.Geometry triangles) static org.locationtech.jts.geom.GeometrydrapeLineString(org.locationtech.jts.geom.LineString line, org.locationtech.jts.geom.Geometry triangles, org.locationtech.jts.index.strtree.STRtree sTRtree) Drape a linestring to a set of trianglesstatic org.locationtech.jts.geom.GeometrydrapeMultiLineString(org.locationtech.jts.geom.MultiLineString lines, org.locationtech.jts.geom.Geometry triangles, org.locationtech.jts.index.strtree.STRtree sTRtree) Drape a multilinestring to a set of trianglesstatic org.locationtech.jts.geom.GeometrydrapeMultiPolygon(org.locationtech.jts.geom.MultiPolygon polygons, org.locationtech.jts.geom.Geometry triangles, org.locationtech.jts.index.strtree.STRtree sTRtree) Drape a multilinestring to a set of trianglesstatic org.locationtech.jts.geom.GeometrydrapePoint(org.locationtech.jts.geom.Geometry pts, org.locationtech.jts.geom.Geometry triangles, org.locationtech.jts.index.strtree.STRtree sTRtree) Drape a point geometry to a set of trianglesstatic org.locationtech.jts.geom.GeometrydrapePoints(org.locationtech.jts.geom.Geometry pts, org.locationtech.jts.geom.Geometry triangles, org.locationtech.jts.index.strtree.STRtree sTRtree) Drape a multipoint geometry to a set of trianglesstatic org.locationtech.jts.geom.PolygondrapePolygon(org.locationtech.jts.geom.Polygon p, org.locationtech.jts.geom.Geometry triangles, org.locationtech.jts.index.strtree.STRtree sTRtree) Drape a polygon on a set of trianglesstatic org.locationtech.jts.geom.GeometrylineMerge(org.locationtech.jts.geom.Geometry geom, org.locationtech.jts.geom.GeometryFactory factory) A method to merge a geometry to a set of linestringMethods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.h2gis.api.Function
getProperty
-
Constructor Details
-
ST_Drape
public ST_Drape()
-
-
Method Details
-
getJavaStaticMethod
-
drape
public static org.locationtech.jts.geom.Geometry drape(org.locationtech.jts.geom.Geometry geomToDrape, org.locationtech.jts.geom.Geometry triangles) throws SQLException - Throws:
SQLException
-
drapePoints
public static org.locationtech.jts.geom.Geometry drapePoints(org.locationtech.jts.geom.Geometry pts, org.locationtech.jts.geom.Geometry triangles, org.locationtech.jts.index.strtree.STRtree sTRtree) Drape a multipoint geometry to a set of triangles- Parameters:
pts-triangles-sTRtree-- Returns:
-
drapePoint
public static org.locationtech.jts.geom.Geometry drapePoint(org.locationtech.jts.geom.Geometry pts, org.locationtech.jts.geom.Geometry triangles, org.locationtech.jts.index.strtree.STRtree sTRtree) Drape a point geometry to a set of triangles- Parameters:
pts-triangles-sTRtree-- Returns:
-
drapeMultiPolygon
public static org.locationtech.jts.geom.Geometry drapeMultiPolygon(org.locationtech.jts.geom.MultiPolygon polygons, org.locationtech.jts.geom.Geometry triangles, org.locationtech.jts.index.strtree.STRtree sTRtree) Drape a multilinestring to a set of triangles- Parameters:
polygons-triangles-sTRtree-- Returns:
-
drapeMultiLineString
public static org.locationtech.jts.geom.Geometry drapeMultiLineString(org.locationtech.jts.geom.MultiLineString lines, org.locationtech.jts.geom.Geometry triangles, org.locationtech.jts.index.strtree.STRtree sTRtree) Drape a multilinestring to a set of triangles- Parameters:
lines-triangles-sTRtree-- Returns:
-
drapeLineString
public static org.locationtech.jts.geom.Geometry drapeLineString(org.locationtech.jts.geom.LineString line, org.locationtech.jts.geom.Geometry triangles, org.locationtech.jts.index.strtree.STRtree sTRtree) Drape a linestring to a set of triangles- Parameters:
line-triangles-sTRtree-- Returns:
-
drapePolygon
public static org.locationtech.jts.geom.Polygon drapePolygon(org.locationtech.jts.geom.Polygon p, org.locationtech.jts.geom.Geometry triangles, org.locationtech.jts.index.strtree.STRtree sTRtree) Drape a polygon on a set of triangles- Parameters:
p-triangles-sTRtree-- Returns:
-
lineMerge
public static org.locationtech.jts.geom.Geometry lineMerge(org.locationtech.jts.geom.Geometry geom, org.locationtech.jts.geom.GeometryFactory factory) A method to merge a geometry to a set of linestring- Parameters:
geom-factory-- Returns:
-