Win7 64bit
Использую утилиту osm2pgsql:
osm2pgsql -s -d gis -c -S default.style -U postgres -W postgres -H localhost -P 5432 -v RU.osm
После чего запрашивает пароль к базе(хотя я его указал:-W postgres) - ввожу его, после чего он выдает следующее:
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
Setting up table: planet_osm_line
NOTICE: table "planet_osm_line" does not exist, skipping
NOTICE: table "planet_osm_line_tmp" does not exist, skipping
Setting up table: planet_osm_polygon
NOTICE: table "planet_osm_polygon" does not exist, skipping
NOTICE: table "planet_osm_polygon_tmp" does not exist, skipping
Setting up table: planet_osm_roads
NOTICE: table "planet_osm_roads" does not exist, skipping
NOTICE: table "planet_osm_roads_tmp" does not exist, skipping
Mid: pgsql, scale=100, cache=800MB, maxblocks=102401*8192
Setting up table: planet_osm_nodes
*** WARNING: intarray contrib module not installed
*** The resulting database will not be usable for applying diffs.
NOTICE: table "planet_osm_nodes" does not exist, skipping
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "planet_osm_nodes
_pkey" for table "planet_osm_nodes"
Setting up table: planet_osm_ways
NOTICE: table "planet_osm_ways" does not exist, skipping
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "planet_osm_ways_
pkey" for table "planet_osm_ways"
Setting up table: planet_osm_rels
NOTICE: table "planet_osm_rels" does not exist, skipping
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "planet_osm_rels_
pkey" for table "planet_osm_rels"
!! You are running this on 32bit system, so at most
!! 3GB of RAM can be used. If you encounter unexpected
!! exceptions during import, you should try running in slim
!! mode using parameter -s.
Reading in file: postgres
error while opening file postgres
Почему он ищет какой-то файл-postgres, а не указанный мной RU.osm
Не могу залить RU.osm в postgres/postgis
-
- Новоприбывший
- Сообщения: 11
- Зарегистрирован: 25 янв 2012, 14:39
- Репутация: 0
- Aleksandr Dezhin
- Активный участник
- Сообщения: 244
- Зарегистрирован: 03 фев 2010, 10:47
- Репутация: 14
- Откуда: Москва
Re: Не могу залить RU.osm в postgres/postgis
Судя по всему ключ -W не предполагает параметра в виде пароля, он только включает запрос пароля ("Force password prompt"), а указать пароль в коммандной строке нельзя, скорее всего потому что это не безопасно. То есть, все что идет за ключем без параметров он воспринимает как имена файлов для загрузки и вполне логично пытается их открыть. Уберите postgres после -W.
Кто сейчас на конференции
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 3 гостя