gpt4 book ai didi

postgresql - 使用 osm2pgsql 导入 map 时出错

转载 作者:行者123 更新时间:2023-11-29 12:43:51 24 4
gpt4 key购买 nike

我一直在按照本指南设置我自己的 osm 节点。 https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/

我完成了所有的编译和配置,没有出现任何问题(两次),但在两次运行中我都遇到了以下错误

Using built-in tag processing pipeline
Using projection SRS 3857 (Spherical Mercator)
Setting up table: planet_osm_point
Osm2pgsql failed due to ERROR: CREATE TABLE planet_osm_point (osm_id int8,"access" text,"addr:housename" text,"addr:housenumber" text,"addr:interpolation" text,"admin_level" text,"aerialway" text,"aeroway" text,"amenity" text,"area" text,"barrier" text,"bicycle" text,"brand" text,"bridge" text,"boundary" text,"building" text,"capital" text,"construction" text,"covered" text,"culvert" text,"cutting" text,"denomination" text,"disused" text,"ele" text,"embankment" text,"foot" text,"generator:source" text,"harbour" text,"highway" text,"historic" text,"horse" text,"intermittent" text,"junction" text,"landuse" text,"layer" text,"leisure" text,"lock" text,"man_made" text,"military" text,"motorcar" text,"name" text,"natural" text,"office" text,"oneway" text,"operator" text,"place" text,"poi" text,"population" text,"power" text,"power_source" text,"public_transport" text,"railway" text,"ref" text,"religion" text,"route" text,"service" text,"shop" text,"sport" text,"surface" text,"toll" text,"tourism" text,"tower:type" text,"tunnel" text,"water" text,"waterway" text,"wetland" text,"width" text,"wood" text,"z_order" int4,way geometry(POINT,3857) ) WITH ( autovacuum_enabled = FALSE ) failed: ERROR: type "geometry" does not exist
LINE 1: ... text,"width" text,"wood" text,"z_order" int4,way geometry(P...

我再次检查了数据库配置,一切似乎都井井有条。关于如何调试/修复此问题的任何想法?

谢谢。

最佳答案

type "geometry"does not exist 部分明确指出您没有安装 postgis 扩展。

也许您错过/忘记了有关在 postgres 数据库中创建扩展的教程的一部分?

substitute your username for username below

关于postgresql - 使用 osm2pgsql 导入 map 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35685210/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com