TL;DR
Install Postgres 9.6, and then:
sudo pg_dropcluster 9.6 main --stop
sudo service postgresql stop
sudo pg_upgradecluster 9.5 main
sudo pg_dropcluster 9.5 main
<?xml version="1.0" encoding="utf-8"?> | |
<?xml-stylesheet type="text/xsl" href="http://qgis.demo:80/cgi-bin/qgis_mapserv.fcgi?MAP=postgresql:?service=pg_geotuga&sslmode=disable&schema=public&project=depende&SERVICE=WMS&REQUEST=XSL"?> | |
<WMS_Capabilities xmlns:sld="http://www.opengis.net/sld" xmlns:qgs="http://www.qgis.org/wms" version="1.3.0" xmlns="http://www.opengis.net/wms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?MAP=postgresql%3A%3Fservice%3Dpg_geotuga%26sslmode%3Ddisable%26schema%3Dpublic%26project%3Ddepende&SERVICE=WMS&REQUEST=GetSchemaExtension"> | |
<Service> | |
<Name>WMS</Name> | |
<KeywordList> | |
<Keyword vocabulary="ISO">infoMapAccessService</Keyword> | |
</KeywordList> | |
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" |
github | |
29637 | |
29598 | |
29511 | |
29374 | |
28865 | |
28564 | |
28546 | |
28545 | |
28382 |
psql services=pg_trabalho |
import psycopg2 | |
connection = psycopg2.connect(service='pg_trabalho') | |
# connection = psycopg2.connect(user = "cmb.user", password = "xxxxxxxx", host = "192.168.1.24", port = "5432", database = "trabalho") | |
cursor = connection.cursor() | |
# Print PostgreSQL Connection properties | |
print ( connection.get_dsn_parameters(),"\n") | |
# Print PostgreSQL version | |
cursor.execute("SELECT version();") | |
record = cursor.fetchone() |
""" | |
Standalone python script for QGIS3 on OSX. | |
""" | |
import os | |
import sys | |
# Define plugin locations from QGIS3 | |
sys.path.append('/Applications/QGIS3.app/Contents/Resources/python/') | |
sys.path.append('/Applications/QGIS3.app/Contents/Resources/python/plugins') | |
# Define Qt5 plugin path since Qt5 can't find it |
Can not attched a volume |
[https://gis.stackexchange.com/questions/257974/postgis-multipolygon-when-converted-to-shapefile-doesnt-match-the-source-geomet PostGIS Multipolygon when converted to shapefile doesn't match the source geometry] |
TL;DR
Install Postgres 9.6, and then:
sudo pg_dropcluster 9.6 main --stop
sudo service postgresql stop
sudo pg_upgradecluster 9.5 main
sudo pg_dropcluster 9.5 main