Class GeometryCoordinateDimension
java.lang.Object
org.h2gis.functions.spatial.convert.GeometryCoordinateDimension
This class is used to force the coordinate dimension of a geometry
- Author:
- Erwan Bocher, CNRS, 2020
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.locationtech.jts.geom.GeometryCollectionconvert(org.locationtech.jts.geom.GeometryCollection gc, int dimension) Force the dimension of the GeometryCollection and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.LinearRingconvert(org.locationtech.jts.geom.LinearRing linearRing, int dimension) Force the dimension of the LinearRing and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.LineStringconvert(org.locationtech.jts.geom.LineString lineString, int dimension) Force the dimension of the LineString and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.MultiLineStringconvert(org.locationtech.jts.geom.MultiLineString multiLineString, int dimension) Force the dimension of the MultiLineString and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.MultiPointconvert(org.locationtech.jts.geom.MultiPoint mp, int dimension) Force the dimension of the MultiPoint and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.MultiPolygonconvert(org.locationtech.jts.geom.MultiPolygon multiPolygon, int dimension) Force the dimension of the MultiPolygon and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.Polygonconvert(org.locationtech.jts.geom.Polygon polygon, int dimension) Force the dimension of the Polygon and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.Geometryforce(org.locationtech.jts.geom.Geometry geom, int dimension) Force the dimension of the geometry and update correctly the coordinate dimension
-
Constructor Details
-
GeometryCoordinateDimension
public GeometryCoordinateDimension()
-
-
Method Details
-
force
public static org.locationtech.jts.geom.Geometry force(org.locationtech.jts.geom.Geometry geom, int dimension) Force the dimension of the geometry and update correctly the coordinate dimension- Parameters:
geom- the input geometrydimension- supported dimension is 2, 3 if the dimension is set to 3 the z measure are set to 0- Returns:
-
convert
public static org.locationtech.jts.geom.MultiPoint convert(org.locationtech.jts.geom.MultiPoint mp, int dimension) Force the dimension of the MultiPoint and update correctly the coordinate dimension- Parameters:
mp-dimension-- Returns:
-
convert
public static org.locationtech.jts.geom.GeometryCollection convert(org.locationtech.jts.geom.GeometryCollection gc, int dimension) Force the dimension of the GeometryCollection and update correctly the coordinate dimension- Parameters:
gc-dimension-- Returns:
-
convert
public static org.locationtech.jts.geom.MultiPolygon convert(org.locationtech.jts.geom.MultiPolygon multiPolygon, int dimension) Force the dimension of the MultiPolygon and update correctly the coordinate dimension- Parameters:
multiPolygon-dimension-- Returns:
-
convert
public static org.locationtech.jts.geom.MultiLineString convert(org.locationtech.jts.geom.MultiLineString multiLineString, int dimension) Force the dimension of the MultiLineString and update correctly the coordinate dimension- Parameters:
multiLineString-dimension-- Returns:
-
convert
public static org.locationtech.jts.geom.Polygon convert(org.locationtech.jts.geom.Polygon polygon, int dimension) Force the dimension of the Polygon and update correctly the coordinate dimension- Parameters:
polygon-dimension-- Returns:
-
convert
public static org.locationtech.jts.geom.LineString convert(org.locationtech.jts.geom.LineString lineString, int dimension) Force the dimension of the LineString and update correctly the coordinate dimension- Parameters:
lineString-dimension-- Returns:
-
convert
public static org.locationtech.jts.geom.LinearRing convert(org.locationtech.jts.geom.LinearRing linearRing, int dimension) Force the dimension of the LinearRing and update correctly the coordinate dimension- Parameters:
linearRing-dimension-- Returns:
-