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.ScalarFunctionThis 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 Classes Modifier and Type Class Description static classST_Transform.CopCacheA simple cache to manageCoordinateOperationstatic classST_Transform.CRSTransformFilterThis method is used to apply aCoordinateOperationto a geometry.
-
Constructor Summary
Constructors Constructor Description ST_Transform()Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJavaStaticMethod()static 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 table-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String 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
-
-