MSSQL.varchar_to_geometry_dtype

MSSQL.varchar_to_geometry_dtype(table_name, geom_column_name=None, srid=None, schema_name=None, verbose=True, raise_error=False)[source]

Alters a VARCHAR column to a GEOMETRY type (MSSQL Specific).

Parameters:
  • table_name (str) – Name of the table where the column exists.

  • geom_column_name (str | None) – 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') if schema_name=None.

  • verbose (bool | int) – Whether to print error information if any. Defaults to True.

  • raise_error (bool) – Whether to raise the provided exception; if raise_error=False (default), the error will be suppressed.

See also