[Qgis-developer] QGIS web client enable search for Windows users

Marko Markovic gismarko86 at gmail.com
Mon Jan 20 01:36:56 PST 2014


First of all thanks for answering! I try to implement search that uses
existing layers! I try to do this looking at helloworld project, but
my first problem is that when I try to run helloworld.qgs form default
projects i cant see map and i am getting an error:


   1. Resource interpreted as Image but transferred with MIME type
   text/xml: "
   http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/home/web/qgis-web-client…2548,-7861923.8125477,12082423.812548,15950623.812548&WIDTH=300&HEIGHT=300<http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/home/web/qgis-web-client/projects/naturalearth_110million.qgs&LAYERS=Land&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A3857&BBOX=-11730123.812548,-7861923.8125477,12082423.812548,15950623.812548&WIDTH=300&HEIGHT=300>
   ". OpenLayers.js:494<http://localhost:91/qgisfolder/qgis-web-client-master/site/libs/openlayers/OpenLayers.js>


   1. GET
   http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/qgisfolder/QGIS-Web-Clie…=-50516615.263158,-13033000,50868915.263158,21121700&WIDTH=1128&HEIGHT=380<http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/qgisfolder/QGIS-Web-Client-master/projects/helloworld.qgs&LAYERS=&OPACITIES=&FORMAT=image%2Fpng&TRANSPARENT=TRUE&DPI=96&VERSION=1.3.0&EXCEPTIONS=INIMAGE&SERVICE=WMS&REQUEST=GetMap&STYLES=&CRS=EPSG%3A3857&BBOX=-50516615.263158,-13033000,50868915.263158,21121700&WIDTH=1128&HEIGHT=380>
   2.

and this is my URL request

*http://localhost:91/qgisfolder/qgis-web-client-master/site/qgiswebclient.html?map=/qgisfolder/QGIS-Web-Client-master/projects/helloworld.qgs
<http://localhost:91/qgisfolder/qgis-web-client-master/site/qgiswebclient.html?map=/qgisfolder/QGIS-Web-Client-master/projects/helloworld.qgs>*

I have my project named GisParcel.qgis-When I run it form location
C:\myproject\GisParcel.qgs its work fine. When it work fine URL is:
http://localhost:91/qgisfolder/qgis-web-client-master/site/qgiswebclient.html?map=
C:\myproject\GisParcel.qgs, but when I put it in project folder where is
helloworld.qgs located
(C:\OSGeo4W\apache\htdocs\qgisfolder\QGIS-Web-Client-master\projects) it's
not work and url for this is:

*http://localhost:91/qgisfolder/qgis-web-client-master/site/qgiswebclient.html?map=
<http://localhost:91/qgisfolder/qgis-web-client-master/site/qgiswebclient.html?map=>/qgisfolder/QGIS-Web-Client-master/projects/GisParcel.qgs*

And error is:
XHR finished loading:
"*http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/qgisfolder/QGIS-Web-Client-master/projects/
<http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/qgisfolder/QGIS-Web-Client-master/projects/>*
GisParcel
*.qgs&&_dc=1390210106830&SERVICE=WMS&VERSION=1.3&REQUEST=GetProjectSettings*
".
Uncaught TypeError: Cannot read property 'request' of undefined
QGISExtensions.js:194

Why my project wont work where i put relative path in url -
*map=/qgisfolder/QGIS-Web-Client-master/projects/GisParcel.qgs*
and work with path map=C:\myproject\GisParcel.qgs?

Why I am getting error when try to open helloworld.qgs project?







On Sun, Jan 19, 2014 at 1:24 PM, Andreas Neumann <a.neumann at carto.net>wrote:

> Hi Marco,
>
> You will have to provide more details in order that we can help you.
>
> Which search method are you trying to implement? There are at least
> three different methods: the QGIS server based search that uses existing
> layers within the project, the PostgreSQL/WSGI method, the
> PostgreSQL/PHP method.
>
> What did you do and what does not work?
>
> Andreas
>
> Am 19.01.2014 12:42, schrieb Marko Markovic:
> > Hi. Did anybody succeed in enabling search for QGIS web client on Windows
> > OS?
> > I follow all steps from Readme on
> https://github.com/qgis/qgis-web-client!
> > But my search wont work! Is there a way to do the change of the code so
> > that i can add my search panel?
> >
> >  Thanks!
> >
> >
> >
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140120/c503ead1/attachment-0001.html>


More information about the Qgis-developer mailing list