UNICODE from OSM to PGSQL (part 2)
There is no problem importing OSM data into PostgresSQL / PostGIS.
In part one of the article we’ve seen Geofabrik’s shapefiles having a text data truncation problem, but using osm2pgsql everything gets into an UTF-8 database without a failure.
It’s as simple as:
$ osm2pgsql -l -c -S default.style africa.osm.bz2 -d osm The -l switch aks for keeping lat/long projection, -c requests creation of the schema, -d specifies the database to use.