[CG]: drop arg geom_col from to_postgis

This commit is contained in:
Colas Geier 2022-09-12 14:45:32 +02:00
parent 85b70600fe
commit 079f22ae3a
2 changed files with 6 additions and 6 deletions

View File

@ -192,8 +192,8 @@ class update_ref_table:
name = self._table, name = self._table,
con = self.con, con = self.con,
schema = self._schema, schema = self._schema,
if_exists = 'append', if_exists = 'append'#,
geom_col = 'geom' # geom_col = 'geom'
) )
elif Q.lower() in ['no','n']: elif Q.lower() in ['no','n']:
pass pass
@ -266,8 +266,8 @@ def update_to_sql(df, con, table_name, schema_name, key_name, checkid=True):
name = 'temp_table', name = 'temp_table',
con = con, con = con,
schema = schema, schema = schema,
if_exists = 'replace', if_exists = 'replace'
geom_col = df.geometry.name # geom_col = df.geometry.name
) )
else: else:
df.to_sql( df.to_sql(

View File

@ -659,8 +659,8 @@ def update_to_sql(df, con, table_name, schema_name, key_name,geom_col='geom'):
con = con, con = con,
schema = schema, schema = schema,
if_exists = 'replace', if_exists = 'replace',
index = False, index = False #,
geom_col=geom_col, # geom_col=geom_col,
) )
else: else:
df.to_sql( df.to_sql(