Страница 1 из 1

osm2pgsql + schema

Добавлено: 06 дек 2014, 14:41
gala-kt
Добрый день!
Существует ли возможность загрузить данные посредством osm2pgsql не в схему public, а в другую, заведомо созданную в базе PG?
Спасибо.

Re: osm2pgsql + schema

Добавлено: 06 дек 2014, 14:50
Denis Rykov
Нет, не существует, только если поправить код и пересобрать osm2pgsql.
You can only specify the database name. osm2pgsql will then create the
tables "planet_osm_nodes", "planet_osm_ways", "planet_osm_rels",
"planet_osm_point", "planet_osm_line", "planet_osm_road" and
"planet_osm_polygon".

You can specify -p <prefix> to set another prefix than planet_osm.

If you need more fine-grained control over what tables are generated,
you could have a look at the "imposm" importer.

Re: osm2pgsql + schema

Добавлено: 06 дек 2014, 15:02
gala-kt
спасибо