Package org.h2gis.functions.spatial.crs
Class UpdateGeometrySRID
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.functions.spatial.crs.UpdateGeometrySRID
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class UpdateGeometrySRID extends org.h2gis.api.AbstractFunction implements org.h2gis.api.ScalarFunctionFunction to update the SRID of a geometry column- Author:
- Erwan Bocher, CNRS (2020)
-
-
Constructor Summary
Constructors Constructor Description UpdateGeometrySRID()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanchangeSRID(Connection connection, String table_name, String column_name, int srid)Method to update the SRIDstatic booleanchangeSRID(Connection connection, String schema_name, String table_name, String column_name, int srid)Method to update the SRIDstatic booleanchangeSRID(Connection connection, String catalog_name, String schema_name, String table_name, String column_name, int srid)Method to update the SRIDStringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
- Specified by:
getJavaStaticMethodin interfaceorg.h2gis.api.ScalarFunction
-
changeSRID
public static boolean changeSRID(Connection connection, String table_name, String column_name, int srid) throws SQLException
Method to update the SRID- Parameters:
connection- active connection to the databasetable_name- name of the tabecolumn_name- name of the geomtry columnsrid- value of the new srid- Returns:
- true if the SRID is changed
- Throws:
SQLException
-
changeSRID
public static boolean changeSRID(Connection connection, String schema_name, String table_name, String column_name, int srid) throws SQLException
Method to update the SRID- Parameters:
connection- active connection to the databaseschema_name- name of the schematable_name- name of the tabecolumn_name- name of the geomtry columnsrid- value of the new srid- Returns:
- true if the SRID is changed
- Throws:
SQLException
-
changeSRID
public static boolean changeSRID(Connection connection, String catalog_name, String schema_name, String table_name, String column_name, int srid) throws SQLException
Method to update the SRID- Parameters:
connection- active connection to the databasecatalog_name- name of the catalogschema_name- name of the schematable_name- name of the tabecolumn_name- name of the geomtry columnsrid- value of the new srid- Returns:
- true if the SRID is changed
- Throws:
SQLException
-
-