[GIS] osm2pgsql –hstore

openstreetmaposm2pgsqlpostgispostgresql

I'm working with PostgreSQL 8.$ and PostGIS and I need to import an OSM file to the database. I tried it with the utility osm2pgsql, but I have problem with the hstore extension.

Does anyone know how to solve this problem?

error while opening file --hstore

Best Answer

I needed to write --hstore (or -k) before I write path to the osm file:

osm2pgsql "C:\Program Files\PostgreSQL\8.4\osm2pgsql\x64\map.osm" -d postgis20 -U postgres -P 5432 -S --hstore "C:\Users\Ludva\Desktop\osm2pgsql\default.style"