shpfile导入PostgreSQL

时间:2024-03-29 13:44:36

1、设置连接信息

shpfile导入PostgreSQL

2、设置编码

shpfile导入PostgreSQL

若导入PostgreSQL出现以下错误信息

Unable to convert data value to UTF-8 (iconv reports "Illegal byte sequence"). Current encoding is "GBK". Try "LATIN1" (Western European), or one of the values described at http://www.postgresql.org/docs/current/static/multibyte.html.

设置编码为GB18030

3、选择shpfile,注意文件路径不能有中文,另外要设置SRID,否则进行空间查询会出错。

shpfile导入PostgreSQL