Class ST_Translate

  • All Implemented Interfaces:
    org.h2gis.api.Function, org.h2gis.api.ScalarFunction

    public class ST_Translate
    extends org.h2gis.api.DeterministicScalarFunction
    Translates a geometry using X, Y (and possibly Z) offsets.
    Author:
    Erwan Bocher, Adam Gouge
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String MIXED_DIM_ERROR  
      • Fields inherited from interface org.h2gis.api.Function

        PROP_NAME, PROP_REMARKS
      • Fields inherited from interface org.h2gis.api.ScalarFunction

        PROP_DETERMINISTIC
    • Constructor Summary

      Constructors 
      Constructor Description
      ST_Translate()  
    • Constructor Detail

      • ST_Translate

        public ST_Translate()
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • translate

        public static org.locationtech.jts.geom.Geometry translate​(org.locationtech.jts.geom.Geometry geom,
                                                                   double x,
                                                                   double y)
        Translates a geometry using X and Y offsets.
        Parameters:
        geom - Geometry
        x - X
        y - Y
        Returns:
        Translated geometry
      • translate

        public static org.locationtech.jts.geom.Geometry translate​(org.locationtech.jts.geom.Geometry geom,
                                                                   double x,
                                                                   double y,
                                                                   double z)
        Translates a geometry using X, Y and Z offsets.
        Parameters:
        geom - Geometry
        x - X
        y - Y
        z - Z
        Returns:
        Translated geometry