Hot answers tagged

6

Go through the following questions. GIS for the web Steps to Start Web Mapping Web GIS Development Skill Sets


3

Apparently, the issue has been fixed in the development build of QGIS. http://hub.qgis.org/projects/quantum-gis/repository/revisions/75dc85b4d652116814873bb7674cab15ce6cde66 Installed QGIS version 1.9.0-Master and tried it out, works fine.


3

use Quantum GIS (QGIS) Web Client here and QGIS Server which @Gabriel Giroux stated above. A WMS based webgis client that makes use of QGIS specific WMS extensions (e.g. highlighting, printing, metadata, etc.). QGIS webclient reads the configuration from the WMS GetCapabilities command and builds the layer tree accordingly. Supports legend graphic, ...


3

QGIS web client has nothing to do with Mapserver. It is a frontend for QGIS SERVER, so you need to install it with the osgeo4w installer. The QGIS web client is not made to work on Windows server, so AFAIK there isn't a straightforward procedure to make it work. Anyway I found a way, but it isn't pretty: install QGIS Server and edit https_qgis.conf as ...


3

Assuming you have QGIS Server appropriately installed (with a working GetCapabilities request) on Ubuntu/Debian, the main steps involved on my end to get the QGIS Web Client up and running are as follows: Install python psycopg2, python-webob, git, libapache2-mod-wsgi using terminal: "sudo apt-get install python-psycopg2 python-webob git ...


2

I tried writing a comment but ran out of characters... I also had the same problem. But in my case, when I started the desktop version it always asked me for password and username of the connection. Now if in the connection you dont specify save user/pass, it wont write it in your .qgs file -> <datasource>dbname='DB_NAME' host=localhost port=5432 ...


2

I have tried to put my shapefiles, into /qgis-web-client/data/ and into /tmp/ Both work fine, because the location path is mentioned into the QGIS project I guess. But in order to see them into the QGIS-Web-Client, Apache (www-data) needs to have the right to open them. Which means, the 'other' needs to be able to read your shapefiles: rw-rw-r-- Hope that ...


2

I had the same problem after initial installation. Just in case it can help someone else, my solution was to edit the project properties (Project > Project Properties), check "Service capabilities", in WMS check "CRS restrictions" and add EPSG:4326 (CRS I use for map layers) and check "Advertised extent" and set extent with "Use Current Canvas Extent". Note ...


2

You can add OSM as a WMTS layer or with GDAL in your project and display it before you print the map.


2

MapServer is also an open-source (free option) that requires an Apache Web Server. There are tutorials at www.mapserver.org as well as installation instructions, and plenty of examples.


2

I had a similar issue.... Im My case, the SRS code was differente in the GlobalOptions.js and my qgis projects.... so, i changed the EPSG variable in globaloptions to a srs code used in qgis project and the maps loaded...


2

you have to change some code in qgis-web-client / site / js / WebgisInit.js you can add unit parameter to OpenLayers.Control.Measure method. you have to do this for polygon too... measureControls = { line: new OpenLayers.Control.Measure( OpenLayers.Handler.Path, { persist: true, units:'ft', handlerOptions: { ...


2

a few hours later I found my problem: I discovered apache logs at /var/log/apache2/error.log. An error read "(2)No such file or directory: apache2: could not open error log file /etc/apache2/${APACHE_LOG_DIR}/qgis-web-client-error.log. Unable to open logs". So I searched my qgis-web-client.conf for this line and found it and added the directory to the ...


2

Before publishing your QGIS project make sure that you have QGIS Server up and running. To accomplish that process I recommande you to have a look to this link below that explain step by step how to install ang configure QGIS server. http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial


2

I've had the same problem and asked the question on stackoverflow. As I can see on your site, you hadn't change the pathes in your project. So, you must copy /apache-conf/qgis-web-client.conf.tmpl to .../apache-conf/qgis-web-client.conf (or rename...but I don't want to risk, so I've just copied it). Then you must replace all ...


2

There is a fork of the qgis web client that should do the trick. However I haven't tested it http://dakcarto.github.com/qgis-web-client/


1

This is another comment. It appears I'm unable to add comments to other people's answers due to a lack of points. Thanks for moving my previous answer to a comment where it belongs. Wish this didn't have to be so difficult, but I understand the reasoning. Just wanted to say thanks to DAKCARTO and sorry for misspelling your name. Looking forward to ...


1

This web map was created using: QGIS - set up how you want your project to look QGIS Server (sometimes called QGIS MapServer) - serve up your QGIS project QGIS Web Client - browser-based access to your QGIS project If you don't already have one, I would recommend setting up a Linux box first. Linux Mint and Ubuntu work particularly well. You'll also ...


1

If QGIS can read and display the SQL Server 2008 data (or any WMS layers), then you should be able to serve up the data from QGIS Server to QGIS Web Client.


1

Thank you Aragon for your answer. My problem is still to find the right js-file. I tried all javascript files. I have pasted code-examples which i found in the internet with no success...


1

Can confirm this in python console: >>> layer = qgis.utils.iface.activeLayer() >>> layer.dataProvider().encoding() PyQt4.QtCore.QString(u'UTF-8') >>> layer.setProviderEncoding(u'latin9') >>> layer.dataProvider().setEncoding(u'latin9') >>> layer.dataProvider().encoding() PyQt4.QtCore.QString(u'UTF-8')


1

Your server works just fine. Use the search field in the upper right corner to search for Indonesia and you will be zoomed there. The only thing that seems to be misconfigured is the default location and/or zoom level.


1

Try changing useGetProjectSettings = true; to useGetProjectSettings = false; in js/GlobalOptions.js This solved my issue that no map could be loaded. You need QGIS Server with a verison higher than 1.8 to be able to use this extension.


1

For me the QGIS Web Client is working fine in Windows7. As the Script Alias changed from /cgi-bin/ "C:\OSGeo4W/bin/ to "C:\OSGeo4W/apps/qgis/bin/" the php is not working now. Server returns the error message as below when typed localhost on address bar. "The requested URL /cgi-bin/php-cgi.exe/index.phtml was not found on this server" I need to add the ...


1

i havent tried this but i think this would be work. first of all add all openlayers file in site / libs / openlayers as to getting dependencies. then make a js file with name qgis-modifications and add this to your main file... write the following code in your qgis-modifications.js. this should work... and consider this for adding google maps to your ...


1

Ok so after a lot of blindly changing settings I realise that my issue was probably primarily to do with my poor understanding of apache2, virtual hosts etc. I renamed the qgis-web-client folder to "map" and moved to: /var/www/html/ Updated my qgis-web-client.conf file paths: path-to-qgis-web-client = /var/www/html/map/ path-to-qgis-server-projects = ...


1

I figured it out myself. I commented out line 445-466 in WebgisInit.js, and so far it seems to work.


1

It would help if you provided some sort of debugging result from when you load your map. I know that you can get the console up on firefox with ctrl + shift + k. Then jump to javascript tab (because thats where errors happend to me) and you can find your error there. Usually the infinite loading icon means there is an error. And yes you should create ...


1

I did manage to get the QGIS web client (QWC) working in windows, but I never managed to get it to work using the hello world or the naturalearth examples. Some things to try: I have my QWC running my qgis projects directly, and as a result I'm not able to use the per project configuration options as described in the QWC documentation. That means I'm not ...


1

Ok for the qgis-web-client first of all you need a working GetCapabilities request. Now if I were you, I would redo the whole thing from the ground. First I would install the server, I used the link: http://hub.qgis.org/projects/quantum-gis/wiki/qgis_server_tutorial (do all the steps until you get a working GetCapabilities request). If you get any problems ...



Only top voted, non community-wiki answers of a minimum length are eligible