7

Here my usual steps to configure wms di qgis (2.4) tested on ubuntu 12.04 and 14.04 1) Install some requested packages: sudo apt-get install qgis-mapserver libapache2-mod-fcgid 2) Be sure fastcgi is enabled in apache2 modules: ls -la /etc/apache2/mods-enabled/fcgid.conf 2a) Modify /etc/apache2/sites-available/000-default.conf and add inside VirtualHost:...


7

If anyone encounters the same problem: I installed QGIS Server with a tutorial that made me install HelloServer. It is a nice little tool with which you have quick confirmation that your server is set up. However it puts this QGIS logo in all your WMS responses. Just delete the plugin, and everything will return to normal. If you want to keep the plugin ...


7

Finally, Matthias Kuhn, one of the developers of QGIS gave me the key. The WHERE clause is built checking the type of the primary key of the table. It should be an Integer and in some of my tables I saw that the type was Numeric(8,0). Those tables and primary keys were created by a third-party app some time ago. I changed the type to Integer and all ...


7

While you can configure the server to automatically serve a particular project, it's normally easier to specify the project (full) path directly with the MAP parameter in the query string, like: http://localhost/cgi-bin/project/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&MAP=/path/to/your/project.qgs To get some useful ...


7

You're hitting tiling artifacts. Namely, the labels are being cut between tiles (and the circle markers for the points probably as well); this is easily seen by adding a border to the Leaflet tiles by adding a bit of CSS like .leaflet-tile-loaded { border: 1px dashed red; }, e.g.: This happens when the rendering engine uses data strictly inside the bounds ...


6

It turns out that this is a relatively straightforward process for Apache, but since I still haven't seen any walkthroughs for it online I figured I'd list the steps that worked for me here. I used the 64-bit version (of all components, OSGeo4W, Apache, and mod_fcgid) with Apache 2.4, but I presume the 32-bit version will be very similar, as will be other 2....


6

The official page for QGIS server is this one. For windows you could take a look here. For ubuntu here . You could also download OSGeo live iso or vm and have a quick look on how it is done in their setup. You publish your QGIS Desktop projects into QGIS server which outputs WMS or WFS.


6

For example, one of the advantages of combination 2 (PostGIS + QGIS Desktop + QGIS Server + QGIS Client) over 1 (PostGIS + MapServer + OpenLayers) is that you could create it and set up faster and easier and therefore its more suitable for some lightweight web gis solutions. Why ? You could share existing QGIS projects or create a new one, set the data and ...


6

Your PYTHONPATH environment variable must be specified. QGIS Server 2.8 deals with Python extension and you must provide it a good environment. Here is my httpd.conf Alias /qgis/ "C:/OSGeo4W64/apps/qgis/bin/" FcgidInitialEnv PATH "C:\OSGeo4W64\bin;C:\OSGeo4W64\apps\qgis\bin;C:\OSGeo4W64\apps\grass\grass-6.4.3\lib;C:\OSGeo4W64\apps\grass\grass-6.4.3\bin;...


6

I have tried quickly by writing a quick QGIS Server plugin and it worked. I have followed the link you gave more or less. Make a folder called ServerExpression for instance. In this folder, add a quick metadata.txt: [general] name=Server expression description=Expose Python expressions on QGIS Server about=Expose Python expressions on QGIS Server ...


6

You need to go in the menu "Project" > "Properties...", choose in the configuration the section about "QGIS Server". Then, go to section "WFS Capabilities" and tick layers you want to publish (see below screenshot) At the moment, you did not tick any vector layers in your QGIS project, so that's why when you try to ...


5

QGIS Server has some limitations but you can add Lizmap on top and get more functionalities. The documentation is good and often updated. It handles users/groups. Cache management Bing, Google, IGN, OSM base layers You can easily build html popup for getFeatureInfo calls. The Lizmap plugin is very handy and gives you a nice GUI. The Lizmap web client based ...


5

Apparently it needs a styles& in the URL, even when there is no style defined. As the document OpenGIS Web Map Service (WMS) Implementation Specification states on www.opengeospatial.org in paragraph 7.3.2 GetMap request overview, table 8 the Styles parameter is mandatory. The mandatory STYLES parameter lists the style in which each layer is to be ...


5

I put my comment as an answer: You need to set up the environment variable,export QT_QPA_FONTDIR=<path to font files> for example export QT_QPA_FONTDIR=/usr/share/fonts/open-sans But when using fastcgi you have to do something like: @geraldo nginx fastcgi_param QT_QPA_FONTDIR "/usr/share/fonts/open-sans"; apache SetEnv QT_QPA_FONTDIR /usr/...


4

Adding fonts to Debian should generally be done at the 'local' or user level, instead of the system. You should copy them into /usr/local/share/fonts (for all users) or ~/.fonts (for a specific user). Reference the official font docs on how to load fonts and ensure they are actually being loaded by fontconfig. If rebuilding the font cache, i.e. fc-cache -fv,...


4

You could use the qgis-atlasprint python QGIS server (2.18) plugin


4

I've never looked at QGISserver but for GeoServer and MapServer the following: Yes. Usually when it is rendered to the image being returned. Each projection will usually be cached separately. You will note most caches don't offer so many projections. There is of course a small performance hit with any reprojection. Ease of coding, By default GeoServer for ...


4

NextGIS Web is server GIS, which features is very close to ESRI All Portal (if you mean this software). You can install it on your server or use it in a cloud. NextGIS Web features: vector layers with different styles (unlimited styles for one layer) raster layers external database layers (i.e. PostGIS) external WMS layers basemaps from QuickMapServices ...


3

If you look at the WMS description of the Geoserver website you can see the available parameters. Scale/zoom are defined by the combination of BBOX and WIDTH/HEIGHT. Tiled WMS do have different zoom levels, but a normal WMS can serve any any scale (if not restricted by the operators).


3

I'm not sure your configuration will work. It will end up as a mix of 32-bit and 64-bit binaries. You can install 32-bit Apache, QGIS and QGIS Server into C:\OSGEO4W\ and place the files in the usual locations. This will not harm your 64-bit installation of QGIS in C:\OSGEO4W64\. See also Installing Qgis Server on Windows 7 Machine


3

In source or cache settings, add paletted:false to force PNG to 24 bits not 8bits http://mapproxy.org/docs/1.6.0/confi...image-paletted globals: picture: paletted: false or cache: mycache: ... picture: paletted: false For more precision, the pixels of a PNG8 (8bit) have an alpha channel but they are either ...


3

After much research and experimenting, including changing file permissions and removing relative file locations in the QGS file, I was unable to get qgis-server to serve a shapefile. I set up Postgis 2 and was successfully able to a serve a polygon layer. My conclusions are: That qgis_mapserv.fcgi as per my configuration that uses QGIS 2.0.1 doesn't work ...


3

You don't say how you are opening your JS script in FireFox. I believe this layer type is using Ajax calls. You cannot open the file with file://myfirstmap.html. You have to use a web server to view the map. The problem that you will face with OpenLayers is that some formats like the text/tab/csv format does not use Ajax calls. So you start with these ...


3

It seems you do not declare any projection at the beginning of your code, whereas you are using within the view the declaration projection: 'EPSG:2966', You should first declare var projection = new ol.proj.Projection({ code: 'EPSG:2966', units: 'ft' }); It does not relies on Proj4js, see a previous answer to understand it purpose You can also visit ...


3

I ran into the same problem today, I had to install the qscintilla2 dependency from the OSGeo Installer, restart Apache and then the GetCapabilities worked!


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 libapache2-mod-wsgi"...


3

You're going to need to profile your data sources and workspace as a whole. With QGIS Server, you usually prepare the workspace in QGIS. How long does a similar map frame take to render in the Desktop application? Try with different layers and styling options in QGIS, and then publish to your server. Some ideas: If you're rendering complex features, use a ...


3

Yes, you can. I'd suggest you to start from the XML or the text format and turn it into json. Here is an example of how to proceed (this example does something different but you get the idea): http://www.itopen.it/qgis-server-getfeatureinfo-with-style/lang-pref/en/ Update: You need to transform the input format to xml before entering into the main loop ...


3

I think this mail thread answers part of your question. It looks like if you want to protect your Services, you have to do it on the request side, out of QGis itself. If I understand it correctly, the documentation you link to is about securing the QGis server itself, not the services that you create with it. EDIT : This library also mentions using ...


3

After playing around with settings I've figured it out. The problem was with the definition, I didn't add the port number so after I added 2 lines: [jdb:jauth] driver="pgsql" database="lizmap" host="localhost" port=5678 user="dummyuser" password="dummypass" [jdb:lizlog] driver="pgsql" database="lizmap" host="localhost" port=5678 user="dummyuser" password="...


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