Class ST_Scale
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.affine_transformations.ST_Scale
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_Scale extends org.h2gis.api.DeterministicScalarFunctionST_Scale scales the given geometry by multiplying the coordinates by the indicated scale factors.- Author:
- Adam Gouge
-
-
Constructor Summary
Constructors Constructor Description ST_Scale()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJavaStaticMethod()static org.locationtech.jts.geom.Geometryscale(org.locationtech.jts.geom.Geometry geom, double xFactor, double yFactor)Scales the given geometry by multiplying the coordinates by the indicated x and y scale factors, leaving the z-coordinate untouched.static org.locationtech.jts.geom.Geometryscale(org.locationtech.jts.geom.Geometry geom, double xFactor, double yFactor, double zFactor)Scales the given geometry by multiplying the coordinates by the indicated x, y and z scale factors.-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
scale
public static org.locationtech.jts.geom.Geometry scale(org.locationtech.jts.geom.Geometry geom, double xFactor, double yFactor)Scales the given geometry by multiplying the coordinates by the indicated x and y scale factors, leaving the z-coordinate untouched.- Parameters:
geom- GeometryxFactor- x scale factoryFactor- y scale factor- Returns:
- The geometry scaled by the given x and y scale factors
-
scale
public static org.locationtech.jts.geom.Geometry scale(org.locationtech.jts.geom.Geometry geom, double xFactor, double yFactor, double zFactor)Scales the given geometry by multiplying the coordinates by the indicated x, y and z scale factors.- Parameters:
geom- GeometryxFactor- x scale factoryFactor- y scale factorzFactor- z scale factor- Returns:
- The geometry scaled by the given x, y and z scale factors
-
-