I have a problem with PostGIS and a connection to QGIS. I successfully connected to a database on a server but when I try to add a PostGIS Table, I am getting warning symbols next to all my tables. I have permission to all the tables and I am using the latest version of QGIS.
Any hints?
#kylie In your database create spatial reference system.
For postgresql----> create extension postgis
Related
I installed PostGis in the docker, in the standard database there are all the necessary extensions, but when creating a new one there are none, what do I need to do to fix this?
If you already has the libraries installed in the system, just connect to the database geo and execute the create extension:
CREATE EXTENSION postgis
Keep in mind that you have to additionally CREATE EXTENSION in the database you want, unless you create the database based on a template that already has PostGIS installed.
From the PostGIS documentation :
Once postgis is installed, it needs to be enabled in each individual
database you want to use it in.
I am currently running postgresql 9.6.1 with postGIS 2.3 on windows 7 after upgrading several weeks ago from 9.4. After the upgrade my database worked without issue for over a fortnight, however this morning I tried to move a table with geometry data to a different tablespace which returned the error: type "public.geometry" not found.
After investigation, all geom columns in my database are now missing the geometry data type and are unable to load in QGIS. I made no structural changes to my database to trigger this, I had just stopped a slow running query on a single table.
I have tried restarting the service and my PC, have checked that the extension still exists, have reinstalled PostGIS 2.3 and have tried redefining tables with a geometry type through pgadmin 4.
Does anyone have suggestions other than uninstall and reinstall all of postgresql?
As you did PostgreSQL upgrade, you got your PostGIS extension removed and your spatial data types wiped out along with corresponding columns. So, there's now way you can get your data back except you restore it from backup.
I'm new user of PostGIS and PostgreSQL to ask, if there is window for visualization of data, similar to MS SQL or Oracle? If yes, where?
I am not aware of such a tool. postgis is just an extension of postgresql; basically it manages data.
I would recommend you to use QGIS (it is a open source GIS visualisation software).
Download QGIS from https://www.qgis.org/
GO to the pluggin manager and install the Database connection manager
Go to Layer/Add postgis layer
Configure a connection to your existing postgis database
Choose the table you want to import.
(in fact any GIS visualization software should do the trick, but QGIS is free ;)
I’m trying to connect my database postgresql/postgis to mapguide maestro but it send me a error message.
Do you have some idea about this, or can you help me about how can I connect it with my database postgis? I’m using postgresql 9.4, mapguide open source 2.6.1 and mapguide maestro 6.0
You are probably connecting to a PostgreSQL database without PostGIS installed.
Either install PostGIS to that database (e.g. CREATE EXTENSION postgis), or modify your connection settings to the correct host/port/dbname with an existing PostGIS installation.
I have a schema in a DB2 v9.5 database, which has 20 tables under it. Now I need to migrate all the tables under this schema to a new DB2 v10.1 database. What is the easiest way to achieve this?
Thanks!
As of Now I am using db2move export/import to move data between two sets of tables (v9.5 and v10.1)
Thanks,
Naidu
IBM has an Upgrade Guide on Info Center that goes through all the steps needed to upgrade from a lower version to DB2 v10.1 (I'm guessing you're on Linux/Unix/Windows here, since you say from 9.5 to 10.1).