0

我正在使用它来加载我的 osm 数据

C:\Users\EMRANUL>=osm2pgsql -c -G -d testpostgres -U postgres -H localhost -P 5432 -W mfmp -C 2000 --hstore -S  D:\M_Project\BANGLADESH\Shapefile\OSM\default.style D:\M_Project\BANGLADESH\Shapefile\OSM\nepal-latest.osm.pbf;
osm2pgsql SVN version 0.69-21289M

Password:**

这是我需要解决的结果

Using projection SRS 900913 (Spherical Mercator)
Setting up table: planet_osm_point
NOTICE:  table "planet_osm_point" does not exist, skipping
NOTICE:  table "planet_osm_point_tmp" does not exist, skipping
PREPARE get_way (int4) AS SELECT AsText(way) FROM planet_osm_point WHERE osm_id = $1;
 failed: ERROR:  function astext(geometry) does not exist
LINE 1: PREPARE get_way (int4) AS SELECT AsText(way) FROM planet_osm...
                                         ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

Error occurred, cleaning up
4

1 回答 1

0

您可以尝试使用最新版本的osm2pgsql(撰写本文时为 0.96.0)。

您正在使用的那个引用了已弃用的 PostGIS 函数。

于 2019-04-25T11:49:52.017 回答