This commit is contained in:
Motiejus Jakštys 2021-05-16 23:35:38 +03:00
parent 76c799cf2b
commit aef042c07f
2 changed files with 1 additions and 4 deletions

View File

@ -282,10 +282,6 @@ salvis-wm-vw-chaikin-50k_2COLOR = orange
salvis-wm-vw-chaikin-50k_3LINESTYLE = dotted
salvis-wm-dp-chaikin-50k_1SELECT =
salvis-wm-vw-chaikin-50k_1SELECT =
.faux_db_pre: db init.sql
bash db start
bash db -f init.sql

View File

@ -64,6 +64,7 @@ def read_layer(select, width, maybe_quadrant):
conn = psycopg2.connect(PSQL_CREDS)
sql = "SELECT {way} as way1 FROM {select}".format(way=way, select=select)
return geopandas.read_postgis(sql, con=conn, geom_col='way1')