org.h2gis.h2spatialext.function.spatial.create
Class ST_Extrude
java.lang.Object
org.h2gis.h2spatialapi.AbstractFunction
org.h2gis.h2spatialapi.DeterministicScalarFunction
org.h2gis.h2spatialext.function.spatial.create.ST_Extrude
- All Implemented Interfaces:
- Function, ScalarFunction
public class ST_Extrude
- extends DeterministicScalarFunction
ST_Extrude takes a LINESTRING or POLYGON as input and extends it to a 3D
representation, returning a geometry collection containing floor, ceiling
and wall geometries. In the case of a LINESTRING, the floor and ceiling are
LINESTRINGs; for a POLYGON, they are POLYGONs.
- Author:
- Erwan Bocher
|
Method Summary |
static com.vividsolutions.jts.geom.GeometryCollection |
extrudeGeometry(com.vividsolutions.jts.geom.Geometry geometry,
double height)
Extrudes a POLYGON or a LINESTRING into a GEOMETRYCOLLECTION containing
the floor (input geometry), walls and ceiling. |
static com.vividsolutions.jts.geom.Geometry |
extrudeGeometry(com.vividsolutions.jts.geom.Geometry geometry,
double height,
int flag)
Extrudes a POLYGON or a LINESTRING into a GEOMETRYCOLLECTION containing
the floor (input geometry), walls and ceiling. |
String |
getJavaStaticMethod()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ST_Extrude
public ST_Extrude()
getJavaStaticMethod
public String getJavaStaticMethod()
extrudeGeometry
public static com.vividsolutions.jts.geom.GeometryCollection extrudeGeometry(com.vividsolutions.jts.geom.Geometry geometry,
double height)
throws SQLException
- Extrudes a POLYGON or a LINESTRING into a GEOMETRYCOLLECTION containing
the floor (input geometry), walls and ceiling.
Note : the NaN z value of the input geometry are replaced by a zero.
- Parameters:
geometry - Input geometryheight - Desired height
- Returns:
- Collection (floor, walls, ceiling)
- Throws:
SQLException
extrudeGeometry
public static com.vividsolutions.jts.geom.Geometry extrudeGeometry(com.vividsolutions.jts.geom.Geometry geometry,
double height,
int flag)
throws SQLException
- Extrudes a POLYGON or a LINESTRING into a GEOMETRYCOLLECTION containing
the floor (input geometry), walls and ceiling. A flag of 1 extracts
walls and a flag of 2 extracts the roof.
- Parameters:
geometry - Input geometryheight - Desired heightflag - 1 (walls), 2 (roof)
- Returns:
- Walls or roof
- Throws:
SQLException
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.