8

I'm looking for a rather basic PostGIS viewer. It should be possible to pan, zoom and retrieve coordinate information on mouse click. No need to support coordinate transformations. It should introduce as little further dependencies as possible. Preferably written in C++.

11

Although this isn't really the direct answer to your question, qgis acts as a relatively simple GIS viewer which can access PostGIS. In addition to the main application -- which is a relatively complex piece of software -- the core of the qgis library can be 'pulled out' and used from an application written in C/C++ or (I believe, with some work) Python.

Tim Sutton's post on the topic of building minimal qgis widgets is probably a good starting place for this. In order to build a simple widget for viewing a layer, the C code is only 63 lines, including headers + other boilerplate.

5

try SharpMap. Not written in C++ but in C#. Maybe it could be some use to you.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

2

QGIS started out as a viewer for PostGIS, and is now a full blown open source GIS. From QGIS there is a very close integration with PostGIS enabling dynamic views, updateable views and a DB manager for working with spatial data building and running queries. Styles for your data can also be saved in PostGIS. Default styles can be set, so when you or another user opens a layer from scratch a default style is applied.

DB Manager: enter image description here

SQL query builder: enter image description here

-1

try this link but its in vb.net
http://hilary-mushonga.blogspot.com/p/building-postgis-layer-viewer.html

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.