I need use ogr2ogr tool for import osm into PostgreSQL database. I've tried this command:
ogr2ogr -f PostgreSQL PG:"dbname='OSM_DB' host='localhost' port='5432' user='postgres' password='postgres'" "E:\Sources\OSM Data\map.osm.pbf"
I'll use ogr2ogr.exe which is default added into my PostgreSQL 9.6 installation bin folder. It return this error:
ERROR 1: Unable to find driver
PostgreSQL'. The following drivers are available: ->
PCIDSK' ->JP2OpenJPEG' ->
PDF' ->ESRI Shapefile' ->
MapInfo File' ->UK .NTF' ->
OGR_SDTS' ->S57' ->
DGN' ->OGR_VRT' ->
REC' ->Memory' ->
BNA' ->CSV' ->
GML' ->GPX' ->
KML' ->GeoJSON' ->
OGR_GMT' ->GPKG' ->
SQLite' ->ODBC' ->
WAsP' ->PGeo' ->
MSSQLSpatial' ->OpenFileGDB' ->
XPlane' ->DXF' ->
Geoconcept' ->GeoRSS' ->
GPSTrackMaker' ->VFK' ->
PGDUMP' ->OSM' ->
GPSBabel' ->SUA' ->
OpenAir' ->OGR_PDS' ->
WFS' ->HTF' ->
AeronavFAA' ->Geomedia' ->
EDIGEO' ->GFT' ->
SVG' ->CouchDB' ->
Cloudant' ->Idrisi' ->
ARCGEN' ->SEGUKOOA' ->
SEGY' ->XLS' ->
ODS' ->XLSX' ->
ElasticSearch' ->Walk' ->
CartoDB' ->AmigoCloud' ->
SXF' ->Selafin' ->
JML' ->PLSCENES' ->
CSW' ->VDV' ->
TIGER' ->AVCBin' ->
AVCE00' -> `HTTP'
Can you tell me how can I fix it ? I am using windows OS.
ogrinfo --formats
. Be systematic. Add--debug on
into ogr2ogr command for getting more info.