Class ST_GeneratePoints
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.create.ST_GeneratePoints
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_GeneratePoints extends org.h2gis.api.DeterministicScalarFunctionThis function is used to generate pseudo-random points until the requested number are found within the input area (polygon or multipolygon)- Author:
- Erwan Bocher, CNRS
-
-
Constructor Summary
Constructors Constructor Description ST_GeneratePoints()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.GeometrygeneratePoints(org.locationtech.jts.geom.Geometry geom, int nPts)Make the random pointsStringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
generatePoints
public static org.locationtech.jts.geom.Geometry generatePoints(org.locationtech.jts.geom.Geometry geom, int nPts) throws SQLExceptionMake the random points- Parameters:
geom- input geometry as polygon or multipolygonnPts- number of random points- Returns:
- Throws:
SQLException
-
-