Class UpdateGeometryZ
- java.lang.Object
-
- org.h2gis.functions.spatial.convert.UpdateGeometryZ
-
public class UpdateGeometryZ extends Object
This class is used to force the coordinate dimension of a geometry to 3 and update the z value- Author:
- Erwan Bocher
-
-
Constructor Summary
Constructors Constructor Description UpdateGeometryZ()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.GeometryCollectionconvert(org.locationtech.jts.geom.GeometryCollection gc, double z)Force the dimension of the GeometryCollection and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.LinearRingconvert(org.locationtech.jts.geom.LinearRing linearRing, double z)Force the dimension of the LinearRing and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.LineStringconvert(org.locationtech.jts.geom.LineString lineString, double z)Force the dimension of the LineString and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.MultiLineStringconvert(org.locationtech.jts.geom.MultiLineString multiLineString, double z)Force the dimension of the MultiLineString and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.MultiPolygonconvert(org.locationtech.jts.geom.MultiPolygon multiPolygon, double z)Force the dimension of the MultiPolygon and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.Polygonconvert(org.locationtech.jts.geom.Polygon polygon, double z)Force the dimension of the Polygon and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.Geometryforce(org.locationtech.jts.geom.Geometry geom, double z)Force the dimension of the geometry to 3, update correctly the coordinate dimension and change the z value
-
-
-
Method Detail
-
force
public static org.locationtech.jts.geom.Geometry force(org.locationtech.jts.geom.Geometry geom, double z)Force the dimension of the geometry to 3, update correctly the coordinate dimension and change the z value- Parameters:
geom- the input geometryz- the value to update- Returns:
-
convert
public static org.locationtech.jts.geom.GeometryCollection convert(org.locationtech.jts.geom.GeometryCollection gc, double z)Force the dimension of the GeometryCollection and update correctly the coordinate dimension- Parameters:
gc-z-- Returns:
-
convert
public static org.locationtech.jts.geom.MultiPolygon convert(org.locationtech.jts.geom.MultiPolygon multiPolygon, double z)Force the dimension of the MultiPolygon and update correctly the coordinate dimension- Parameters:
multiPolygon-z-- Returns:
-
convert
public static org.locationtech.jts.geom.MultiLineString convert(org.locationtech.jts.geom.MultiLineString multiLineString, double z)Force the dimension of the MultiLineString and update correctly the coordinate dimension- Parameters:
multiLineString-z-- Returns:
-
convert
public static org.locationtech.jts.geom.Polygon convert(org.locationtech.jts.geom.Polygon polygon, double z)Force the dimension of the Polygon and update correctly the coordinate dimension- Parameters:
polygon-z-- Returns:
-
convert
public static org.locationtech.jts.geom.LineString convert(org.locationtech.jts.geom.LineString lineString, double z)Force the dimension of the LineString and update correctly the coordinate dimension- Parameters:
lineString-z-- Returns:
-
convert
public static org.locationtech.jts.geom.LinearRing convert(org.locationtech.jts.geom.LinearRing linearRing, double z)Force the dimension of the LinearRing and update correctly the coordinate dimension- Parameters:
linearRing-z-- Returns:
-
-