Class ST_SetSRID

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

    public class ST_SetSRID
    extends org.h2gis.api.AbstractFunction
    implements org.h2gis.api.ScalarFunction
    Return a new geometry with a replaced spatial reference id.
    Author:
    Nicolas Fortin
    • Constructor Detail

      • ST_SetSRID

        public ST_SetSRID()
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
        Specified by:
        getJavaStaticMethod in interface org.h2gis.api.ScalarFunction
      • setSRID

        public static org.locationtech.jts.geom.Geometry setSRID​(org.locationtech.jts.geom.Geometry geometry,
                                                                 Integer srid)
                                                          throws IllegalArgumentException
        Set a new SRID to the geometry
        Parameters:
        geometry - Geometry
        srid - srid code
        Returns:
        Geometry with an srid
        Throws:
        IllegalArgumentException