[Qgis-user] QGIS Web Client for Windows 7

Markus Weidenbach landconsult at freenet.de
Fri Mar 14 03:49:40 PDT 2014


Thanks again Bernhard.
Currently during the testing phase my server is only running from about 
09:00 - 18:00, when I am working in the office.
On http://landconsult.no-ip.com/QGIS-Web-Client-master/site/ you find 
also the link to my wms_demo.qgs

Thanks for the EPSG 31468 (GK4) update, I downloaded it (but since my 
EPSG is GK3 with EPSG 31467, I locally added a new entry to the file wit 
the EPSG 31467 parameters ).
I restartet Apache and the QWC again, but with no success.

Meanwhile I think the reason could be differences between the paths 
needed for Linux and the ones needed for Windows and the different 
syntax, which could easily be a source  for a small misspelling 
somewhere in the *.config or *.js files.

And like other window users, I also got confused about the function of
(a) 
C:\OSGeo4W\apache\htdocs\QGIS-Web-Client-master\cgi-bin\qgis_mapserv.fcgi and
(b) C:\OSGeo4W\apps\qgis\bin\qgis_mapserv.fcgi.exe

(b) is successfully being ued by my QGIS Map Server, but what file 
should be used by QWC?
(a) looks to me like an uncompiled version of (b), again with some Linux 
paths and variables in it and it is addressed in the default setting in 
GlobalOptions.js and GISProjectListing.js?

And when I execute (b) in a DOS CMD window I got following error 
(although the file works fine for the QGIS Server GetMap Request as 
described before):

*ERROR 4: Unable to open EPSG support file gcs.csv.**
**Try setting the GDAL_DATA environment variable to point to the 
directory containig EPSG csv files.**
*
Do you have any idea where to set the variable and where are the EPSG 
csv files?

Regards,

Markus


-- 
Dr. Markus Weidenbach
*landConsult.de*
Geographical Information Management
and Environmental Planning
D-77815 Bühl
Germany
e.mail see: http://landConsult.de
Am 14.03.2014 07:48, schrieb Bernhard Ströbl:
> Hi Markus,
>
> I cannot access any of the URLs you provided, are they supposed to be 
> accessed from the internet?
> If you want to use your demo project you have to set the projection in 
> GlobalOptions.js to the projection of your data and project (i.e. 
> EPSG:31467). Therefore you need to define this projection as 
> projection file in site/js/libs/proj4js/defs I just added EPSG:31468 
> to QWC for you to see how to do it. So checkout the latest version first.
> You also have to set yx in LayerOptions to true for EPSG:31467.
>
> Hope that helps
>
> Bernhard
>
> Am 13.03.2014 21:07, schrieb Markus Weidenbach:
>> Hi Bernhard,
>>
>> thanks for your comments.
>> The helloworld.qgis is being provided within the QGIS Web Client Master
>> version as a default *.qgs stored in
>> C:\OSGeo4W\apache\htdocs\QGIS-Web-Client-master\projects , so that`s why
>> I think it should work.
>>
>> Now I found that it is not even working as a simple QGIS Server WMS
>> Request, as follows:
>> http://landconsult.no-ip.com/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&SRS=EPSG:3857&REQUEST=GetMap&map=C:\OSGeo4W\apache\htdocs\QGIS-Web-Client-master\projects\helloworld.qgs&BBOX=-25749149,-13032966,26101391,21121731&WIDTH=1000&HEIGHT=800&LAYERS=Hello,Country&FORMAT=image/png 
>>
>>
>> Instead my own qgis project "wms_demo.qgs" with two shape files works
>> fine with the QGIS Server but it does not work with the Web Client ...
>>
>> This works fine:
>> http://landconsult.no-ip.com/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&SRS=EPSG:31467&REQUEST=GetMap&map=C:\OSGeo4W\apache\htdocs\QGIS-Web-Client-master\projects\wms_demo.qgs&BBOX=3453493.9,5358354.8,3461626.4,5363507.8&WIDTH=1000&HEIGHT=800&LAYERS=weg,bach&FORMAT=image/png 
>>
>>
>>
>> it also works without the SRS/EPSG information:
>> http://landconsult.no-ip.com/qgis/qgis_mapserv.fcgi.exe?REQUEST=GetMap&map=C:\OSGeo4W\apache\htdocs\QGIS-Web-Client-master\projects\wms_demo.qgs&BBOX=3453493.9,5358354.8,3461626.4,5363507.8&WIDTH=1000&HEIGHT=800&LAYERS=weg,bach&FORMAT=image/png 
>>
>>
>> But this one does not work (WebClient Interface is o.k., but shapes are
>> not loading):
>> http://landconsult.no-ip.com/QGIS-Web-Client-master/site/qgiswebclient.html?map=../projects/wms_demo.qgs 
>>
>>
>> I am afraid the reason might be a simple path setting in the
>> C:\OSGeo4W\apache\htdocs\QGIS-Web-Client-master\site\js files ....
>> that´s why it would be helpful to know somebody with a working QWC on
>> Windows.
>>
>> Regards,
>> Markus
>>
>>
>> -- 
>> Dr. Markus Weidenbach
>> *landConsult.de*
>> Geographical Information Management
>> and Environmental Planning
>> D-77815 Bühl
>> Germany
>> e.mail see: http://landConsult.de
>>
>>
>> Am 13.03.2014 12:10, schrieb Bernhard Ströbl:
>>> Hi Markus,
>>>
>>> I have no experience with QWC and Windows but maybe if you describe
>>> what you have done and what happens you may get an answer from the
>>> list. Your URLs are not accessible (time-out), at least for me.
>>> More comments below
>>>
>>> Am 13.03.2014 10:37, schrieb Markus Weidenbach:
>>>> Dear List,
>>>>
>>>> for 2 days I was trying to get the QGIS Web Client running on my 
>>>> Windows
>>>> 7 / Apache 2 system.
>>>> I think I checked almost all comments and (still left open) 
>>>> questions on
>>>> that issue on the web and this mailing list and my impression is, that
>>>> nobody ever successfully installed the QGIS Web Client on 
>>>> Windows/Apache
>>>> or am I wrong (?).
>>>>
>>>> So, before I change to 3Liz lizmap-web-client, this post is my last 
>>>> hope
>>>> to get a positive answer ....
>>>>
>>>> My settings are:
>>>> - Windows 7, 64 bit with QGIS 2.2 and _fully working QGIS Server_ on
>>>> Windows/Apache (all updated/loaded on 10. March 2014 from OSGEO4W 
>>>> setup,
>>>> QGIS Server and Apache loaded with OSGEO4W "Web GIS Fast Installation"
>>>> setup mode).
>>>> - QGIS Web Client downloaded ZIP from
>>>> https://github.com/qgis/QGIS-Web-Client on 10. march 2014
>>>>
>>>> Like many other users I could successfully install the QGIS Server and
>>>> display my *.qgs data as a map on the browser and also get the
>>>> GetCapabilities information etc.
>>>> If you find my server switched on you can check:
>>>> http://landconsult.no-ip.com/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&SRS=EPSG:31467&REQUEST=GetMap&map=C:/OSGeo4W/apps/qgis/bin/wms_demo.qgs&BBOX=3453493.9,5358354.8,3461626.4,5363507.8&WIDTH=1000&HEIGHT=800&LAYERS=weg,bach&FORMAT=image/png 
>>>>
>>>>
>>>
>>> this is not Hello World, is it?
>>>>
>>>> But after the setting-up of the QGIS Web Client files under
>>>> C:\OSGeo4W\apache\htdocs\QGIS-Web-Client-master and after adjusting 
>>>> all
>>>> possible paths (including the right path in the GlobalOptions.js 
>>>> file at
>>>> <<var serverAndCGI = "http://127.0.0.1/qgis/qgis_mapserv.fcgi.exe">> I
>>>> was only able to see the QGIS Web Client interface but 
>>>> unfortunately not
>>>> the default map "helloworld.qgs".
>>>>
>>>> http://landconsult.no-ip.com/QGIS-Web-Client-master/site/qgiswebclient.html?map=/Qgis-Web-Client-master/projects/helloworld.qgs 
>>>>
>>>>
>>>
>>> so do you get Hello world in another client (entering a GetMap request
>>> in your Browser or QGIS desktop)?
>>> Why are you not setting QWC on the project you mention above in order
>>> to decide whether it is a server or client problem?
>>>>
>>>> So after all the reading and testing, I am not sure if QGIS 
>>>> WebClient is
>>>> able to run on Windows/Apache at all?
>>>>
>>>> Is there anybody out there with a working QGIS Web Client on
>>>> Windows/Apache?
>>>>
>>>> Thanks for your answers in advance (even if it is "no").
>>>>
>>>> Regards,
>>>>
>>>> Markus
>>>>
>>>>
>>>>
>>> Bernhard
>>>
>>>
>>> __________ Information from ESET Security, version of virus signature
>>> database 9536 (20140313) __________
>>>
>>> The message was checked by ESET Security.
>>>
>>>    part000.txt - is OK
>>>
>>> http://www.eset.com
>>>
>>>
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>>
>>
>>
>>
>> __________ Information from ESET Security, version of virus signature
>> database 9539 (20140313) __________
>>
>> The message was checked by ESET Security.
>>
>> - is OK
>>  > MIME > part000.txt - is OK
>>  > MIME > part001.htm - is OK
>> part001.txt - is OK
>>
>> http://www.eset.com
>>
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>> __________ Information from ESET Security, version of virus signature 
>> database 9539 (20140313) __________
>>
>> The message was checked by ESET Security.
>>
>>       - is OK
>>         > MIME > part000.txt - is OK
>>         > MIME > part001.htm - is OK
>>      part001.txt - is OK
>>
>> http://www.eset.com
>>
>
>
>
> __________ Information from ESET Security, version of virus signature 
> database 9540 (20140313) __________
>
> The message was checked by ESET Security.
>
>    part000.txt - is OK
>
> http://www.eset.com
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140314/2bb64c0d/attachment.html>


More information about the Qgis-user mailing list