Re: [Qgis-developer] API proposal: fetching of features

2011-10-28 Thread luca_manganelli
Martin Dobias wrote on 27/10/2011 19.07.43 What do you think? I would like to gather your opinions - is it good/bad/complex/inefficient/nonintuitive/verbose/...? +1, .select() and derivates are, maybe, the most important function and it's crucial that they must be optimized. Using them in

Re: [Qgis-developer] Expression based labeling

2011-10-28 Thread Andreas Neumann
I agree. I can't really think of a use case where you wouldn't need it on always.  Looking at the code it seems that adding the direction symbol to the label doesn't work with multiline labels. the direction symbol is important for us. We use it to label the direction of waste-water pipes. We

Re: [Qgis-developer] Expression based labeling

2011-10-28 Thread Marco Hugentobler
Hi Nathan I agree. I can't really think of a use case where you wouldn't need it on always. Looking at the code it seems that adding the direction symbol to the label doesn't work with multiline labels. How is it with curved line labels, do they work with multiline? Btw I noticed that the

[Qgis-developer] QGIS 1.7.0.1, eVis plugin using Sqlite / Spatialite and Mac OS X

2011-10-28 Thread Noli Sicad
Hi, What needs to be installed to make eVis plugin works with spatialite db in Mac OS X? The author mentioned about Qt library. ... Qt's library so you don't have to have spatialite. http://osgeo-org.1803224.n2.nabble.com/Qgis-and-sqlite-td4521419.html eVis is now default plugin in QGIS 1.7.x

Re: [Qgis-developer] Expression based labeling

2011-10-28 Thread Sandro Santilli
On Thu, Oct 27, 2011 at 09:46:11AM -0300, Martin Dobias wrote: On Thu, Oct 27, 2011 at 5:28 AM, Nathan Woodrow madman...@gmail.com wrote: Thanks Andreas. Glad you like it. Question 1: the output preview of the label does not seem to work when I use a field - is there something I need to do

[Qgis-developer] Re: QGIS 1.7.0.1, eVis plugin using Sqlite / Spatialite and Mac OS X

2011-10-28 Thread Noli Sicad
Hi, It seems that it needs - qsqlite. # ... } else if ( QSQLITE == databaseType( ) !mDatabase.contains( sqlite ) ) { mDatabase = QSqlDatabase::addDatabase( QSQLITE, sqlite ); } else if ( QSQLITE == databaseType( ) ) { mDatabase =

[Qgis-developer] Re: QGIS 1.7.0.1, eVis plugin using Sqlite / Spatialite and Mac OS X

2011-10-28 Thread Noli Sicad
Which version of QGIS and platform has support for Qt sqlite driver (i.e. QSQLITE)? http://doc.qt.nokia.com/stable/sql-driver.html#qsqlite Noli On 10/28/11, Noli Sicad nsi...@gmail.com wrote: Hi, It seems that it needs - qsqlite. # ... } else if (

Re: [Qgis-developer] API proposal: fetching of features

2011-10-28 Thread Nathan Woodrow
Good thinking Martin, QgsFeatureRequest request; request.setExpression( type = 5 and $area 100 ); request.setLimit(10) layer-select( request ); I really like this API style. We can add methods to QgsFeatureRequest for better access without busting the select API, which is good imo. Could even

Re: [Qgis-developer] API proposal: fetching of features

2011-10-28 Thread Alexander Bruy
Hi Martin, 2011/10/27 Martin Dobias wonder...@gmail.com: - use flags instead of booleans: e.g. FetchGeometry | UseIntesect flags makes more sense than true, true +1 for use flags. This is much readable than current true, true. Also other proposed changes are reasonable for me. -- Alexander

Re: [Qgis-developer] QGIS 1.7.0.1, eVis plugin using Sqlite / Spatialite and Mac OS X

2011-10-28 Thread William Kyngesburye
I'll add it to my list of Qt extras to bundle in the app. Since it's a requirement, I'll try to get an update out this weekend. You could install it yourself, but it's tricky - you don't want to install Qt and copy qsqlite into Qgis, it'll still reference the now-installed Qt and cause Qgis

[Qgis-developer] RE: integrate GRASS graph modeler into QGIS?

2011-10-28 Thread Rasmus Lundgaard Borgstrøm
Hi I have built image processing chains with GRASS GIS modelbuilder that performs some advanced image processing based on some user defined input variables. Now I want to make these models available to my GIS users in Quantum GIS, so that they can input the variables and execute the models from

Re: [Qgis-developer] RE: integrate GRASS graph modeler into QGIS?

2011-10-28 Thread Giovanni Manghi
Hi, How can this be handled? Any suggestions/directions would be welcome. I guess the best choice would be to join the effort to port GRASS into the processing framework and to build the modeller for the same framework. This list is the right place to start tale contact with the people

Re: [Qgis-developer] Expression based labeling

2011-10-28 Thread Martin Dobias
On Fri, Oct 28, 2011 at 4:15 AM, Sandro Santilli s...@keybit.net wrote: On Thu, Oct 27, 2011 at 09:46:11AM -0300, Martin Dobias wrote: That is because not all data providers use ids in interval [0,N-1]. For example, postgres provider uses the column with primary key as ID - so the values may

Re: [Qgis-developer] Expression based labeling

2011-10-28 Thread Sandro Santilli
On Fri, Oct 28, 2011 at 12:23:24PM -0300, Martin Dobias wrote: On Fri, Oct 28, 2011 at 4:15 AM, Sandro Santilli s...@keybit.net wrote: On Thu, Oct 27, 2011 at 09:46:11AM -0300, Martin Dobias wrote: That is because not all data providers use ids in interval [0,N-1]. For example, postgres

Re: [Qgis-developer] Expression based labeling

2011-10-28 Thread Martin Dobias
On Fri, Oct 28, 2011 at 1:33 PM, Sandro Santilli s...@keybit.net wrote: On Fri, Oct 28, 2011 at 12:23:24PM -0300, Martin Dobias wrote: On Fri, Oct 28, 2011 at 4:15 AM, Sandro Santilli s...@keybit.net wrote: Would it make sense to abstract provider-specific IDs so that the [0, N-1] range

Re: [Qgis-developer] Expression based labeling

2011-10-28 Thread Sandro Santilli
On Fri, Oct 28, 2011 at 01:53:53PM -0300, Martin Dobias wrote: On Fri, Oct 28, 2011 at 1:33 PM, Sandro Santilli s...@keybit.net wrote: On Fri, Oct 28, 2011 at 12:23:24PM -0300, Martin Dobias wrote: On Fri, Oct 28, 2011 at 4:15 AM, Sandro Santilli s...@keybit.net wrote: Would it make sense

Re: [Qgis-developer] Expression based labeling

2011-10-28 Thread Martin Dobias
On Fri, Oct 28, 2011 at 1:57 PM, Sandro Santilli s...@keybit.net wrote: What happens if you delete a feature from a shapefile ? Apparently OGR only marks the feature as deleted in DBF, other IDs are not changed. Note that one advantage of delegating to providers setting up a mapping is we

Re: [Qgis-developer] QGIS 1.7.0.1, eVis plugin using Sqlite / Spatialite and Mac OS X

2011-10-28 Thread Noli Sicad
Hi William, Thanks for replying. I just wait for your Qt Extra that includes QSQLITE driver. I don't to break my spatialite in QGIS. Looking forward your new package. Thanks. Noli On 10/29/11, William Kyngesburye wokl...@kyngchaos.com wrote: I'll add it to my list of Qt extras to bundle in