python连接postgis_搭建简单的flask框架,并连接postgresql进行postgis操作
一、网站结构如下:注意html页面需要放在名为templates的文件夹下,这是flask的规定。二、Postgis操作位于pgConnect.py中,代码如下:#encoding: utf-8import psycopg2def insertGeo(start_time,end_time,reg_name,reg_radius,valid_time,reg_gov,guid,geom):con...