Class ST_Force3DM
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.convert.ST_Force3DM
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_Force3DM extends org.h2gis.api.DeterministicScalarFunctionForces a Geometry into 3DM mode by returning a copy with If a geometry has no M component, then a 0 M coordinate is tacked on. Z value is removed- Author:
- Erwan Bocher, CNRS, 2020
-
-
Constructor Summary
Constructors Constructor Description ST_Force3DM()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.GeometryCollectionconvert(org.locationtech.jts.geom.GeometryCollection gc, double mValue)Force the dimension of the GeometryCollection and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.LinearRingconvert(org.locationtech.jts.geom.LinearRing linearRing, double mValue)Force the dimension of the LinearRing and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.LineStringconvert(org.locationtech.jts.geom.LineString lineString, double mValue)Force the dimension of the LineString and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.MultiLineStringconvert(org.locationtech.jts.geom.MultiLineString multiLineString, double mValue)Force the dimension of the MultiLineString and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.MultiPointconvert(org.locationtech.jts.geom.MultiPoint mp, double mValue)Force the dimension of the MultiPoint and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.MultiPolygonconvert(org.locationtech.jts.geom.MultiPolygon multiPolygon, double mValue)Force the dimension of the MultiPolygon and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.Pointconvert(org.locationtech.jts.geom.Point p, double mValue)Force the dimension of the Point and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.Polygonconvert(org.locationtech.jts.geom.Polygon polygon, double mValue)Force the dimension of the Polygon and update correctly the coordinate dimensionstatic org.locationtech.jts.geom.Geometryforce3DM(org.locationtech.jts.geom.Geometry geom)Converts a XY, XYZ geometry to XYM.static org.locationtech.jts.geom.Geometryforce3DM(org.locationtech.jts.geom.Geometry geom, double mValue)Converts a XY, XYZ geometry to XYM.static org.locationtech.jts.geom.GeometryforceXYM(org.locationtech.jts.geom.Geometry geom, double mValue)Force the dimension of the geometry and update correctly the coordinate dimensionStringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
force3DM
public static org.locationtech.jts.geom.Geometry force3DM(org.locationtech.jts.geom.Geometry geom)
Converts a XY, XYZ geometry to XYM.- Parameters:
geom-Geometry- Returns:
- Geometry
-
force3DM
public static org.locationtech.jts.geom.Geometry force3DM(org.locationtech.jts.geom.Geometry geom, double mValue)Converts a XY, XYZ geometry to XYM.- Parameters:
geom-GeometrymValue- m value- Returns:
- M Geometry
-
forceXYM
public static org.locationtech.jts.geom.Geometry forceXYM(org.locationtech.jts.geom.Geometry geom, double mValue)Force the dimension of the geometry and update correctly the coordinate dimension- Parameters:
geom- the input geometrymValue- m value- Returns:
- M Geometry
-
convert
public static org.locationtech.jts.geom.Point convert(org.locationtech.jts.geom.Point p, double mValue)Force the dimension of the Point and update correctly the coordinate dimension- Parameters:
p-PointmValue- m value- Returns:
- Point
-
convert
public static org.locationtech.jts.geom.MultiPoint convert(org.locationtech.jts.geom.MultiPoint mp, double mValue)Force the dimension of the MultiPoint and update correctly the coordinate dimension- Parameters:
mp-MultiPointmValue- m value- Returns:
- MultiPoint
-
convert
public static org.locationtech.jts.geom.GeometryCollection convert(org.locationtech.jts.geom.GeometryCollection gc, double mValue)Force the dimension of the GeometryCollection and update correctly the coordinate dimension- Parameters:
gc-GeometryCollectionmValue- m value- Returns:
- GeometryCollection
-
convert
public static org.locationtech.jts.geom.MultiPolygon convert(org.locationtech.jts.geom.MultiPolygon multiPolygon, double mValue)Force the dimension of the MultiPolygon and update correctly the coordinate dimension- Parameters:
multiPolygon-MultiPolygonmValue- m value- Returns:
- M
MultiPolygon
-
convert
public static org.locationtech.jts.geom.MultiLineString convert(org.locationtech.jts.geom.MultiLineString multiLineString, double mValue)Force the dimension of the MultiLineString and update correctly the coordinate dimension- Parameters:
multiLineString-MultiLineStringmValue- m value- Returns:
- M
MultiLineString
-
convert
public static org.locationtech.jts.geom.Polygon convert(org.locationtech.jts.geom.Polygon polygon, double mValue)Force the dimension of the Polygon and update correctly the coordinate dimension- Parameters:
polygon-PolygonmValue- M value- Returns:
- M
Polygon
-
convert
public static org.locationtech.jts.geom.LineString convert(org.locationtech.jts.geom.LineString lineString, double mValue)Force the dimension of the LineString and update correctly the coordinate dimension- Parameters:
lineString-LineStringmValue- M value- Returns:
- M
LineString
-
convert
public static org.locationtech.jts.geom.LinearRing convert(org.locationtech.jts.geom.LinearRing linearRing, double mValue)Force the dimension of the LinearRing and update correctly the coordinate dimension- Parameters:
linearRing-LinearRingmValue- M value- Returns:
- M
LinearRing
-
-