Re: [Qgis-developer] Auto increment field for shapefiles?

2014-05-16 Thread mmekuria
I am not sure what you mean, Paulo. But there is already the Feature Id (Object Id in ArcGIS) in QgsFeature. Do you mean having that a mandatory field that gets populated every time a feature is created within a shapefile? I think it is a good idea to have the id field automated in QGIS. But it is

Re: [Qgis-developer] Users Manual Form annotations challenge

2014-05-16 Thread mmekuria
I am using QGIS 2.2 and I have no problem with forms. I am able to edit attributes with it. - Maaza Christos, PhD www.Axumcorp.com -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Users-Manual-Form-annotations-challenge-tp5139875p5140825.html Sent from the Quantum GIS -

Re: [Qgis-developer] QgsDistanceArea

2014-05-15 Thread mmekuria
It seems that those who know are quiet and no one responded to answer my earlier query as well. Your guess is as good as mine. I think this is the end of the semester or spring time etc. One has to just try every possibility and find out on his own, that is what open-source means. No one is respons

[Qgis-developer] Spatial Index (QGIS Pyhton) is holey , holly or slippery?

2014-05-09 Thread mmekuria
I am not sure if there is a hole in the spatial index or a slippery slope leading it to a wrong conclusion. I am having a problem with the Spatial Index not finding the geometry very close to it and going and finding other geometry much farther away. It is not very nice! What do you think may be

Re: [Qgis-developer] Thoughts on newly added "min-max map unit scale" feature

2014-05-09 Thread mmekuria
I would add that the units be configurable, instead of only one unit. In the this part of the world, we use imperial units and everyone seems to embrace the King and Queen Units with no King and Queens in residence. Oh, I forgot, we have stars and idols to keep us amused. - Maaza Christos,

[Qgis-developer] QGIS 2.0 Dufour API Doc and 2.2 Valmiera API Docs out of sync with actual syntax?

2014-05-08 Thread mmekuria
I found a few places where the syntax of the API documentation says something and the application telling another story. One of these inconsistencies happens to be the on geometry query to find the closest vertex, QgsGeometry.closestVertex (const QgsPoint &point, int &atVertex, int &beforeVertex,

Re: [Qgis-developer] QGIS 2.0 installation error

2014-02-16 Thread mmekuria
It was resolved a while ago. It may happen to another person and I want to leave a note that it must have been a mix up of older libraries causing the GUI to cause conflicts in QT. I uninstalled the old version of QT and installed QT 4.7 version. I then reinstalled QGIS and it worked. - M

[Qgis-developer] C++ plugins instructions

2013-12-29 Thread mmekuria
I have an issue that after upgrading my C++ plugins to 2.0.1, they do not show up in the 2.0 version of QGIS. Has the procedure for identifying and installing C++ plugins in QGIS 2.0+ changed? I have tried using the start-up plugins generator and that does not show up also in the 2.0 version. I h

Re: [Qgis-developer] How to deal with plugins which are not useful for users (e.g. Hello world)

2013-12-29 Thread mmekuria
Anita: I also agree it should be kept as experimental or test case. I have another question on the PgRouting plugin. I get an error message while starting QGIS saying that the python version is wrong. Is it written for Python 2.5 or 2.7? But I am not a voting member, so do not add my response abo

[Qgis-developer] Why is it entering Debug when starting QGIS?

2013-12-27 Thread mmekuria
I have been stuck here with both the releaseand the dev. version of QGIS 2.0 . Why should it go into debug? Below is the error message I get, Debug Error on the Program : C:\path\qgis-bin.exe Module: 4.7.1 File global\qglobal.cpp Line:2262 QPixmap: Must construct a QApplication befor

[Qgis-developer] QGIS 2.0 installation error

2013-12-26 Thread mmekuria
I \have been struggling for a week with a fresh installation of QGIS 2.0.1 (Dufour) and the development version. I get a Debug Error on the Program : C:\path\qgis-bin.exe Module: 4.7.1 File global\qglobal.cpp Line:2262 QPixmap: Must construct a QApplication before a QPaintDevice (Press retry

Re: [Qgis-developer] WKBNoGeometry

2013-12-25 Thread mmekuria
How about QgsGeometry->fromWkt ( WKBNoGeometry ) - Maaza Christos, PhD www.Axumcorp.com -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WKBNoGeometry-tp5095136p5095568.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. __

Re: [Qgis-developer] some trouble with pointers in my c++-plugin

2013-12-10 Thread mmekuria
I think you need to use a reference instead of a pointer as the argument. - Maaza Christos, PhD www.Axumcorp.com -- View this message in context: http://osgeo-org.1560.x6.nabble.com/some-trouble-with-pointers-in-my-c-plugin-tp5093507p5093700.html Sent from the Quantum GIS - Developer mail

Re: [Qgis-developer] layer order

2013-12-05 Thread mmekuria
Open the project file and look for the list of layers. I think the order is based on how it is stored in the project file. Something must be happening while saving the project. - Maaza Christos, PhD www.Axumcorp.com -- View this message in context: http://osgeo-org.1560.x6.nabble.com/la

[Qgis-developer] C++ Plugins failing due to upgrade (missing what procedue)?

2013-12-05 Thread mmekuria
I am getting this error message with my C++ plugins and am wondering why? Can anyone help solve this puzzle? Is there any documentation that tells what has changed as far as plugins written in C++ for QGIS 2.0 to install them? It seems to me that there may be a procedure that it is lookign for in t

Re: [Qgis-developer] How to get feat.geometry() from SpatiaLite in pyQGis ?

2013-12-05 Thread mmekuria
Hi, Roberto: I think the query from layer.getFeatures() returns an iterator and that means you use the nextFeature(feat) to get the next feature until it fails to return a feature, then it means you have reached the end of the iterator list. iter = layer.getFeatures() while iter.nextFeature(feat)

[Qgis-developer] CaptureStackBackTrace and WINXP

2013-12-02 Thread mmekuria
I think I have a problem that may be an issue of an older version of windows (XP) issue. Any idea why I am getting an error while compiling main (QGIS) on missing CaptureStackBackTrace ? I learned that it is available only after Windows Vista. Is there a workaround? I am compiling 2.0.1. -

Re: [Qgis-developer] QGis 2.0.1 Compile error on QGIS_Core

2013-12-02 Thread mmekuria
Thank you Matthias for your help. I had correctly declared the location of the bison executable yet there is something strange on my machine that is causing it to not recognized the path variable. I specified it before compiling by inserting the path to the bison executable in the VC directories

[Qgis-developer] QGis 2.0.1 Compile error on QGIS_Core

2013-11-30 Thread mmekuria
I got this error message while compiling QGIS 2.0.1 from Master 1>Generating qgsexpressionparser.cpp 1>C:\GnuWin32\bin\bison.exe: m4: No such file or directory 1>Project : error PRJ0019: A tool returned an error code from "Generating qgsexpressionparser.cpp" 1>Build log was saved at "file://c:\QG

Re: [Qgis-developer] Nearest Neighbor List and Vector Layer Selection

2013-11-30 Thread mmekuria
Yes. - Maaza Christos, PhD www.Axumcorp.com -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Nearest-Neighbor-List-and-Vector-Layer-Selection-tp5092015p5092022.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___

Re: [Qgis-developer] Building QGis in VS 2010

2013-11-30 Thread mmekuria
I am using VS Express 2008 but I think the issue is very similar to any version. If you compile look at the compile error messages, it must not be able to compile the QGIS_Core library file. It is the glue that holds all the important base tools. Some dependency may have been missing for the compil

[Qgis-developer] Nearest Neighbor List and Vector Layer Selection

2013-11-30 Thread mmekuria
I was using Python Spatial Index and select from a vector layer using the result from nearest neighbor (list) and get error messages saying it does not recognized the list. I see in the API the input to the select QList< QgsFeatureId > QgsSpatialIndex::nearestNeighbor ( QgsPoint point, int

Re: [Qgis-developer] Plugin (C++) Upgrade install - anybody there?

2013-09-06 Thread mmekuria
Thank you for the answer Daniel! I still do not understand what I must do to have the plugin detected. Is that folder the one I have to create? There does not appear a folder with QGIS 2 in any of the existing folder structure created 1.8 and 1.9. I have not tried 2.0. - Maaza Christos, P

Re: [Qgis-developer] API (C++) changes between 1.8 and 2.0

2013-07-01 Thread mmekuria
I just found out through a simple search. Ignore my request. Thank you, - Maaza Christos, PhD www.Axumcorp.com -- View this message in context: http://osgeo-org.1560.x6.nabble.com/API-C-changes-between-1-8-and-2-0-tp5063416p5063418.html Sent from the Quantum GIS - Developer mailing list

[Qgis-developer] API (C++) changes between 1.8 and 2.0

2013-07-01 Thread mmekuria
Where can one find the changes to the API for the current development version (1.9) and the 1.8. I am trying to update past version plugins. Thank you, Maaza - Maaza Christos, PhD www.Axumcorp.com -- View this message in context: http://osgeo-org.1560.x6.nabble.com/API-C-changes-betwe

[Qgis-developer] Changing Spatialite Version from 2.4 to 3.0

2012-10-19 Thread mmekuria
I need help on how I update the spatialite version in my QGIS install from 2.4 to 3.0. I have posted below the version difference between what I download from QGIS 1.8 Master and the official OSGeo release Local version QGIS version 1.8.0-Lisboa QGIS code revision c64bb9d Compiled against Qt 4.7.

Re: [Qgis-developer] Saving expressions

2012-10-19 Thread mmekuria
I would liek saving expressions in file and a directory of my own choosing would be ideal. At least that is what ArcGIS had (As far as version 9.3, that I have used in the past.) I would ask for simplicity and ease of use. Why make the project file bloated and prone to corruption by adding field c

Re: [Qgis-developer] QGIS 1.8 C++ Plugin development

2012-10-18 Thread mmekuria
I was able to get the Oracle plugin to compile without errors. The geometry library files were missing from the OSGeo download. I also added the path to the headers that were missing (geometry headers) to the project. Still QGIS 1.8 and 1.9 is not recognizing my plugin, while the locally build ver

Re: [Qgis-developer] to build shortest_distance

2012-10-18 Thread mmekuria
Dear Shiva: I use windows and I followed the build instructions found in the link http://hub.qgis.org/wiki/quantum-gis/Development should help you. If you can not follow it, at least you must give some indication of where you experience a problem by posting errors that you get during your compilati

[Qgis-developer] QGIS 1.8 C++ Plugin development

2012-10-17 Thread mmekuria
I updated my 1.7.x plugins, to work with 1.8.x. I can use the plugins within the source compiled and installed version (C++ install) that I have locally but not the official OSGEO windows release. All the plugins show up on the locally compiled version of QGIS. But on the OSGEO version only those w

[Qgis-developer] QGIS 1.8 some C++ Plugins do not show up on release version

2012-10-16 Thread mmekuria
I updated my 1.7.x plugins, to work with 1.8.x. I can use the plugins within the source compiled and installed version (C++ install) that I have locally but not the official OSGEO windows release. All the plugins show up on the locally compiled version of QGIS. But on the OSGEO version only those w

[Qgis-developer] Re: Load SQLite table into QGIS

2011-10-19 Thread mmekuria
Forget my request. I went ahead with a native SQLite query (after including the sqlite3 header) here is what I used to get to the data, sqlite3 *db; int rc = sqlite3_open( spliteDBName.toStdString().c_str(), &db); if( rc ){ txtStream<< "Can't open database:

[Qgis-developer] Re: Load SQLite table into QGIS

2011-10-18 Thread mmekuria
Martin, I also have a question about querying using SQL. How can I query selected records using SQL syntax? Thank you, Maaza -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Load-SQLite-table-into-QGIS-tp6876536p6906648.html Sent from the qgis-developer mailing list archi

[Qgis-developer] Re: Load SQLite table into QGIS

2011-10-18 Thread mmekuria
Dear Martin: I tried every way I can think of and I have not been able to use the non-geometric table . Here is the code I am using let me know if you think I am doing something wrong, QString spliteDBName = "C:/db/sjs.db"; QString tblName = "tztrips"; QString dbProv = "s

[Qgis-developer] Re: Load SQLite table into QGIS

2011-10-14 Thread mmekuria
I have made a few changes here and I do not get a valid layer in the first place. QgsDataSourceURI splUri; splUri.setDatabase(spliteDBName); // i give the database name as a fully qualified path QString splUri.setDataSource("","Trips", ""); // I set the schema and the geo

[Qgis-developer] Re: Load SQLite table into QGIS

2011-10-14 Thread mmekuria
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

[Qgis-developer] Creating a Spatialite table (both geometric and geometryless) inside a C++ plugin

2011-10-13 Thread mmekuria
I need help to create tables (both geometric and geometryless) in my C++ plugin. I have a very big data set and it has been difficult to use either flat file (for the geometryless data) or shapefile (for the geometric data) and I do not want to use PostGIS since I will pass the data to a colleagu