org.h2gis.h2spatial.internal.function.spatial.crs
Class ST_Transform

java.lang.Object
  extended by org.h2gis.h2spatialapi.AbstractFunction
      extended by org.h2gis.h2spatial.internal.function.spatial.crs.ST_Transform
All Implemented Interfaces:
Function, ScalarFunction

public class ST_Transform
extends AbstractFunction
implements 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
static class ST_Transform.CopCache
          A simple cache to manage CoordinateOperation
static class ST_Transform.CRSTransformFilter
          This method is used to apply a CoordinateOperation to a geometry.
 
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_Transform()
          Constructor
 
Method Summary
 String getJavaStaticMethod()
           
static com.vividsolutions.jts.geom.Geometry ST_Transform(Connection connection, com.vividsolutions.jts.geom.Geometry geom, int 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.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_Transform

public ST_Transform()
Constructor

Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()
Specified by:
getJavaStaticMethod in interface ScalarFunction

ST_Transform

public static com.vividsolutions.jts.geom.Geometry ST_Transform(Connection connection,
                                                                com.vividsolutions.jts.geom.Geometry geom,
                                                                int codeEpsg)
                                                         throws SQLException
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:
SQLException


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