Class ST_SubDivide
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.split.ST_SubDivide
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_SubDivide extends org.h2gis.api.DeterministicScalarFunction
-
-
Constructor Summary
Constructors Constructor Description ST_SubDivide()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.Geometrydivide(org.locationtech.jts.geom.Geometry geom)Divide the geometry into quadrantsstatic org.locationtech.jts.geom.Geometrydivide(org.locationtech.jts.geom.Geometry geom, int maxvertices)static voidfilterGeom(org.locationtech.jts.geom.Geometry geom, int maxvertices, Stack stack, List ret)Extract unique geometry and check if the geometry must be dividedStringgetJavaStaticMethod()static List<org.locationtech.jts.geom.Geometry>subdivide_recursive(org.locationtech.jts.geom.Geometry geom, int maxvertices)Divide a geometry in quadrant recursively-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
divide
public static org.locationtech.jts.geom.Geometry divide(org.locationtech.jts.geom.Geometry geom)
Divide the geometry into quadrants- Parameters:
geom-- Returns:
-
divide
public static org.locationtech.jts.geom.Geometry divide(org.locationtech.jts.geom.Geometry geom, int maxvertices)- Parameters:
geom-maxvertices-- Returns:
-
subdivide_recursive
public static List<org.locationtech.jts.geom.Geometry> subdivide_recursive(org.locationtech.jts.geom.Geometry geom, int maxvertices)
Divide a geometry in quadrant recursively- Parameters:
geom- input geometrymaxvertices- number of vertices in the final geometry- Returns:
-
-