[Qgis-developer] various problems during a course
Hi all. Today, during a course, I spotted several problems: - the plugin Elevation does not take into account the proxy setting, so it does not work (known problem[0]) and it locks QGIS, forcing a restart; I suggest to fix it or, if impossible, to deprecate it - opening a - the plugin CSW client does not connect (I'm behind a proxy, do not know what's going wrong) with error: Error connecting to server geocat.ch: [same for others] urlopen error timed out - the tile scale apparently does not work - invert color map (in raster properties) option seem bugged: the flag is unchecked when closing the window - Rasterlite layers, e.g. http://download.gfoss.it/TrueMarble/TrueMarble-2km.sqlite are extremely slow to open (I remember a while ago they were surprisingly fast); I noticed it uses only one CPU out of four, BTW Feedback welcome. [0]https://trac.faunalia.it/qgis_plugins/ticket/18 -- Paolo Cavallini: http://www.faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] WPS plugin not connecting (proxy?)
Hi all. I set up the proxy in qgis, and everything is working, except for the Elevation plugin (as I already wrote) and WPS plugin: do they both use another method for accessing the web, bypassing the proxy setting? All the best. -- http://faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Load SQLite table into QGIS
I was able to create the spatialite geometry/geometryless tables outside QGIS and now what I would want is to be able to insert data in C++ into tables with and without geometry. Any ideas? Maaza --- On Thu, 10/13/11, Martin Dobias wonder...@gmail.com wrote: From: Martin Dobias wonder...@gmail.com Subject: Re: [Qgis-developer] Load SQLite table into QGIS To: romain riviere romain.riviere@gmail.com Cc: qgis-developer@lists.osgeo.org Date: Thursday, October 13, 2011, 4:06 PM On Mon, Oct 10, 2011 at 8:17 AM, romain riviere romain.riviere@gmail.com wrote: Hi, I know how to Load a spatiaLite spatial table into QGIS, but I can't find how to load a non spatial table (ie simple SQLite table). I've read the pyqgis cookbook, and QGs API, but didn't find any answer. This should work: vlayer = QgsVectorLayer('dbname=/data/gis/test.sqlite table=mytable', 'mytable', 'spatialite') Martin ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] WPS plugin not connecting (proxy?)
Hi Paolo, I remember having some difficulties too with proxy settings and the WPS plugin. I did not look at the code, but the WPS plugin honors the http_proxy env var setting. Also, I'm wondering whether it should always honor the QGis proxy settings (nor the http_proxy env var) : for my use case, I'm trying to reach a WPS server inside my LAN, while I need proxy settings to access the web (plugin installation, etc...). Maybe each server configured in the plugin should have an associated local/remote boolean setting. Strange as it can be, for my LAN case, the GetCapabilities and DescribeProcess calls works, but http_proxy must be correctly unset only for ExecuteProcess request to work correctly. Cheers, Julien Le 14/10/2011 14:24, Paolo Cavallini a écrit : Hi all. I set up the proxy in qgis, and everything is working, except for the Elevation plugin (as I already wrote) and WPS plugin: do they both use another method for accessing the web, bypassing the proxy setting? All the best. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Load SQLite table into QGIS
On Fri, Oct 14, 2011 at 10:16 AM, maaza mekuria sail...@yahoo.com wrote: I was able to create the spatialite geometry/geometryless tables outside QGIS and now what I would want is to be able to insert data in C++ into tables with and without geometry. Any ideas? Load the table to QGIS (i.e. create a QgsVectorLayer - even for geometryless table) and then use layer.dataProvider().addFeatures( ... ) method. Martin ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] WPS plugin not connecting (proxy?)
Hi Paolo Yes you are right. The WPS-Client isnt able to connect through proxy. I plan to extend the plugin at the hackfest Regards from Lüderitz/Namibia Horst Dr. Horst Düster Am 14.10.2011 um 14:24 schrieb Paolo Cavallini cavall...@faunalia.it: Hi all. I set up the proxy in qgis, and everything is working, except for the Elevation plugin (as I already wrote) and WPS plugin: do they both use another method for accessing the web, bypassing the proxy setting? All the best. -- http://faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] WPS plugin not connecting (proxy?)
On Fri, Oct 14, 2011 at 1:24 PM, Paolo Cavallini cavall...@faunalia.it wrote: Hi all. I set up the proxy in qgis, and everything is working, except for the Elevation plugin (as I already wrote) and WPS plugin: do they both use another method for accessing the web, bypassing the proxy setting? All the best. Elevation uses the python httplib, which requires you to first set up a connection to the proxy and then do a query with the full http://blah/blah URL, instead of setting up a connection to the web server and then getting just the path. A change to Elevation.py to use urllib (which is imported, but not used) works for me - but I'm not sure if its getting my proxy settings from Qgis's settings or from my shell's proxy settings. Either way, it works: Around Line 85: url = http://maps.google.com/maps/api/elevation/json?locations=; + str(pt[1])+,+str(pt[0])+sensor=false u = urllib.urlopen(url) jsonresult = u.read() urllib2 might be another possible option. I've CC'd Steffen, the elevation plugin author in on this. Barry ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] WPS plugin not connecting (proxy?)
On Fri, Oct 14, 2011 at 1:33 PM, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote: On Fri, Oct 14, 2011 at 1:24 PM, Paolo Cavallini cavall...@faunalia.it wrote: Hi all. I set up the proxy in qgis, and everything is working, except for the Elevation plugin (as I already wrote) and WPS plugin: do they both use another method for accessing the web, bypassing the proxy setting? All the best. Elevation uses the python httplib, which requires you to first set up a connection to the proxy and then do a query with the full http://blah/blah URL, instead of setting up a connection to the web server and then getting just the path. A better approach would be to use Qt classes for network I/O (i.e. QNetworkRequest and friends) together with QgsNetworkAccessManager that knows qgis proxy settings - then the plugin does not have to worry about proxies. Additionally those Qt classes provide a convenient interface using signals and slots. Martin ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Re: Load SQLite table into QGIS
Thanks Martin for the info. Now how what are the parameters for the If I have a table named Trips and I want to add data to the three columns i,j,v it contains. I set the datasource as like this? But I get error message when I try to query the fields from the provider. QgsDataSource uri; QgsDataSourceURI splUri = QgsDataSourceURI( uri ); splUri.setDatabase(spliteDBName); splUri.setDataSource(,Trips, ); // I set the schema and the geometry to empty? QgsVectorLayer* tripLayer = new QgsVectorLayer(splUri.uri(), Trips, spatialite); QgsVectorDataProvider* triProv = tripLayer-dataProvider(); QgsFeature tripFeat; QgsFeatureList tripFeats ; QgsAttributeMap tripAttMaps; QgsFieldMap tripFldsrc = triProv-fields(); *** Error at this location! if (tripFldsrc.count()0) { i=0; for (QgsFieldMap::iterator it = tripFldsrc.begin(); it != tripFldsrc.end();it++) { tripAttMaps.insert(i++,it-type()); } } for (maptrit = maptrip.begin();maptrit != maptrip.end();maptrit++) { trip = maptrit-second; tripFeat.addAttribute(0,trip.get_i()); tripFeat.addAttribute(1,trip.get_j()); tripFeat.addAttribute(2,trip.get_v()); tripFeats.append(tripFeat); } tripLayer-addFeatures(tripFeats); bool blnFeat = tripLayer-commitChanges(); if (!blnFeat) { txtStreamFailed to commit to Layer \ttripLayer-name().toStdString()endl; return; } I also wanted to know if it was possible to string the sql commands to insert into the table. Thank you, Maaza -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Load-SQLite-table-into-QGIS-tp6876536p6893672.html Sent from the qgis-developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Installed Qgis on Ubuntu - what do I do next?
Hi, I installed the qgis Server and apache (ubuntu 11.04) and now I don't know how to start the qgis webserver. I tried http://localhost/cgi-bin/qgis_mapserv.f ... pabilities as described here http://www.qgis.org/wiki/QGIS_Server_Tutorial But there is an internal Server error 500. Does anybody here know what that could mean? What should I do as first steps after installing? best regards Christopher ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Installed Qgis on Ubuntu - what do I do next?
What should I do as first steps after installing? if working correctly, the address http://localhost/cgi-bin/qgis_mapserv.fcgi should return ServiceExceptionReport version=1.3.0ServiceException code=OperationNotSupportedPlease check the value of the REQUEST parameter/ServiceException/ServiceExceptionReport Then just create a project in QGIS (use absolute paths) and in the project properties configure the parameters in the WMS server tab. Create a folder in /usr/lib/cgi-bin/ and copy into it your QGIS project and a copy of qgis_mapserv.fcgi your server address will be http://localhost/cgi-bin/myprojectfolder/qgis_mapserv.fcgi cheers -- Giovanni -- ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer