Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

write geopands into postgres python

from sqlalchemy import create_engine
db_connection_url = "postgres://myusername:mypassword@myhost:5432/mydatabase";
engine = create_engine(db_connection_url)
countries_gdf.to_postgis(name="countries_table", con=engine)
Source by geopandas.org #
 
PREVIOUS NEXT
Tagged: #write #geopands #postgres #python
ADD COMMENT
Topic
Name
5+1 =