hdus / pg_raster_upload

QGIS plugin for uploading raster data to a PostGIS database.
GNU General Public License v2.0
5 stars 3 forks source link

"PostGIS Raster Extension not installed in destination DB" Error message #7

Open GTornero opened 2 years ago

GTornero commented 2 years ago

I am working with PostGIS 2.5 and I am getting the "PostGIS Raster Extension not installed in destination DB" Error message.

This is because in older versions of PostGIS, PostGIS Raster was included in the main extension. I think the split was done in PostGIS 3 onwards.

It would be good for backward compatibility to first check the PostGIS version, and for the older versions where PostGIS raster was bundled with normal PostGIS , to avoid throwing this error.

As shown in the attached image "postgis_raster" is not in the list of installed extensions but I still have raster functionality in the database as its bundled with normal PostGIS for this version.

image

image

hdus commented 2 years ago

I don't have a chance to correct this until further notice. Please take over and send me a pull request

lefcgis commented 10 months ago

I have the same problem as GTornero, but I have 3.3 PostGIS version. So I don't know what is the exactly problem :v

image

Please, can you fix it?

lefcgis commented 10 months ago

Hahahah, I've already solve this issue xD

Everydatabase needs to run this code

image

That's all!

Lucho