org.h2gis.h2spatialext.function.spatial.volume
Class GeometryExtrude

java.lang.Object
  extended by org.h2gis.h2spatialext.function.spatial.volume.GeometryExtrude

public class GeometryExtrude
extends Object

This class is used to extrude a polygon or a linestring to a set of walls, roof, or floor using a height.

Author:
Erwan Bocher

Nested Class Summary
static class GeometryExtrude.TranslateCoordinateSequenceFilter
          Translate a geometry to a specific z value added to each vertexes.
 
Method Summary
static com.vividsolutions.jts.geom.Geometry extractRoof(com.vividsolutions.jts.geom.LineString lineString, double height)
          Extract the linestring "roof".
static com.vividsolutions.jts.geom.Polygon extractRoof(com.vividsolutions.jts.geom.Polygon polygon, double height)
          Extract the roof of a polygon
static com.vividsolutions.jts.geom.MultiPolygon extractWalls(com.vividsolutions.jts.geom.LineString lineString, double height)
          Extrude the LineString as a set of walls.
static com.vividsolutions.jts.geom.MultiPolygon extractWalls(com.vividsolutions.jts.geom.Polygon polygon, double height)
          Extract the walls from a polygon
static com.vividsolutions.jts.geom.GeometryCollection extrudeLineStringAsGeometry(com.vividsolutions.jts.geom.LineString lineString, double height)
          Extrude the linestring as a collection of geometries The output geometryCollection contains the floor, the walls and the roof.
static com.vividsolutions.jts.geom.GeometryCollection extrudePolygonAsGeometry(com.vividsolutions.jts.geom.Polygon polygon, double height)
          Extrude the polygon as a collection of geometries The output geometryCollection contains the floor, the walls and the roof.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

extrudePolygonAsGeometry

public static com.vividsolutions.jts.geom.GeometryCollection extrudePolygonAsGeometry(com.vividsolutions.jts.geom.Polygon polygon,
                                                                                      double height)
Extrude the polygon as a collection of geometries The output geometryCollection contains the floor, the walls and the roof.

Parameters:
polygon -
height -
Returns:

extrudeLineStringAsGeometry

public static com.vividsolutions.jts.geom.GeometryCollection extrudeLineStringAsGeometry(com.vividsolutions.jts.geom.LineString lineString,
                                                                                         double height)
Extrude the linestring as a collection of geometries The output geometryCollection contains the floor, the walls and the roof.

Parameters:
lineString -
height -
Returns:

extractRoof

public static com.vividsolutions.jts.geom.Geometry extractRoof(com.vividsolutions.jts.geom.LineString lineString,
                                                               double height)
Extract the linestring "roof".

Parameters:
lineString -
height -
Returns:

extractWalls

public static com.vividsolutions.jts.geom.MultiPolygon extractWalls(com.vividsolutions.jts.geom.Polygon polygon,
                                                                    double height)
Extract the walls from a polygon

Parameters:
polygon -
height -
Returns:

extractRoof

public static com.vividsolutions.jts.geom.Polygon extractRoof(com.vividsolutions.jts.geom.Polygon polygon,
                                                              double height)
Extract the roof of a polygon

Parameters:
polygon -
height -
Returns:

extractWalls

public static com.vividsolutions.jts.geom.MultiPolygon extractWalls(com.vividsolutions.jts.geom.LineString lineString,
                                                                    double height)
Extrude the LineString as a set of walls.

Parameters:
lineString -
height -
Returns:


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.