Skip to content

zjp369/shp2pg

Repository files navigation

shp2pg

介绍

   PostGis自带的PostGis Shapefile Import/Export Manager(shp2pgsql-gui.exe)无法导入文件名称带中文的.shp文件,

该脚本文件使用shp2pgsql.exe生成Postgres的sql导入文件,并使用psql.exe将sql文件导入数据库,从而实现Shapefile文件导 入空间数据库功能。该批处理可以把当前目录中的所有shp文件逐一入库,省去图形界面反复选取添加shp文件的麻烦,也避免 了漏选、重选等问题。

============================== Importing with configuration: 美国, public, geom, C:\t\美国.shp, mode=c, dump=1, simple=0, geography=0, index=1, shape=1, srid=0 C:\t\美国.shp: dbf file (.dbf) can not be opened. Shapefile import failed. Connecting: host=localhost port=5432 user=postgres password='******' dbname=w client_encoding=UTF8

============================== Importing with configuration: 美国, public, geom, C:\t\美国.shp, mode=c, dump=1, simple=0, geography=0, index=1, shape=0, srid=0 C:\t\美国.shp: dbf file (.dbf) can not be opened. Shapefile import failed.

软件架构

软件架构说明

安装教程

  1. xxxx
  2. xxxx
  3. xxxx

使用说明

  1. xxxx
  2. xxxx
  3. xxxx

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. Gitee 官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  4. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  5. Gitee 官方提供的使用手册 https://gitee.com/help
  6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published