MSSQL.varchar_to_geometry_dtype¶
- MSSQL.varchar_to_geometry_dtype(table_name, geom_column_name, srid=None, schema_name=None)[source]¶
Alter a
VARCHAR
column containing geometry data to a geometry data type.- Parameters:
table_name (str) – Name of the table where the column exists.
geom_column_name (str) – Name of the VARCHAR column to convert to geometry data type.
srid (int | None) – Spatial Reference Identifier (SRID) associated with the coordinate system, tolerance and resolution; defaults to
None
.schema_name (str | None) – Name of the schema where the table is located; defaults to
DEFAULT_SCHEMA
(i.e.'master'
) ifschema_name=None
.