Skip to content
Simple script to view a PostGIS topology using QuantumGIS
Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README
qgis_pgis_topoview.sh
topoview_tpl.qgs

README

Simple script to generate a QGis project for a PostGIS topology.

Requirements
------------

 - A posix shell for creating the project file.
 - QGis >= 1.7.0 with fix for bug #3845 for loading the project file.
   See https://trac.osgeo.org/qgis/ticket/3845
 - Oh, well... PostGIS 2.0.0 for creating a topology.

Usage
-----

Create a project for topology named "mytopo":

 $ ./qgis_pgis_topoview.sh mytopo

Add PGDATABASE env variable if different from your username:

 $  PGDATABASE=mydb ./qgis_pgis_topoview.sh mytopo

Add -x switch if you also want to start qgis:

 $ PGDATABASE=mydb ./qgis_pgis_topoview.sh -x mytopo

The created project file will be created in the present working directory
and named after the parameters. For the example above:

 topoview_mydb_mytopo.qgs

If the file already exist you'll be asked if you want to override it.
You can still open the file w/out overriding the existing one (maybe 
because you tweaked it slightly).

License and credits
-------------------

Work is in the public domain.
Feel free to send a virtual beer to strk@keybit.net.
Something went wrong with that request. Please try again.