Package org.h2gis.functions.spatial.crs
Class ST_Transform
java.lang.Object
org.h2gis.api.AbstractFunction
org.h2gis.functions.spatial.crs.ST_Transform
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_Transform
extends org.h2gis.api.AbstractFunction
implements org.h2gis.api.ScalarFunction
This class is used to transform a geometry from one CRS to another.
Only integer codes available in the spatial_ref_sys table are allowed.
The default source CRS is the input geometry's internal CRS.
- Author:
- Erwan Bocher, Adam Gouge
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA simple cache to manageCoordinateOperationstatic classThis method is used to apply aCoordinateOperationto a geometry. -
Field Summary
Fields inherited from interface org.h2gis.api.Function
PROP_NAME, PROP_REMARKSFields inherited from interface org.h2gis.api.ScalarFunction
PROP_DETERMINISTIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.locationtech.jts.geom.GeometryST_Transform(Connection connection, org.locationtech.jts.geom.Geometry geom, Integer codeEpsg) Returns a new geometry transformed to the SRID referenced by the integer parameter available in the spatial_ref_sys tableMethods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.h2gis.api.Function
getProperty
-
Constructor Details
-
ST_Transform
public ST_Transform()Constructor
-
-
Method Details
-
getJavaStaticMethod
- Specified by:
getJavaStaticMethodin interfaceorg.h2gis.api.ScalarFunction
-
ST_Transform
public static org.locationtech.jts.geom.Geometry ST_Transform(Connection connection, org.locationtech.jts.geom.Geometry geom, Integer codeEpsg) throws SQLException, org.cts.op.CoordinateOperationException Returns a new geometry transformed to the SRID referenced by the integer parameter available in the spatial_ref_sys table- Parameters:
connection-geom-codeEpsg-- Returns:
- Throws:
SQLExceptionorg.cts.op.CoordinateOperationException
-