org.h2gis.h2spatialext.function.spatial.create
Class ST_MakeGrid
java.lang.Object
org.h2gis.h2spatialapi.AbstractFunction
org.h2gis.h2spatialext.function.spatial.create.ST_MakeGrid
- All Implemented Interfaces:
- Function, ScalarFunction
public class ST_MakeGrid
- extends AbstractFunction
- implements ScalarFunction
Create 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ST_MakeGrid
public ST_MakeGrid()
getJavaStaticMethod
public String getJavaStaticMethod()
- Specified by:
getJavaStaticMethod in interface 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
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.