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.
Related
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
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 am working in a project that uses AlFresco-4.2.c as the main program in Ubuntu 16.04, and also uses geoserver in tomcat configured with PostgreSQL.
The problem is that I have been searching for a week about how to install the postgis extension in the own postgresql of alfresco. I have searched in the official documentation of alfresco(http://docs.alfresco.com/4.0/tasks/postgresql-config.html) and other forums, but I have found nothing about extensions.
Do you know a way of installing it?
I have tried to use apt-get and the installer of DBEnterprises, but none of that worked.
I'm not sure what you've followed, but here is what I would have done.
As quickly read from the PostGis page, it's a separate extension on PostgreSQL.
So you'll need to forget about Alfresco for one second, find your local PostgreSQL installation.
It's mostly bundled by Alfresco in the alfresco folder, so e.g. /opt/alfresco-4.2.c/postgresql and the data resides /opt/alfresco-4.2.c/alf_data/postgresql.
If this doesn't work for you, just do the following:
Create a dump file from the current PostgreSQL
Install a PostgreSQL distro from Ubuntu (check the version numbers)
Install the PostGIS extension
Import the dump file
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 am trying to generate UUID in PostgreSQL 8.2. From the documentation I found uuid-ossp module can generate UUID but it supports only PostgreSQL 9+. Is there any way to use this uuid-ossp module in PostgreSQL 8.2 or generate UUID in PostgreSQL 8.2 by using query?
You may be confused about the packaging of that plugin for Postgres. Postgres 9.1 introduced a new packaging scheme called Extension. The idea is that the creator of a plugin does more work with regard to packaging so that the user of the plugin might do less work with regard to installation. The Create Extension command (a mis-nomer to my mind) installs a plugin into your Postgres cluster.
Previous to Postgres 9.1, you can install the UUID plugin, but doing so is not quite so simple. You must locate the "uuid-ossp" plugin appropriate to your version of Postgres. The plugin may well have been bundled with your Postgres cluster but not yet installed (activated). Within that plugin package find the SQL script used for installation. You then execute that script in your Postgres cluster.
For details, see my posting to the Postgres mailing list and my blog post on the old way to install and the new way to install the UUID plugin.
I cannot find the 8.2 doc, but did find the 8.3 doc for the uuid-ossp plugin. I do not know if 8.2 had a version of the uuid-ossp plugin, but I suppose so.
Postgres 8.2 reached end-of-life two years (2011-12). I strongly suggest planning an upgrade.
As Craig Ringer commented, you should be doing only the most basic maintenance to a Postgres 8.2 cluster. Asking about UUID support suggests some major changes. For such changes you really should first complete an upgrade to a more recent Postgres.
You could write a function PL/Perl or PL/Python that generates UUIDs using one of their modules.