I am trying to convert ESRI FileGDB to PostGIS
I created a new database: 'newkelibia' with pgAdmin 4
using OSGeo4W shell I executed this:
ogr2ogr, -f "PostgreSQL" PG:"host=localhost port=5432 user='postgres' password='1234' dbname='newkelibia'" C:\Users\ons\Documents\CityEngine\Default Workspace\new_project\models\KlibiaBD.gdb" -overwrite -progress --config PG_USE_COPY YES
and I got this error:
ERROR 1: PostgreSQL driver doesn't currently support database creation. Please create database with the `createdb' command. ERROR 1: PostgreSQL driver failed to create
Did I mess any steps ?
dbname='newkelibia'
ogrinfo PG:"host=localhost port=5432 user='postgres' password='1234' dbname='newkelibia'"
.PG:host=localhost port=5432 user='postgres' password='1234' dbname='newkelibia'' using driver
PostgreSQL' successful. AND I GOT THE SAME MSG