Fdarco / OpenITS-PG-SUMO

Turn OpenITS dataset to PostgreSQL and SUMO
MIT License
7 stars 0 forks source link

安装扩展时的问题 #1

Open UMR99 opened 11 months ago

UMR99 commented 11 months ago

在向PostgreSQL创建 postgis 插创建 postgis 插件件时,报如下错误,您知道该如何解决吗?

错误: extension "postgis" is not available 描述: Could not open extension control file "C:/Users/UMR/Desktop/new/working/PostgreSQL/share/extension/postgis.control": No such file or directory. 提示: The extension must first be installed on the system where PostgreSQL is running.

Fdarco commented 11 months ago

你好,看起来好像是因为 PostgreSQL 找不到 PostGIS 导致的,你在执行 CREATE EXTENSION POSTGIS 之前安装了 PostGIS 吗?

UMR99 commented 11 months ago

护梦 @.***

 This is all the files I downloaded for PostGIS, but I'm not sure if it's installed correctly.

------------------ 原始邮件 ------------------ 发件人: "Fdarco/OpenITS-PG-SUMO" @.>; 发送时间: 2023年10月18日(星期三) 上午9:02 @.>; @.**@.>; 主题: Re: [Fdarco/OpenITS-PG-SUMO] 安装扩展时的问题 (Issue #1)

Hello, it looks like it was caused by PostgreSQL not finding PostGIS. Did you install PostGIS before executing 'create extension PostGIS'?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Fdarco commented 11 months ago

你可以参考下面的连接来安装 PostGIS 哈 ,https://postgis.net/documentation/getting_started/#installing-postgis

UMR99 commented 11 months ago

感谢您的回复。多亏您的帮助,我目前已经完成postgis插件的安装了。但在用postgis工具导入topo_centerroad.shp数据时,出现如图片的报错,我不知道原因是什么,还希望您能解答一下。

护梦 @.***

 

------------------ 原始邮件 ------------------ 发件人: "Fdarco/OpenITS-PG-SUMO" @.>; 发送时间: 2023年10月18日(星期三) 中午11:12 @.>; @.**@.>; 主题: Re: [Fdarco/OpenITS-PG-SUMO] 安装扩展时的问题 (Issue #1)

你可以参考下面的连接来安装 PostGIS 哈 ,https://postgis.net/documentation/getting_started/#installing-postgis

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Fdarco commented 11 months ago

你的图片貌似没有发过来,我这里看不到。

Fdarco commented 11 months ago

最好在 github 里上传图片和交流哈,邮件里面回复好像会缺少很多东西。

UMR99 commented 11 months ago

感谢您的回复。多亏您的帮助,我目前已经完成postgis插件的安装了。但在用postgis工具导入topo_centerroad.shp数据时,出现如图片的报错,我不知道原因是什么,还希望您能解答一下。 e6d12fcee74beaa96311ce6f54c0eac1

Fdarco commented 11 months ago

你可以看一下数据库里是不是已经有这个表了,字段重复可能就是重复导入了。

UMR99 commented 11 months ago

但是数据库里确实没有这个表呀 ![Uploading 屏幕截图 2023-10-19 110617.jpg…]()

Fdarco commented 11 months ago

你这个截图我又看不到了。。。要不试试删除数据库,重新来一遍

UMR99 commented 11 months ago

还是一样的结果,依然报错 屏幕截图 2023-10-19 110617

UMR99 commented 11 months ago

现在数据库里出现一个表了:spatial_ref_sys,但是readme中不是说导入topo_centerroad.shp会获得两张表吗,另一张表:topo_centerroad是的确没有的

Fdarco commented 11 months ago

那只能检查一下数据库连接的问题了,看看行不行

UMR99 commented 11 months ago

要如何检查呢?

UMR99 commented 11 months ago

另外,导入zone_roads 和 the_synthetic_individual_level_trip_dataset 两张表时又报错了: 屏幕截图 2023-10-19 132550