Class ST_MakeGrid
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.functions.spatial.create.ST_MakeGrid
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_MakeGrid extends org.h2gis.api.AbstractFunction implements org.h2gis.api.ScalarFunctionCreate a regular grid based on a table or a geometry envelope. The geometry envelope could be expressed using a subquery as (SELECT the_geom from myTable)- Author:
- Erwan Bocher
-
-
Constructor Summary
Constructors Constructor Description ST_MakeGrid()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResultSetcreateGrid(Connection connection, org.h2.value.Value value, double deltaX, double deltaY)Create a regular grid using the first input argument to compute the full extent.static ResultSetcreateGrid(Connection connection, org.h2.value.Value value, double deltaX, double deltaY, boolean isColumnsRowsMeasure)Create a regular grid using the first input argument to compute the full extent.StringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
- Specified by:
getJavaStaticMethodin interfaceorg.h2gis.api.ScalarFunction
-
createGrid
public static ResultSet createGrid(Connection connection, org.h2.value.Value value, double deltaX, double deltaY) throws SQLException
Create a regular grid using the first input argument to compute the full extent.- Parameters:
connection-value- could be the name of a table or a geometry.deltaX- the X cell sizedeltaY- the Y cell size- Returns:
- a resultset that contains all cells as a set of polygons
- Throws:
SQLException
-
createGrid
public static ResultSet createGrid(Connection connection, org.h2.value.Value value, double deltaX, double deltaY, boolean isColumnsRowsMeasure) throws SQLException
Create a regular grid using the first input argument to compute the full extent.- Parameters:
connection-value- could be the name of a table or a geometry.deltaX- the X cell sizedeltaY- the Y cell size- Returns:
- a resultset that contains all cells as a set of polygons
- Throws:
SQLException
-
-