Re: [Qgis-user] Format GETFEATUREINFO request from QGISwebserver
2015-03-26 11:44 GMT+01:00 Carles Vico Blanco : > Hi,qgis-users, > > in the same way of my last question, about how format the GetFeatureInfo > request in QGISServer, some people tells me that QGIS Server runs in a > Mapserver architecture (its true?) > Completely false. -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Format GETFEATUREINFO request from QGISwebserver
Hi,qgis-users, in the same way of my last question, about how format the GetFeatureInfo request in QGISServer, some people tells me that QGIS Server runs in a Mapserver architecture (its true?) If that's true, Mapserver format the getfeatureinfo request with a *.map file that includes a TEMPLATE option with HTML styles. This option is easier (for me I'm not a programmer) than the Python coding solution Now, my problem is that, when I search in QGISServer, I can not find any *.map file related about this. Someone knows where is this *.map file? Or how works QGISServer to call the mapserver .map file? Thanks a lot! Carles Vico 2015-03-20 12:21 GMT+01:00 Alessandro Pasotti : > 2015-03-20 12:08 GMT+01:00 Carles Vico Blanco : > > Thank you very much for the reply, but I have a question of your answer. > > When you say: "The latest release", I understand the QGIS 2.8, that's > > correct? And then, I need to install the QGIS Server Python plugin on > QGIS > > Server, as you say here > > http://www.itopen.it/qgis-server-python-plugins-ubuntu-setup/ , or It's > no > > necessary from the latest release of QGIS Desktop? > > > > I'll try it and I tell you my result! > > > > Thanks a lot! > > > > The article describe the setup to install the example HelloServer > plugin and let it run on Ubuntu 14.04 server edition, you might find > that useful to get started, you can also read the other 2 articles in > the QGIS section of my website > http://www.itopen.it/category/gis/qgis/qgis-server/ > > You need to write a custom filter to modifiy GETFEATUREINFO request, > if you examine the example plugin's code you will probably get some > inspiration. > > Python plugins for QGIS Server are available with QGIS >= 2.8 > > One of my tasks for the next HF is to add a "Server" section to the > plugins official repository, if you develop something re-usable, don't > forget to upload the plugin when it's done. > > > Happy coding :) > > -- > Alessandro Pasotti > w3: www.itopen.it > ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Format GETFEATUREINFO request from QGISwebserver
2015-03-20 12:08 GMT+01:00 Carles Vico Blanco : > Thank you very much for the reply, but I have a question of your answer. > When you say: "The latest release", I understand the QGIS 2.8, that's > correct? And then, I need to install the QGIS Server Python plugin on QGIS > Server, as you say here > http://www.itopen.it/qgis-server-python-plugins-ubuntu-setup/ , or It's no > necessary from the latest release of QGIS Desktop? > > I'll try it and I tell you my result! > > Thanks a lot! > The article describe the setup to install the example HelloServer plugin and let it run on Ubuntu 14.04 server edition, you might find that useful to get started, you can also read the other 2 articles in the QGIS section of my website http://www.itopen.it/category/gis/qgis/qgis-server/ You need to write a custom filter to modifiy GETFEATUREINFO request, if you examine the example plugin's code you will probably get some inspiration. Python plugins for QGIS Server are available with QGIS >= 2.8 One of my tasks for the next HF is to add a "Server" section to the plugins official repository, if you develop something re-usable, don't forget to upload the plugin when it's done. Happy coding :) -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Format GETFEATUREINFO request from QGISwebserver
Thank you very much for the reply, but I have a question of your answer. When you say: "The latest release", I understand the QGIS 2.8, that's correct? And then, I need to install the QGIS Server Python plugin on QGIS Server, as you say here http://www.itopen.it/qgis-server-python-plugins-ubuntu-setup/ , or It's no necessary from the latest release of QGIS Desktop? I'll try it and I tell you my result! Thanks a lot! Carles 2015-03-20 10:47 GMT+01:00 Alessandro Pasotti : > 2015-03-20 10:26 GMT+01:00 Carles Vico Blanco : > > > >> > Hi, I'm new in Qgis-user List. > >> > > >> > I wonder if it is possible to customize the html response to the > request > >> > "GetFeatureInfo" held by QGIS Web Server in the same way as is done in > >> > GeoServer, MapServer or ArcGIS server with a template, css ... > >> > > >> > For now, the result of my GETFEATUREINFO request takes certain html > >> > styles if displayed in the QGIS Web Client, but not shown in styles if > >> > displayed in another mapviewer. To do so it, I need to act on the > html file > >> > styles but I have not found. I dont know if it is possible in QGIS > Server? > >> > > >> > Thank you very much!!! > >> > > > > With the latest release you should be able to alter GETFEATUREINFO > response quite easily by writing a custom QGIS Server Python plugin. > > I would try with a simple regexp to inject the URL that points to your > custom CSS. > > > -- > Alessandro Pasotti > w3: www.itopen.it > ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Format GETFEATUREINFO request from QGISwebserver
Hi Carles, Have you tried experimenting with the map tip display tip in QGIS? In QGIS go to the layer properties, select "Display" and then enable "HTML". You can then add html code to display the attribute values which should affect the format of your GetFeatureInfo request. Frank. On 20/03/2015 11:26, Carles Vico Blanco wrote: > > Hi, I'm new in Qgis-user List. > > > > I wonder if it is possible to customize the html response to the request "GetFeatureInfo" held by QGIS Web Server in the same way as is done in GeoServer, MapServer or ArcGIS server with a template, css ... > > > > For now, the result of my GETFEATUREINFO request takes certain html styles if displayed in the QGIS Web Client, but not shown in styles if displayed in another mapviewer. To do so it, I need to act on the html file styles but I have not found. I dont know if it is possible in QGIS Server? > > > > Thank you very much!!! > > > > Carles Vico > > ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Format GETFEATUREINFO request from QGISwebserver
2015-03-20 10:26 GMT+01:00 Carles Vico Blanco : > >> > Hi, I'm new in Qgis-user List. >> > >> > I wonder if it is possible to customize the html response to the request >> > "GetFeatureInfo" held by QGIS Web Server in the same way as is done in >> > GeoServer, MapServer or ArcGIS server with a template, css ... >> > >> > For now, the result of my GETFEATUREINFO request takes certain html >> > styles if displayed in the QGIS Web Client, but not shown in styles if >> > displayed in another mapviewer. To do so it, I need to act on the html file >> > styles but I have not found. I dont know if it is possible in QGIS Server? >> > >> > Thank you very much!!! >> > With the latest release you should be able to alter GETFEATUREINFO response quite easily by writing a custom QGIS Server Python plugin. I would try with a simple regexp to inject the URL that points to your custom CSS. -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Format GETFEATUREINFO request from QGISwebserver
> > Hi, I'm new in Qgis-user List. > > > > I wonder if it is possible to customize the html response to the request "GetFeatureInfo" held by QGIS Web Server in the same way as is done in GeoServer, MapServer or ArcGIS server with a template, css ... > > > > For now, the result of my GETFEATUREINFO request takes certain html styles if displayed in the QGIS Web Client, but not shown in styles if displayed in another mapviewer. To do so it, I need to act on the html file styles but I have not found. I dont know if it is possible in QGIS Server? > > > > Thank you very much!!! > > > > Carles Vico > > ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user