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.ScalarFunction
Function to update the SRID of a geometry column
- Author:
- Erwan Bocher, CNRS (2020)
-
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 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 SRIDMethods 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
-
UpdateGeometrySRID
public UpdateGeometrySRID()
-
-
Method Details
-
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
-