Class GeometryExtrude
java.lang.Object
org.h2gis.functions.spatial.volume.GeometryExtrude
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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic org.locationtech.jts.geom.GeometryextractRoof(org.locationtech.jts.geom.LineString lineString, double height) Extract the linestring "roof".static org.locationtech.jts.geom.PolygonextractRoof(org.locationtech.jts.geom.Polygon polygon, double height) Extract the roof of a polygonstatic org.locationtech.jts.geom.MultiPolygonextractWalls(org.locationtech.jts.geom.LineString lineString, double height) Extrude the LineString as a set of walls.static org.locationtech.jts.geom.MultiPolygonextractWalls(org.locationtech.jts.geom.Polygon polygon, double height) Extract the walls from a polygonstatic org.locationtech.jts.geom.GeometryCollectionextrudeLineStringAsGeometry(org.locationtech.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 org.locationtech.jts.geom.GeometryCollectionextrudePolygonAsGeometry(org.locationtech.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.
-
Method Details
-
extrudePolygonAsGeometry
public static org.locationtech.jts.geom.GeometryCollection extrudePolygonAsGeometry(org.locationtech.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 org.locationtech.jts.geom.GeometryCollection extrudeLineStringAsGeometry(org.locationtech.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 org.locationtech.jts.geom.Geometry extractRoof(org.locationtech.jts.geom.LineString lineString, double height) Extract the linestring "roof".- Parameters:
lineString-height-- Returns:
-
extractWalls
public static org.locationtech.jts.geom.MultiPolygon extractWalls(org.locationtech.jts.geom.Polygon polygon, double height) Extract the walls from a polygon- Parameters:
polygon-height-- Returns:
-
extractRoof
public static org.locationtech.jts.geom.Polygon extractRoof(org.locationtech.jts.geom.Polygon polygon, double height) Extract the roof of a polygon- Parameters:
polygon-height-- Returns:
-
extractWalls
public static org.locationtech.jts.geom.MultiPolygon extractWalls(org.locationtech.jts.geom.LineString lineString, double height) Extrude the LineString as a set of walls.- Parameters:
lineString-height-- Returns:
-