Re: [Qgis-developer] QGIS MapServer and jQuery OpenLayer Client for Mobile Devices
Hi Noli, QGIS server and QGIS webclient can be regarded as two separate projects. While we try to integrate the two better, there is no reason why you cannot develop something in parallel with a different framework. The reason why I went with ExtJS, GeoExt and OpenLayers is that there is a community of governmental organizations around these frameworks in Switzerland, where I work. This way we can share costs and knowledge. As to mobile frameworks the same group decided to sponsor OpenLayers to improve mobile device support. This is now available as part of OpenLayers 2.11. We decided that we will be using the Sencha framework (instead of jquery mobile), because it is from the same company/community like ExtJS and also GeoExt will most likely be using the Sencha framework. I expect to start working on a mobile client in parallel to QGIS webclient (we could name it QGIS mobile client) in autumn this year if someone wants to join the effort. Regarding the WMS layer of gis.uster.ch: you should see all you need in the GetCapabilities request listed at http://gis.uster.ch/ - it really contains all the information you need to later issue GetMap, GetFeatureInfo, GetLegendGraphic or GetPrint requests. Note that this is a raster based WMS - it is not a WFS. Here is one link to a GetCapbilities request: http://gis.uster.ch/cgi/qgis_mapserv.fcgi?map=/home/www/projekte/av/grundplan_av.qgsservice=WMSRequest=GetCapabilities Hope this helps, Andreas On Wed, 15 Jun 2011 08:58:41 +1000, Noli Sicad wrote: Hi, The current QGIS webclient is for PC (i.e. desktop, laptop, netbook). I understand it is built using ExtJS, Geoexplorer hack. http://projects.opengeo.org/geoext/wiki/GeoExplorer http://blog.opengeo.org/2009/06/17/geoexplorer-preview/ http://suite.opengeo.org/geoexplorer/composer I like to use QGIS Mapserver as server for Mobile Devices (i.e. iPad, Android tablet, Meego tablet, HP WebOS tablet, etc) using jQuery, not ExtJS (Sencha Touch) since I need local Spatialite support for these devices. Again, I like to use jQuery instead of ExtJS as webclient for QGIS Mapser. Now, how can I utilise QGIS Mapserver for these mobile webclients? Andreas, what would be the right access to WMS layer in QGIS Mapserver (WMS)? ~~~ var base = new OpenLayers.Layer.WMS( Medford Streets Buildings, /geoserver/wms, {layers: medford} http://workshops.opengeo.org/openlayers-intro/vector/style.html Generic map = new OpenLayers.Map('map'); var wms = new OpenLayers.Layer.WMS( OpenLayers WMS, http://labs.metacarta.com/wms/vmap0;, {layers: 'basic,ground_01'} ); http://vasir.net/blog/openlayers/openlayers-tutorial-part-2-layers/ For example, this ZonePlan layer in http://gis.uster.ch/webgis/? http://gis.uster.ch/webgis/production/index.shtml?map=/home/www/projekte/raumplanung/raumplanung.qgsformat=image/jpegvisibleLayers=Gestaltungspl%C3%A4ne%20Beschriftung,Gemeindegrenze,Sondernutzungen,Sondernutzungen%20Bauzonen%20mit%20Gestaltungsplanpflicht,Differenzierte%20L%C3%A4rmempfindlichkeitsstufe,Nutzungszonen,UEP%20%282009%29 I just like to know the WMS layers, not the windowing ExtJS toolkit to render the whole thing. Thanks. Noli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- -- Andreas Neumann Böschacherstrasse 10A 8624 Grüt (Gossau ZH) Switzerland ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-mapserver: user authentication
Hi all After some thinking and discussions, it seems to me integrating the authentication directly in QGIS server does not have the same flexibility compared to a component that sits between webserver and WMS. E.g. if there is a WFS integration into QGIS webclient (as we discussed in Lisbon), authentication inside the WMS does not help. I'm not experienced with the software listed in Pirmins mail (e.g. if everything requires a Java server). If there is a lightweight component for access restriction, it could be an approach to bundle it together with QGIS server to make it easier for the user. Regards, Marco Am Dienstag, 14. Juni 2011, 02.12:07 schrieb Giovanni Manghi: Hi all, On Thu, 2011-06-09 at 16:33 +0200, Paolo Cavallini wrote: Hi all. We are interested in an extension of current qgis-mapserver, allowing different users (or groups of) to see different layers (or different projects). Is anyone working on that, or willing to collaborate on a mainstream solution? what we need to develop is quite simple (to explain). Users should be able to register/login in the webclient (users data stored in a geometryless table in the qgis project?), then, depending on what user group the user belong, show certain layers/groups in the TOC of the web client. User data (name, address, etc.) should be stored after the login to allow use them in the print layouts. One way or another we will have to develop something like that, so we would prefer to do it the right way, upstream and in a way that can be useful to as much people as possible. If anyone is interested in collaborate please us know. Cheers -- Giovanni -- ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS MapServer and jQuery OpenLayer Client for Mobile Devices
Hi Andreas, Thanks again for your reply. The reason why I went with ExtJS, GeoExt and OpenLayers is that there is a community of governmental organizations around these frameworks in Switzerland, where I work. This way we can share costs and knowledge. For sure I will go for ExtJS, GeoExt and Openlayers for PC. No question about that. In fact, I like to use ExtJS or Sencha Touch in the mobile as well. As to mobile frameworks the same group decided to sponsor OpenLayers to improve mobile device support. This is now available as part of OpenLayers 2.11. We decided that we will be using the Sencha framework (instead of jquery mobile), because it is from the same company/community like ExtJS and also GeoExt will most likely be using the Sencha framework. The only reason at the moment for I am using jQuery mobile is, I am able to use Spatialite local server with DOM and WebKit in iOS device (hopefully in Android, etc as well, Meego tablet is probably easier). It is hybrid application. It is OL script is enclosed in an Native app. I could do the same with Sencha Touch but again no Spatialite or Sqlite full support, just local web storage. I expect to start working on a mobile client in parallel to QGIS webclient (we could name it QGIS mobile client) in autumn this year if someone wants to join the effort. OK. I will help you on package it, making it a Native app in iOS, Android and Meego. Sencha touch - kitchen sink demo runs as a Native app in iOS SDK 4.3. I am using iOS 4.2 at moment. Regarding the WMS layer of gis.uster.ch: you should see all you need in the GetCapabilities request listed at http://gis.uster.ch/ - it really contains all the information you need to later issue GetMap, GetFeatureInfo, GetLegendGraphic or GetPrint requests. Note that this is a raster based WMS - it is not a WFS. Here is one link to a GetCapbilities request: http://gis.uster.ch/cgi/qgis_mapserv.fcgi?map=/home/www/projekte/av/grundplan_av.qgsservice=WMSRequest=GetCapabilities Ich habe keine anhung, how to use this. OK. I will look at it later on. At the moment, I am concentrating in getting my WKT from Spatilalite queries to render to OL. I have problem isolating the WKT data column so I can pass it to textarea then to WKT passer for OL map render. Thanks a lot. Tschuss, Noli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-mapserver: user authentication
Il giorno mer, 15/06/2011 alle 08.56 +0200, Marco Hugentobler ha scritto: I'm not experienced with the software listed in Pirmins mail (e.g. if everything requires a Java server). If there is a lightweight component for access restriction, it could be an approach to bundle it together with QGIS server to make it easier for the user. Sounds quite reasonable to me (and yes, avoiding java would be a must). So, if there are no different opinions, let's start selecting the best sw among those listed by Pirmin. All the best. -- Paolo Cavallini: http://www.faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-mapserver: user authentication
My first, *very* quick, review: Il giorno mar, 14/06/2011 alle 23.07 +0200, Pirmin Kalberer ha scritto: I don't think that authentication should be built into a WMS server. There are many solutions around, doing authentication and authorisation transparently on top of a WMS server: * http://52north.org/communities/security/index.html java :( * http://geoprisma.org/site/index.php Could not (yet) find any major issues. * https://sites.google.com/site/geoshieldproject/home One-man show, it seems. * http://www.secureows.org/ Seems dead (no commit in the last year). All the best. -- Paolo Cavallini: http://www.faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Re: python plugin and layer properties window
On Thu, Jun 9, 2011 at 5:18 AM, Michael Pfeiffer michael.pfeif...@bd.so.ch wrote: Hi everybody, no hints for this problem? I have the same problem with the mapcomposer window. When closing the mapcomposer window I want to get the close signal or close event of the window. I need this because I want to switch of some things in the map canvas automatically which I switched on when the user clicked the Map Button in the GUI. Hello, I am not sure I understand the question correctly, but: Do none of the provided signals work for you, like QMainWindow::destroyed() or QgsComposerView::finished() perhaps? Or just QDialog::finished(int) in the case of the Layer Properties dialog? You can get a pointer to those structures through QgsAppInterface, I think. There is the activeComposers list, and, of course, the mainWindow pointer. Regards, Camilo ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-mapserver: user authentication
Paolo, My quick comments... Am Mittwoch, 15. Juni 2011, um 09.17:11 schrieb Paolo Cavallini: My first, *very* quick, review: Il giorno mar, 14/06/2011 alle 23.07 +0200, Pirmin Kalberer ha scritto: I don't think that authentication should be built into a WMS server. There are many solutions around, doing authentication and authorisation transparently on top of a WMS server: * http://52north.org/communities/security/index.html java :( Most of security stuff is in Java :-( Swisstopo plans to use 52north for securing their OGC services. * http://geoprisma.org/site/index.php Could not (yet) find any major issues. Belongs to the UMN MapServer project stack. FOSS4G presentation in Denver: http://2011.foss4g.org/sessions/mapserver-project-stack * https://sites.google.com/site/geoshieldproject/home One-man show, it seems. FOSS4G presentation in Denver: http://qurl.org/i91 * http://www.secureows.org/ Seems dead (no commit in the last year). But is in production use, AFAIK. One advantage I didn't mention is that you delegate the in-depth security tests to these frameworks. Regards Pirmin -- Pirmin Kalberer Sourcepole - Linux Open Source Solutions http://www.sourcepole.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Annoying bug found in QGIS 1.7 (not present in 1.6)
Hi, I wrote a PYTHON plugin that does a simple feature select on a QgsVectorLayer: pnt = coordinates of mouse click on map myLayer= QgsVectorLayer Object tolerance = 1 rectangle = QgsRectangle() rectangle.setXMinimum (pnt.x() - tolerance) rectangle.setXMaximum (pnt.x() + tolerance) rectangle.setYMinimum (pnt.y() - tolerance) rectangle.setYMaximum (pnt.y() + tolerance) myLayer.select(rectangle , True) in QGIS 1.6 this code works with both shapefiles and postgis layers, in QGIS 1.7 it works ONLY in postgis layers, on shapefile layers it always returns 0 features.___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS MapServer and jQuery OpenLayer Client for Mobile Devices
Noli, Here is an example of using OpenLayers with QGIS server: http://live.osgeo.org/en/quickstart/openlayers_quickstart.html Pirmin Am Mittwoch, 15. Juni 2011, um 03.10:36 schrieb Noli Sicad: Hi Pimin, Yes, I have been working on it and I heavily modified even to support Spatialite query and it is running in Xcode (i.e compile in Xcode iOS 4.2 to run local spatialite). I got the spatialite Geometry using AsText / WKT but not display the WKT in OL yet. I got all the base maps in it i.e. Cloudmade, Google, Bing, Yahoo, Mapbox, ArcGISRest + the Edit (navigate, point, lines, polygons, modify, drag). Now, Just lacking the QGIS Mapserver side as server:-). Noli On 6/15/11, Pirmin Kalberer pi...@sourcepole.com wrote: Hi Noli Look at http://openlayers.org/dev/examples/mobile-jq.html Regards Pirmin Am Mittwoch, 15. Juni 2011, 00.58:41 schrieb Noli Sicad: Hi, The current QGIS webclient is for PC (i.e. desktop, laptop, netbook). I understand it is built using ExtJS, Geoexplorer hack. http://projects.opengeo.org/geoext/wiki/GeoExplorer http://blog.opengeo.org/2009/06/17/geoexplorer-preview/ http://suite.opengeo.org/geoexplorer/composer I like to use QGIS Mapserver as server for Mobile Devices (i.e. iPad, Android tablet, Meego tablet, HP WebOS tablet, etc) using jQuery, not ExtJS (Sencha Touch) since I need local Spatialite support for these devices. Again, I like to use jQuery instead of ExtJS as webclient for QGIS Mapser. Now, how can I utilise QGIS Mapserver for these mobile webclients? Andreas, what would be the right access to WMS layer in QGIS Mapserver (WMS)? ~~~ var base = new OpenLayers.Layer.WMS( Medford Streets Buildings, /geoserver/wms, {layers: medford} http://workshops.opengeo.org/openlayers-intro/vector/style.html Generic map = new OpenLayers.Map('map'); var wms = new OpenLayers.Layer.WMS( OpenLayers WMS, http://labs.metacarta.com/wms/vmap0;, {layers: 'basic,ground_01'} ); http://vasir.net/blog/openlayers/openlayers-tutorial-part-2-layers/ For example, this ZonePlan layer in http://gis.uster.ch/webgis/? http://gis.uster.ch/webgis/production/index.shtml?map=/home/www/projekte /ra umplanung/raumplanung.qgsformat=image/jpegvisibleLayers=Gestaltungspl %C3% A4ne%20Beschriftung,Gemeindegrenze,Sondernutzungen,Sondernutzungen%20Ba uzon en%20mit%20Gestaltungsplanpflicht,Differenzierte%20L%C3%A4rmempfindlich keit sstufe,Nutzungszonen,UEP%20%282009%29 I just like to know the WMS layers, not the windowing ExtJS toolkit to render the whole thing. Thanks. Noli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Pirmin Kalberer Sourcepole - Linux Open Source Solutions http://www.sourcepole.com -- Pirmin Kalberer Sourcepole - Linux Open Source Solutions http://www.sourcepole.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS MapServer and jQuery OpenLayer Client for Mobile Devices
Pirmin. Thanks a lot. ~~ var wms = new OpenLayers.Layer.WMS( WMS, http://localhost/cgi-bin/qgis_mapserv.fcgi;, { 'map': '/usr/local/share/qgis/QGIS-NaturalEarth-Example.qgs', 'layers':'HYP_50M_SR_W,10m_lakes,10m_rivers_lake_centerline'} ); map.addLayer(wms); ~~ I hope we can have 1 live QGIS Mapserver running even just to serve the above example. Probably we can ask OSGeo to sponsor WMS QGIS Mapserver running in OSGeo host network. Thanks. Noli On 6/15/11, Pirmin Kalberer pi...@sourcepole.com wrote: Noli, Here is an example of using OpenLayers with QGIS server: http://live.osgeo.org/en/quickstart/openlayers_quickstart.html Pirmin Am Mittwoch, 15. Juni 2011, um 03.10:36 schrieb Noli Sicad: Hi Pimin, Yes, I have been working on it and I heavily modified even to support Spatialite query and it is running in Xcode (i.e compile in Xcode iOS 4.2 to run local spatialite). I got the spatialite Geometry using AsText / WKT but not display the WKT in OL yet. I got all the base maps in it i.e. Cloudmade, Google, Bing, Yahoo, Mapbox, ArcGISRest + the Edit (navigate, point, lines, polygons, modify, drag). Now, Just lacking the QGIS Mapserver side as server:-). Noli On 6/15/11, Pirmin Kalberer pi...@sourcepole.com wrote: Hi Noli Look at http://openlayers.org/dev/examples/mobile-jq.html Regards Pirmin Am Mittwoch, 15. Juni 2011, 00.58:41 schrieb Noli Sicad: Hi, The current QGIS webclient is for PC (i.e. desktop, laptop, netbook). I understand it is built using ExtJS, Geoexplorer hack. http://projects.opengeo.org/geoext/wiki/GeoExplorer http://blog.opengeo.org/2009/06/17/geoexplorer-preview/ http://suite.opengeo.org/geoexplorer/composer I like to use QGIS Mapserver as server for Mobile Devices (i.e. iPad, Android tablet, Meego tablet, HP WebOS tablet, etc) using jQuery, not ExtJS (Sencha Touch) since I need local Spatialite support for these devices. Again, I like to use jQuery instead of ExtJS as webclient for QGIS Mapser. Now, how can I utilise QGIS Mapserver for these mobile webclients? Andreas, what would be the right access to WMS layer in QGIS Mapserver (WMS)? ~~~ var base = new OpenLayers.Layer.WMS( Medford Streets Buildings, /geoserver/wms, {layers: medford} http://workshops.opengeo.org/openlayers-intro/vector/style.html Generic map = new OpenLayers.Map('map'); var wms = new OpenLayers.Layer.WMS( OpenLayers WMS, http://labs.metacarta.com/wms/vmap0;, {layers: 'basic,ground_01'} ); http://vasir.net/blog/openlayers/openlayers-tutorial-part-2-layers/ For example, this ZonePlan layer in http://gis.uster.ch/webgis/? http://gis.uster.ch/webgis/production/index.shtml?map=/home/www/projekte /ra umplanung/raumplanung.qgsformat=image/jpegvisibleLayers=Gestaltungspl %C3% A4ne%20Beschriftung,Gemeindegrenze,Sondernutzungen,Sondernutzungen%20Ba uzon en%20mit%20Gestaltungsplanpflicht,Differenzierte%20L%C3%A4rmempfindlich keit sstufe,Nutzungszonen,UEP%20%282009%29 I just like to know the WMS layers, not the windowing ExtJS toolkit to render the whole thing. Thanks. Noli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Pirmin Kalberer Sourcepole - Linux Open Source Solutions http://www.sourcepole.com -- Pirmin Kalberer Sourcepole - Linux Open Source Solutions http://www.sourcepole.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer