CC'ing back to the list, in case this can help someone down the track
through the list archive.
Thanks for the help Bernhard. I got there in the end.
The CRS mismatch (as described below) wasn't actually causing the
problem, although it did cause other issues if I got the map to load.
The problem with the map not loading was being caused by not having the
"Service Capabilities" box checked in Project Properties/OWS Server.
Once that's turned on, the project loads fine in the web client (albeit
with other issues unless the CRS stuff is sorted out also). Rookie
mistake, obviously.
Thanks again.
-voytek
Original Message
Subject:Re: [Qgis-user] Project not loading in web client
Date: Wed, 19 Feb 2014 10:27:08 +1100
From: Voytek Lapinski
To: Bernhard Ströbl
Hi Bernhard,
Aah, ok. I didn't realise the client and the project had to match,
figuring it would re-project if it had to.
I've tried your suggestions, changing everything to EPSG:4283 which is
the CRS I will need to use. There was no EPSG4283.js in
/site/libs/proj4js so created one using the flags for that CRS shown in
the QGIS desktop (should this work?). I still had the same behaviour.
At this point I thought it might be something to do with EPSG4283, so I
tried changing everything to EPSG3857 (including converting the source
data) as I know that works for the example projects. It still doesn't
work though. Failure mode is the same as before.
This is the version with everything in EPSG3857 if you want to have a look:
http://xx/qgiswebclient.html?map=/usr/local/share/qgis-web-client/projects/testshape3857.qgs
Thanks for your help with this!
--voytek
On 18/02/14 19:55, Bernhard Ströbl wrote:
line 180 of your Globaloptions.js reads
var authid = "EPSG:"+3857;
is this the projection of the QGIS project?
try:
- set the projection of the project the same as the projection of your
data (performance)
- change line 180 of Globaloptions.js accordingly
- and IMPORTANT: open project-properties OWS-Server, input data there
and especially limit the CRS to the CRS you set for the project.
Bernhard
Am 18.02.2014 09:35, schrieb Voytek Lapinski:
You can see the behaviour at:
http://x/qgiswebclient.html?map=/usr/local/share/qgis-web-client/projects/testshape.qgs
and the GetProjectSettings xml at:
http:///cgi-bin/qgis_mapserv.fcgi?map=/usr/local/share/qgis-web-client/projects/testshape.qgs&&_dc=1392711137396&SERVICE=WMS&VERSION=1.3&REQUEST=GetProjectSettings
I'm not sure what you mean by checking getmap request issues. If I
understand you correctly though, it's not actually making any getmap
requests. I've checked both firebug and the apache logs. Firebug
generally shows only these two requests after initial page load.
http:///cgi-bin/qgis_mapserv.fcgi?map=/usr/local/share/qgis-web-client/projects/testshape.qgs&&_dc=1392711943007&SERVICE=WMS&VERSION=1.3&REQUEST=GetProjectSettings
https://maps.googleapis.com/maps/api/js/AuthenticationService.Authenticate?1shttp%3A%2F%2Fgistest.octobit.com.au%2Fqgiswebclient.html%3Fmap%3D%2Fusr%2Flocal%2Fshare%2Fqgis-web-client%2Fprojects%2Ftestshape.qgs&5e1&callback=_xdc_._hvx0uq&token=34217
The second one seems strange, as I'm not using any google data in the
project. Occasionally you see it call some other stuff from
maps.googleapis.com which returns a 204, but I'm having trouble
recreating that now. Is it something to do with this maybe?
Sorry, it's probably something stupid I'm doing when setting up the
project (I'm new to QGIS). But I can't for the life of me work out what
it could be.
-voytek
On 18/02/14 18:53, Bernhard Ströbl wrote:
Hi Voytek,
is the QWC on a publicly available server?
If no could you post the GetProjectSettings xml?
To further dig into you could check the GetMap request QWC issues
(either with firebug or on apache's acces log)
Bernhard
Am 18.02.2014 07:43, schrieb Voytek Lapinski:
Hi Bernhard,
Thanks for the response. I have, yes.
Since my first email I have also tried to do it using a simpler
project
as you suggest. It has only a single layer, using a shapefile. That
fails in the same way, after a successful GetProjectSettings.
-voytek
On 18/02/14 17:33, Bernhard Ströbl wrote:
Hi Voytek,
have you configured your QWC (especially GlobalOption.js) as
described
in https://github.com/qgis/QGIS-Web-Client/blob/master/README ?
I would suggest to create a project with just one layer and get that
running.
Bernhard
Am 18.02.2014 05:44, schrieb Voytek Lapinski:
Hi All,
I am experiencing a problem on a new ubuntu/apache installation
of the
web client, where a project file is causing the web client to fail
after
loading the layers, but before drawing a map.
The problem is similar to
http://osgeo-org.1560.x6.nabble.com/Problem-loading-map-using-QGIS-we