0

I am new to PostgreSQL, PostGIS, and pgAdmin. I am trying to import a shapefile through the DB Manager (PostGIS --> my specific database) in QGIS. I keep getting an Error 2 message indicating that my shapefile cannot be uploaded. I have already successfully completed the PostGIS connection in QGIS. Additionally, I had already successfully created the extension for PostGIS in pgAdmin (CREATE EXTENSION postgis;). I am not sure what I am doing wrong. Below is an image of my error:

Error 2 Failure

2
  • Welcome to GIS SE. As a new user, please take the Tour. Please Edit the Question so that the error message is in the body of the Question as text (images are not legible on all devices, and hide the Question (and Answer) from others who may encounter the same error).
    – Vince
    Jan 11, 2023 at 23:08
  • Take a look at gis.stackexchange.com/questions/63982/… Jan 12, 2023 at 7:21

1 Answer 1

0

To fix it, just install the extensions listed in your default "postgres" database in the extensions provided under your newly created database. For example, I created a database called "princedb". Right click on the Extensions under princedb, click on create -> Extension. Install fuzzystrmatch, postgis, postgis_tiger_geocoder, postgis_toplogy extensions. Refresh your database on pgAdmin and QGIS. Try uploading your shapefiles. It should work fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.