【发布时间】:2020-12-10 22:24:24
【问题描述】:
我想在 postgis 中加载一个光栅文件 在命令提示符下我正在运行
C:\Program Files\PostgreSQL\9.4\bin>raster2pgsql -I -C -s 4326 D:\Aparna\Data\PNV\pnv_new.tiff public.testraster|psql -d geodjango
我收到以下错误
ERROR: Unable to read raster file: D:\Aparna\Data\PNV\pnv_new.tiff
psql: could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
received invalid response to SSL negotiation: -
我的端口是 5433。在浏览了几篇文章后,我更改了 pg_hba.conf 中的行 来自
# IPv4 local connections:
host all all 127.0.0.1/32 md5
到
# IPv4 local connections:
host all all 0.0.0.0/0 trust
但它不起作用。我该如何解决这个问题?
【问题讨论】:
标签: postgresql postgis raster