pgsql2shp和postsql命令行乱码

1、命令行乱码

  

设置环境变量PGCLIENTENCODING为GBK,退出PostgreSQL后重新登陆。

 

 2、pgsql2shp命令

pgsql2shp -f D:/yhmap/nyc_streets.shp -h 172.23.1.5 -u postgres -P qsxwdc -p 8862 yh_map  "SELECT tt.id,tt.name from  yh_map_meterbox tt where tt.display='水表箱' ";

posted @ 2021-05-13 11:27  羊大葱  阅读(508)  评论(0编辑  收藏  举报