org.h2gis.h2spatialext.function.spatial.affine_transformations
Class ST_Scale

java.lang.Object
  extended by org.h2gis.h2spatialapi.AbstractFunction
      extended by org.h2gis.h2spatialapi.DeterministicScalarFunction
          extended by org.h2gis.h2spatialext.function.spatial.affine_transformations.ST_Scale
All Implemented Interfaces:
Function, ScalarFunction

public class ST_Scale
extends DeterministicScalarFunction

ST_Scale scales the given geometry by multiplying the coordinates by the indicated scale factors.

Author:
Adam Gouge

Field Summary
 
Fields inherited from interface org.h2gis.h2spatialapi.ScalarFunction
PROP_DETERMINISTIC, PROP_NOBUFFER
 
Fields inherited from interface org.h2gis.h2spatialapi.Function
PROP_NAME, PROP_REMARKS
 
Constructor Summary
ST_Scale()
           
 
Method Summary
 String getJavaStaticMethod()
           
static com.vividsolutions.jts.geom.Geometry scale(com.vividsolutions.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 com.vividsolutions.jts.geom.Geometry scale(com.vividsolutions.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.h2spatialapi.AbstractFunction
addProperty, getProperty, removeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.h2gis.h2spatialapi.Function
getProperty
 

Constructor Detail

ST_Scale

public ST_Scale()
Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()

scale

public static com.vividsolutions.jts.geom.Geometry scale(com.vividsolutions.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 - Geometry
xFactor - x scale factor
yFactor - y scale factor
Returns:
The geometry scaled by the given x and y scale factors

scale

public static com.vividsolutions.jts.geom.Geometry scale(com.vividsolutions.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 - Geometry
xFactor - x scale factor
yFactor - y scale factor
zFactor - z scale factor
Returns:
The geometry scaled by the given x, y and z scale factors


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.