Re: [QGIS-Developer] Upgrading to V3

2019-10-26 Thread Maaza Mekuria
Thank you Etienne.  I did just what you suggested. But did not het
anywhere.  I still get the same error message.

My question did not get resolved and only for lack of information i can't
move forward with the upgrade.
What i think has happened is that QGIS leadership has chosen to control the
access gates to "ousiders" who want to program in C++ and related
functiions in producing plugins by controlling how plugins are registered.

It is a pity that I can't upgrade this plugin for lack of information.

In the past i have donated money and willing to donate time and money.
Whay is there so much secrecy on the basic C++ plugin initialization and
registry?  It does not make for a good and inclusive  policy.

Thank for your help anyway.


On Sun, Sep 15, 2019, 9:11 PM Etienne Trimaille 
wrote:

> Hi,
>
> I can't really answer your question but you should use
> https://qgis.org/api/classQgsMapLayerComboBox.html instead of creating
> your own combobox. (if possible).
>
> Etienne
>
> Le dim. 15 sept. 2019 à 10:11, Maaza Mekuria  a
> écrit :
>
>> QGIS Layer List upgrade to V3 C++ plugin - Geographic Information Systems
>> Stack Exchange body,.top-bar{margin-top:1.9em}
>>
>> I was upgrading a c++ plugin that I had used in the past and almost
>> eliminated all the the usual compiler errors due to version changes
>> according for the current version (3.6). The plugin used to collect current
>> map canvas layers in a combo list box for selection. I am getting two
>> errors that I can't figure out what to do with. This code compiled without
>> problem pre-2.0.
>>
>> The first happens to be about QGSMapLayer that can't be instantiated
>> because it is turned as an abstract class and I am getting an error
>> [Severity Code Description Project File Line Source Suppression State Error
>> C2259 'QgsMapLayer': cannot instantiate abstract class tarjan_sccplugin
>> C:\OSGeo4W64\apps\Qt5\include\QtCore\qlist.h 214 Build ]
>>
>> This is portion of the code generating the error.  Where
>> cmbNetSourceLayer is a combo-box .
>>
>> void tarjan_sccGui::populateLayers( QString const& url ) {
>> cmbNetSourceLayer->clear();
>>
>> QString layerName; QString layerType;
>>
>> // fill list of layersQMap mapLayers = 
>> QgsProject::instance()->mapLayers();QMap::iterator 
>> layer_it = mapLayers.begin();
>> for (; layer_it != mapLayers.end(); ++layer_it){
>> QgsVectorLayer* vl = dynamic_cast(layer_it.value());
>> if (!vl)
>> continue;
>> else
>>
>>  cmbNetSourceLayer->addItem(vl->name() );}
>>
>> The second error appears to be in explicit declaration for the plugin.
>> Something has changed in how the plugins are initiated. [Severity Code
>> Description Project File Line Source Suppression State Error (active)
>> invalid explicit instantiation declaration tarjan_sccplugin
>> d:\GIS\v3\Quantum-GIS\src\core\qgsoptionalexpression.h 82 IntelliSense ]
>>
>> No idea what must be done to overcome this error.  The cited module
>> appears to be an optional data module.
>>
>>
>> Any help is appreciated.
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Upgrading to V3

2019-10-26 Thread Maaza Mekuria
Nyall ,  Thank you for your response.
 I heard that argument before and replied  by saying that i had tried
Python and the program was too slow for the application i was working on
(data structures and storage) and that was my main reason to use C++.  But
i was told that i need to learn more Python and be a better programmer etc
...

 I felt i was completely ignored. At that time  i was able to do it on my
own becuase there was a lot more private activity.  I think now QGIS has
almost become corporate and there is some hesitation to share information
(not knowledge) unless a transaction happens.

  In my opinion this has become a barrier to innovate.

Thank you again,

.

On Sat, Oct 26, 2019, 2:35 PM Nyall Dawson  wrote:

> On Sun, 27 Oct 2019 at 09:01, Maaza Mekuria  wrote:
> >
> > Thank you Etienne.  I did just what you suggested. But did not het
> anywhere.  I still get the same error message.
> >
> > My question did not get resolved and only for lack of information i
> can't move forward with the upgrade.
> > What i think has happened is that QGIS leadership has chosen to control
> the access gates to "ousiders" who want to program in C++ and related
> functiions in producing plugins by controlling how plugins are registered.
> >
> > It is a pity that I can't upgrade this plugin for lack of information.
> >
> > In the past i have donated money and willing to donate time and money.
> Whay is there so much secrecy on the basic C++ plugin initialization and
> registry?  It does not make for a good and inclusive  policy.
>
> There's no conspiracy here -- rather, c++ plugins have always been
> horrible to build, deploy and debug (especially on Windows). Over time
> the core project recognised this, realised it was a bad situation for
> developers like yourself, and started encouraging people to completely
> avoid using c++ plugins and move to Python wherever possible.
>
> I strongly suspect that the reason no-one has answered your question
> is just because no-one **knows** the answer! (I certainly don't -- I
> saw your earlier thread, and the only advice I was able to offer at
> the time was what Etienne had already suggested).
>
> Nyall
>
>
> >
> > Thank for your help anyway.
> >
> >
> > On Sun, Sep 15, 2019, 9:11 PM Etienne Trimaille <
> etienne.trimai...@gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> I can't really answer your question but you should use
> https://qgis.org/api/classQgsMapLayerComboBox.html instead of creating
> your own combobox. (if possible).
> >>
> >> Etienne
> >>
> >> Le dim. 15 sept. 2019 à 10:11, Maaza Mekuria  a
> écrit :
> >>>
> >>> QGIS Layer List upgrade to V3 C++ plugin - Geographic Information
> Systems Stack Exchange body,.top-bar{margin-top:1.9em}
> >>>
> >>> I was upgrading a c++ plugin that I had used in the past and almost
> eliminated all the the usual compiler errors due to version changes
> according for the current version (3.6). The plugin used to collect current
> map canvas layers in a combo list box for selection. I am getting two
> errors that I can't figure out what to do with. This code compiled without
> problem pre-2.0.
> >>>
> >>> The first happens to be about QGSMapLayer that can't be instantiated
> because it is turned as an abstract class and I am getting an error
> [Severity Code Description Project File Line Source Suppression State Error
> C2259 'QgsMapLayer': cannot instantiate abstract class tarjan_sccplugin
> C:\OSGeo4W64\apps\Qt5\include\QtCore\qlist.h 214 Build ]
> >>>
> >>> This is portion of the code generating the error.  Where
> cmbNetSourceLayer is a combo-box .
> >>>
> >>> void tarjan_sccGui::populateLayers( QString const& url ) {
> cmbNetSourceLayer->clear();
> >>>
> >>> QString layerName; QString layerType;
> >>>
> >>> // fill list of layers
> >>> QMap mapLayers =
> QgsProject::instance()->mapLayers();
> >>> QMap::iterator layer_it = mapLayers.begin();
> >>>
> >>> for (; layer_it != mapLayers.end(); ++layer_it)
> >>> {
> >>> QgsVectorLayer* vl =
> dynamic_cast(layer_it.value());
> >>> if (!vl)
> >>> continue;
> >>> else
> >>>
> >>>  cmbNetSourceLayer->addItem(vl->name() );
> >>> }
> >>>
> >>> The second error appears to be in explicit declaration for the plugin.
> Something has changed in how t

Re: [QGIS-Developer] Upgrading to V3

2019-10-27 Thread Maaza Mekuria
Tjank you Nyall, i have already been able to build C++ QGIS , the only
thing i can't do right now is get a new plugin to be registered within the
UI.  It has become a secret art like magic to do this.

I am bemoaning the lack of user guidance here.  I will write one once i get
through this. I plan to put at least  one example  code on how to generate
a stub plugin.
I cleaned all the compile errors, and there an obscure message on some
fumction that i don't  even have in my plugin that is coming up during
compile.  I am compiling only my plugin separately.
  I used a simple UI (i am not new to UI's in C++ as i have done several
more complex ones before.

Thank you for your kindness though.  And i will touch base more.

Blessings and Happy All Hallows Eve.

On Sun, Oct 27, 2019, 12:52 PM Nyall Dawson  wrote:

> On Sun, 27 Oct 2019 at 11:27, Maaza Mekuria  wrote:
> >
> > Nyall ,  Thank you for your response.
> >  I heard that argument before and replied  by saying that i had tried
> Python and the program was too slow for the application i was working on
> (data structures and storage) and that was my main reason to use C++.  But
> i was told that i need to learn more Python and be a better programmer etc
> ...
> >
> >  I felt i was completely ignored. At that time  i was able to do it on
> my own becuase there was a lot more private activity.  I think now QGIS has
> almost become corporate and there is some hesitation to share information
> (not knowledge) unless a transaction happens.
>
> In complete honesty, you're totally misreading the situation. There's
> nothing malicious or hidden going on here at all. It's entirely the
> fact that c++ plugins, especially on windows, are a PITA to develop
> and a totally lottery as to whether they'll work. The only assistance
> the project is **able** to provide has already been provided -- "avoid
> c++ plugins"!
>
> My personal thoughts: I would LOVE nothing more than to be able to
> help people like yourself with problems like this, and donate 3-4
> hours of my time to helping you fix your local Windows build and get
> things working for you. (There's absolutely no sarcasm here, I really
> mean that). I wish society was structured in such a way as to make
> this possible. But the world just doesn't work that way, and there's
> **nothing** that the QGIS project or the people involved with it can
> do to change that. So your only options here are:
> 1. ask for help, which you've already done, and unfortunately no-one
> has an answer for you. Maybe you could "widen the net" and try asking
> on other channels outside of this mailing list and stackexchange, and
> hopefully find someone who has previously solved this problem.
> 2. (as Jürgen stated) push through and find the solution for yourself
> -- the source is all available and obviously have some development
> skills to help here.
> 3. follow the (unfortunate? unfair?) process society has evolved to
> get others to do work for you, and pay someone to find a solution to
> your build issue.
>
> Nyall
>
>
> >
> >   In my opinion this has become a barrier to innovate.
> >
> > Thank you again,
> >
> > .
> >
> > On Sat, Oct 26, 2019, 2:35 PM Nyall Dawson 
> wrote:
> >>
> >> On Sun, 27 Oct 2019 at 09:01, Maaza Mekuria 
> wrote:
> >> >
> >> > Thank you Etienne.  I did just what you suggested. But did not het
> anywhere.  I still get the same error message.
> >> >
> >> > My question did not get resolved and only for lack of information i
> can't move forward with the upgrade.
> >> > What i think has happened is that QGIS leadership has chosen to
> control the access gates to "ousiders" who want to program in C++ and
> related functiions in producing plugins by controlling how plugins are
> registered.
> >> >
> >> > It is a pity that I can't upgrade this plugin for lack of information.
> >> >
> >> > In the past i have donated money and willing to donate time and
> money.  Whay is there so much secrecy on the basic C++ plugin
> initialization and registry?  It does not make for a good and inclusive
> policy.
> >>
> >> There's no conspiracy here -- rather, c++ plugins have always been
> >> horrible to build, deploy and debug (especially on Windows). Over time
> >> the core project recognised this, realised it was a bad situation for
> >> developers like yourself, and started encouraging people to completely
> >> avoid using c++ plugins and move to Python wherever possible.
> >>
> >> I strongly suspect that th

[QGIS-Developer] QGIS-installation fails

2020-03-29 Thread Maaza Mekuria
I am experiencing errors after installing QGIS  using the Osgeo setup file
on a windows 10 machine.

This happened on a second windows 10  machine (first on a laptop and then
on a desktop.

I  do some development and install almost all the libraries with source
code.  The installation itself brought an error message about a jvm.exe not
being found.  I happen to have a jdk 13 installed and i can't understand
why this error comes in the first place.  And then QGIS never starts at all.

Any help is greatly appreciated.



On Sun, Mar 29, 2020, 9:00 AM 
wrote:

> Send QGIS-Developer mailing list submissions to
> qgis-developer@lists.osgeo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.osgeo.org/mailman/listinfo/qgis-developer
> or, via email, send a message with subject or body 'help' to
> qgis-developer-requ...@lists.osgeo.org
>
> You can reach the person managing the list at
> qgis-developer-ow...@lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of QGIS-Developer digest..."
>
>
> Today's Topics:
>
>1. Re: [SoC] Request for QGIS 3D proposal draft review (Ismail Sunni)
>
>
> --
>
> Message: 1
> Date: Sat, 28 Mar 2020 23:08:12 +0100
> From: Ismail Sunni 
> To: BELGACEM NEDJIMA 
> Cc: qgis-dev 
> Subject: Re: [QGIS-Developer] [SoC] Request for QGIS 3D proposal draft
> review
> Message-ID:
> <
> caeh5jthteya9wfuw62rznphygayuokyxyowd+im6xeegocf...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi BELGACEM,
>
> Good luck with the proposal!
>
> Best regards :)
>
> On Fri, Mar 27, 2020 at 2:10 PM BELGACEM NEDJIMA 
> wrote:
>
> > Hello everyone,
> > I finished my GSoC proposal for the QGIS project.
> > If anyone has any remark about it, please let me know before I submit the
> > proposal to GSoC website.
> > Best regards
> >
> > On Thu, Mar 19, 2020 at 1:14 PM BELGACEM NEDJIMA 
> > wrote:
> >
> >> Hello everyone,
> >> I am Belgacem Nedjima, a fourth year student at the higher school of
> >> computer science (ESI - ecole supérieure d'informatique), Algiers. I am
> >> very interested in QGIS 3D project and discussed the project with mentor
> >> Martin Dobias and wrote a proposal draft.
> >> I would be very happy to receive feedback and clarify anything about my
> >> proposal before I submit to the GSoC website. If there is anything
> unclear
> >> or missing please let me know.
> >> The list of features required for the QGIS 3D project is quite
> extensive,
> >> so if there is any feature you think is more interesting than the
> features
> >> I mentioned in the proposal please let me know.
> >>
> >> Proposal document :
> >>
> >>
> https://docs.google.com/document/d/1dyszmpDlMpIV0T6oKEtIfCY5N2nXSp43LqF_h4U9p4A/edit?usp=sharing
> >>
> >> I am looking forward to your valuable feedback.
> >>
> >> Best regards
> >>
> >> --
> >> Belgacem Nedjima
> >> 4th year computer science and engineering student student.
> >> https://github.com/NEDJIMAbelgacem
> >>
> >>
> >
> > --
> > Belgacem Nedjima
> > 4th year computer science and engineering student student.
> > https://github.com/NEDJIMAbelgacem
> >
> > ___
> > SoC mailing list
> > s...@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/soc
>
>
>
> --
> Ismail Sunni
> Software Engineer
> ismailsunni.id
> ismailsunni.wordpress.com
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200328/d49cb839/attachment-0001.html
> >
>
> --
>
> Subject: Digest Footer
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> --
>
> End of QGIS-Developer Digest, Vol 173, Issue 85
> ***
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] QGIS Server and the Grants programme

2020-06-09 Thread Maaza Mekuria
I appreciate your viewpoint and assessment very much, Jonathan.

I trust the board heeds your advise and lead towards focused investment in
those things that matter to the majority users.

Thank you,


On Mon, Jun 8, 2020, 1:12 PM  wrote:

> Send QGIS-Developer mailing list submissions to
> qgis-developer@lists.osgeo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.osgeo.org/mailman/listinfo/qgis-developer
> or, via email, send a message with subject or body 'help' to
> qgis-developer-requ...@lists.osgeo.org
>
> You can reach the person managing the list at
> qgis-developer-ow...@lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of QGIS-Developer digest..."
>
>
> Today's Topics:
>
>1. QGIS Server and the Grants programme (Jonathan Moules)
>2. Plugin [383] Buffer by Percentage approvalnotification.
>   (nore...@qgis.org)
>3. Re: QGIS Server and the Grants programme (Tim Sutton)
>
>
> --
>
> Message: 1
> Date: Mon, 8 Jun 2020 21:42:25 +0100
> From: Jonathan Moules 
> To: QGIS Developer Mailing List 
> Subject: [QGIS-Developer] QGIS Server and the Grants programme
> Message-ID: <6987c634-eb32-57a5-9d4f-455c2c49f...@lightpear.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi List,
> Some of you may have seen my blog post on the OSGeo-Discuss list about
> which mapping servers are the most deployed. For those who haven't seen
> it, QGIS Server has about 60 public deployments (1% of all of them), and
> it serves 11,924 datasets (0.5% of all public geospatial
> WMS/WFS/WCS/WMTS datasets).
>
> Potentially controversial here and I appreciate it's not a competition,
> but given the low uptake of QGIS Server compared to other Open Source
> offerings (GeoServer: 964 deployments, 963,603 datasets; MapServer: 544
> deployments, 389,709 datasets), is QGIS Server something the grant
> program should be funding? There are three Server proposals totalling
> €10,000, 22% of the fund.
>
> Now, before you get the pitchforks out(!), please consider the following:
>
> * Zero sum game - Any money spent on QGIS Server cannot be spent on QGIS
> Desktop. (The grants mostly aren't things that will improve the shared
> QGIS Core). (This reasoning also follows through to OSGeo funds).
>
> * Multiple solutions - Open Source (and OSGeo) already has a very
> healthy ecosystem of mapping servers - does it need another one?
>
> * Limited number of users benefited - I don't have stats for it, but
> QGIS Desktop is probably the most popular Open Source Desktop GIS, and
> is certainly going to have many orders of magnitude more users than QGIS
> Server.
>
> * Playing to your strengths - QGIS' strength is it's Desktop and it's
> generally good practice to play to your strengths.
>
>
> So given the above, and that QGIS is already "winning" as an Open Source
> Desktop (great job!), I'd like to suggest it's not a good idea to dilute
> the limited resources by spending them on QGIS Server. Instead it seems
> that far more people would benefit if that money was spent on Desktop,
> especially the bug fixing programme.
>
> Or alternatively, given the "Unique Selling Point" of QGIS Server is its
> integration with QGIS Desktop, those resources could be used to further
> improve interoperability with GeoServer/MapServer/deegree/etc. Those are
> all successful mature OSGeo projects that excel at serving maps, have an
> architecture designed for it, and already have huge install bases.
>
> TLDR: QGIS excels at being a Desktop, and I'd like to suggest it should
> play to its strengths and focus its limited funds there to benefit the
> most users.
>
> I shall now retreat to my bunker. :-)
>
> Cheers,
> Jonathan
>
> Note: The above only applies to the Grant program and funding; how
> developers wish to spend their time, and on which projects is of course
> their own prerogative.
>
> (Disclosure: I have no horse in this race; I don't run or administer any
> mapping servers, but I have done GeoServer in the past.)
>
>
>
>
>
> --
>
> Message: 2
> Date: Mon, 08 Jun 2020 21:23:42 -
> From: nore...@qgis.org
> To: juernja...@gmail.com, qgis-developer@lists.osgeo.org
> Subject: [QGIS-Developer] Plugin [383] Buffer by Percentage approval
> notification.
> Message-ID: <20200608212342.2210.78484@2c6504964296>
> Content-Type: text/plain; charset="utf-8"
>
>
> Plugin Buffer by Percentage approval by zimbogisgeek.
> The plugin version "[383] Buffer by Percentage 0.3.3" is now approved
> Link: http://plugins.qgis.org/plugins/BufferByPercentage/
>
>
> --
>
> Message: 3
> Date: Tue, 9 Jun 2020 00:09:13 +0100
> From: Tim Sutton 
> To: jonathan-li...@lightpear.com
> Cc: QGIS Developer 
> Subject: Re: [QGIS-Developer] QGIS Server and the Grants programme
> Message-ID: 
> Content-T

[Qgis-developer] Oracle Plugin Error Compiling QGIS 1.8

2012-10-09 Thread maaza mekuria
I am having difficulty compiling QGIS 1.8 in Windows XP using VC 2008.

The only plugin that is ending in error (the real problem) is the Oracle 
plugin. While it compiles without error, duing the linking I get these two 
unresolved external errors about two methods. I can not overcome these. Would 
anyone shed some light as to what libraries I am to add. I could see these 
methods in the OGR headers in the GDAL directory. I even added the header file 
and tried compiling, but it did not work,

I also was wondering why the plugins during linking do not generate the windows 
plugin dll's . I think prior to version 1.8 (in 1.7.x) they did generate the 
dll's and one did not need to do an install before getting the dll's.
 
Thank you,

Maaza 


1>   Creating library 
C:\GIS\myQGis\Proj\src\plugins\oracle_raster\RelWithDebInfo\oracleplugin.lib 
and object 
C:\GIS\myQGis\Proj\src\plugins\oracle_raster\RelWithDebInfo\oracleplugin.exp
1>qgsselectgeoraster_ui.obj : error LNK2001: unresolved external symbol 
"public: virtual char * __thiscall OGRGeometry::exportToGML(void)const " 
(?exportToGML@OGRGeometry@@UBEPADXZ)
1>qgsselectgeoraster_ui.obj : error LNK2001: unresolved external symbol 
"public: virtual int __thiscall OGRPolygon::Centroid(class OGRPoint *)const " 
(?Centroid@OGRPolygon@@UBEHPAVOGRPoint@@@Z)
1>C:\GIS\myQGis\Proj\output\plugins\RelWithDebInfo\oracleplugin.dll : fatal 
error LNK1120: 2 unresolved externals
1>Build log was saved at 
"file://c:\GIS\myQGis\Proj\src\plugins\oracle_raster\oracleplugin.dir\RelWithDebInfo\BuildLog.htm"
1>oracleplugin - 3 error(s), 0 warning(s)
== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Oracle Plugin Error Compiling QGIS 1.8

2012-10-09 Thread maaza mekuria
Okay I removed the Oracle raster Plugin. 
I an not able to add to the menu. My C++ Plugin used to show up well at 1.7, 
what more has changed that it is not showing up in 1.8? I added the category 
property and made sure I have appropriate methods for it.  

Is there a place to read what has changed? If I have missed the communication, 
would someone point me to where I can find the changes? 

Thank you,

Maaza 

--- On Tue, 10/9/12, maaza mekuria  wrote:

> From: maaza mekuria 
> Subject: [Qgis-developer]  Oracle Plugin Error Compiling QGIS 1.8
> To: qgis-developer@lists.osgeo.org
> Date: Tuesday, October 9, 2012, 1:00 PM
> I am having difficulty compiling QGIS
> 1.8 in Windows XP using VC 2008.
> 
> The only plugin that is ending in error (the real problem)
> is the Oracle plugin. While it compiles without error, duing
> the linking I get these two unresolved external errors about
> two methods. I can not overcome these. Would anyone shed
> some light as to what libraries I am to add. I could see
> these methods in the OGR headers in the GDAL directory. I
> even added the header file and tried compiling, but it did
> not work,
> 
> I also was wondering why the plugins during linking do not
> generate the windows plugin dll's . I think prior to version
> 1.8 (in 1.7.x) they did generate the dll's and one did not
> need to do an install before getting the dll's.
>  
> Thank you,
> 
> Maaza 
> 
> 
> 1>   Creating library
> C:\GIS\myQGis\Proj\src\plugins\oracle_raster\RelWithDebInfo\oracleplugin.lib
> and object
> C:\GIS\myQGis\Proj\src\plugins\oracle_raster\RelWithDebInfo\oracleplugin.exp
> 1>qgsselectgeoraster_ui.obj : error LNK2001: unresolved
> external symbol "public: virtual char * __thiscall
> OGRGeometry::exportToGML(void)const "
> (?exportToGML@OGRGeometry@@UBEPADXZ)
> 1>qgsselectgeoraster_ui.obj : error LNK2001: unresolved
> external symbol "public: virtual int __thiscall
> OGRPolygon::Centroid(class OGRPoint *)const "
> (?Centroid@OGRPolygon@@UBEHPAVOGRPoint@@@Z)
> 1>C:\GIS\myQGis\Proj\output\plugins\RelWithDebInfo\oracleplugin.dll
> : fatal error LNK1120: 2 unresolved externals
> 1>Build log was saved at
> "file://c:\GIS\myQGis\Proj\src\plugins\oracle_raster\oracleplugin.dir\RelWithDebInfo\BuildLog.htm"
> 1>oracleplugin - 3 error(s), 0 warning(s)
> == Build: 0 succeeded, 1 failed, 0 up-to-date, 0
> skipped ==
> 
> 
> 
> ___
> 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] Fwd: [GSoC Mentors] [Announce] Call for Proposals for Doc Sprint Summit v2.0

2012-10-11 Thread maaza mekuria
I am interested in getting documentation for QGIS improved. I am one of those 
who yells at the top of my voice and I seem to get no response. I am willing to 
put some time in to this project. 

I think a comprehensive documentation at least for the development side would 
be an excellent addition to QGIS. 

Please check out the research document produced, largely from QGIS built plugin 
toolset at the following link http://transweb.sjsu.edu/project/1005.html . 
Download the PDF document and you can see the modeling done using QGIS, you may 
even enjoy the bikie map of San Jose at http://www.axumcorp.com/sjbikemap.htm .

I live not very far from the Google's office and if my current availability 
continues I may be able to devote at least three days to the project. Is there 
any other person interested in pursuing this?

Maaza 

--- On Wed, 10/10/12, Marco Bernasocchi  wrote:

From: Marco Bernasocchi 
Subject: [Qgis-developer] Fwd: [GSoC Mentors] [Announce] Call for Proposals for 
Doc Sprint Summit v2.0
To: "qgis-developer" , "Werner Macho" 
, "Tim Sutton" 
Date: Wednesday, October 10, 2012, 8:35 PM

fyi
Marco Bernasocchi (mobile)

http://opengis.ch
-- Forwarded message --
From: "Carol Smith" <>
Date: Oct 11, 2012 1:45 AM
Subject: [GSoC Mentors] [Announce] Call for Proposals for Doc Sprint Summit v2.0

To: "Google Summer of Code Mentors List" 

Cc:  <>


Dear GSoC mentors and org admins, 

Google Summer of Code in collaboration with Aspiration and FLOSS Manuals is 
hosting a "Doc Sprint Camp" at Google's Mountain View headquarters (California) 
Dec 3 - 7, 2012.






The 2012 Doc Camp will feature:


1) An unconference on free software documentation topics - facilitated by 
Aspiration

2) 2-5 Book Sprints to produce books on free softwares - facilitated by FLOSS 
Manuals

Building on the success of the 2011 GSoC Doc Camp we are proud to bring you the 
2012 GSoC Doc Camp. Like the previous event the 2012 GSoC Doc Camp is a place 
for free software communities to meet, create a book for their project, attract 
new people to their efforts, and share their documentation experiences. The 
camp aims to improve free documentation materials and skills in free software 
projects and individuals and help form the identity of the emergent free 
documentation sector.







Individuals and projects can apply. Food and accommodation for all individuals 
will be provided and travel support (full or partial) can also be applied for.

Be a part of this exciting event – propose a Book Sprint on your favorite free 
software or come and help others write a book on their favorite project. 
Guaranteed to be a lot of fun, productive, and a fantastic place to advance 
your documentation efforts and experiences.







For more information or to register to take part, please 
see https://sites.google.com/site/docsprintsummitv2/. 
Please note proposals are due by October 26, so get yours in ASAP!







Cheers,
Carol Smith, Allen Gunn, Adam Hyde



-- 

You received this message because you are subscribed to the Google Groups 
"Google Summer of Code Mentors List" group.

To post to this group, send email to 
google-summer-of-code-mentors-l...@googlegroups.com.

To unsubscribe from this group, send email to 
google-summer-of-code-mentors-list+unsubscr...@googlegroups.com.


For more options, visit this group at 
http://groups.google.com/group/google-summer-of-code-mentors-list?hl=en.





-Inline Attachment Follows-

___
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] Windows refresh rates are slow

2010-10-05 Thread maaza mekuria
I have used QGIS from an OSGEO build and I find the refresh rates for 
layers to be very slow. Is there anything that I can do to overcome this
 problem. I am willing to compile myself if there anything I can do to 
help it.

Maaza


  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Windows refresh rates are slow

2010-10-06 Thread maaza mekuria
Thanks Giovanni for the response. It is entirely vector and I find that the 
redraws to be very slow. 

I made the suggested changes on using render caching and I do not see that much 
performance gain.

Is there anything else to do to help the refresh speed?

Thank you for your help,

Maaza  

--- On Wed, 10/6/10, Giovanni Manghi  wrote:

From: Giovanni Manghi 
Subject: Re: [Qgis-developer] Windows refresh rates are slow
To: "maaza mekuria" 
Cc: qgis-developer@lists.osgeo.org
Date: Wednesday, October 6, 2010, 3:54 AM

Hi,


On Tue, 2010-10-05 at 19:22 -0700, maaza mekuria wrote:
> I have used QGIS from an OSGEO build and I find the refresh rates for
> layers to be very slow. Is there anything that I can do to overcome
> this problem. 

rasters or vectors? size? added pyramids/overviews in rasters? did you
tested enabling the "use render caching where possible to speed up
redraws"?

cheers

-- Giovanni --





  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Windows refresh rates are slow

2010-10-06 Thread maaza mekuria
Thanks Ivan. I do not have too many vectors with more points. Most of the 
polygons are parcel data. I find the QGIS renderer to be slower and was 
wondering if it is possible to tweak it.

Thank you,

Maaza 

--- On Wed, 10/6/10, Ivan Mincik  wrote:

From: Ivan Mincik 
Subject: Re: [Qgis-developer] Windows refresh rates are slow
To: "maaza mekuria" 
Cc: qgis-developer@lists.osgeo.org
Date: Wednesday, October 6, 2010, 3:02 PM



On Wed, Oct 6, 2010 at 8:52 PM, maaza mekuria  wrote:


Thanks Giovanni for the response. It is entirely vector and I find that the 
redraws to be very slow. 

I made the suggested changes on using render caching and I do not see that much 
performance gain.



Is there anything else to do to help the refresh speed?


 By my experience, slow rendering is case when Your layer is containing some 
very big object (few hundred of vertexes each - for example long contour lines 
generated by Grass). 



Ivan





  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Documentation on how to make a C++ DLL interact with QGIS

2010-12-14 Thread maaza mekuria

Dear QGIS Developer Family:

I
 am looking for any documentation/instructions about how to make a C++ 
DLL interact with QGIS as a plugin. I would not mind using either 
completely in c++ through perhaps QT or with a Python front end inside 
QGIS. I have some experience making Python plugins, now I want to go the
 next step to have my external application interact with QGIS data 
directly.

I am also interested in compiling an app with my own 
QGIS GUI but that may require more work than I can do right now, and if I 
could pass data from Copiano or trunk QGIS to my application, I 
would be satisfied. 
 
Thank you for any help,

Maaza    






  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Re: [saga-gis-developer] QGIS plugin

2011-01-02 Thread maaza mekuria
I am wondering which APIdocumentation is applicable for Python functions for 
Version 1.6 Copiapo release. 

For example, I was using QGSGeometry and according to the documentation it 
takes a point and returns a double and another argument that receives a vertex 
(closest) on the line segment geometry.

Similar discrepancy exists for closestsegmentWithContext.  exists. The 
documentations says it like this, 
double QgsGeometry::closestegmentWithContext(qgsPoint,
   minDistPoint,beforeVertex)

but in the 1.6 version I am using, it give an array of results and it must be 
retrieved as part of an array.

Where would be the API docs that corresponds to a particular version of the 
software. I am assuming that the Python functions parallel those of C++. Until 
I could run with all the C++ crowd, (I am seriously contemplating to do just 
that, except I do not know how?) can you help me walk along the pathway of 
QGIS? If I could compile QGIS in QT I would jump to it immediately. I also 
wanted to just compile a dll in QGIS instead of compiling a complete3 
application, I do not want to create a separate GUI, but just a dll that would 
be called like a Python

Thank you for your help,

Maaza   



  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Where, O Where is the Python/C++ API Documentation for 1.6 QGIS

2011-01-02 Thread maaza mekuria
I am wondering which APIdocumentation is applicable for Python functions for 
Version 1.6 Copiapo release. 

For
 example, I was using QGSGeometry and according to the documentation it 
takes a point and returns a double and another argument that receives a 
vertex (closest) on the line segment geometry.

Similar discrepancy exists for closestsegmentWithContext.  exists. The 
documentations says it like this, 
double QgsGeometry::closestegmentWithContext(qgsPoint,
   minDistPoint,beforeVertex)

but in the 1.6 version I am using, it give an array of results and it must be 
retrieved as part of an array.

Where
 would be the API docs that corresponds to a particular version of the 
software. I am assuming that the Python functions parallel those of C++.
 Until I could run with all the C++ crowd, (I am seriously contemplating
 to do just that, except I do not know how?) can you help me walk along 
the pathway of QGIS? If I could compile QGIS in QT I would jump to it 
immediately. I also wanted to just compile a dll in QGIS instead of 
compiling a complete3 application, I do not want to create a separate 
GUI, but just a dll that would be called like a Python

Thank you for your help,

Maaza   



  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Where, O Where is the Python/C++ API Documentation for 1.6 QGIS

2011-01-02 Thread maaza mekuria
Thank you Noli!  

I do use all the other documentations available and I sometimes have to bang my 
head on the virtual wall and I sometimes worry if my head will crack or I go 
nuts before I get the answer. But I am quite happy with what I have been given 
already, I am provided much by many who labored before me. If only I could 
learn how to make C++ plugins then, may be then, all the mysteries will be 
over, and I could join the ones that contribute to the welbeing of the user 
base. 

I was under the impression that the C++ API methods return the same data as the 
Python methods. Is that true or am I thinking the unthinkable?

Thank you again for a swift response!

May you have a blessed new year,

Maaza 

--- On Sun, 1/2/11, Noli Sicad  wrote:

From: Noli Sicad 
Subject: Re: [Qgis-developer] Where, O Where is the Python/C++ API 
Documentation for 1.6 QGIS
To: "maaza mekuria" 
Cc: qgis-developer@lists.osgeo.org
Date: Sunday, January 2, 2011, 7:27 PM

Hi Maaza.

Here is the C++ API.

http://doc.qgis.org/head/index.html

I think there is no documentation of the Python API to corresponding
to C++, however, Qgis have pyqgis cookbook and other useful tools.

http://www.qgis.org/pyqgis-cookbook/

http://pyqgis.org/builder/plugin_builder.py

You can look at the plugins in the repository, visit the sites and
download the plugins and see how they are implemented in python.

http://www.qgis.org/wiki/Python_Plugin_Repositories

You also install the plugins and browse the plugin directory to see
the python codes.

Compiling QGIS, visit this site (below).

http://www.qgis.org/wiki/Installation_Guide

Noli




On 1/3/11, maaza mekuria  wrote:
> I am wondering which APIdocumentation is applicable for Python functions for
> Version 1.6 Copiapo release.
>
> For
>  example, I was using QGSGeometry and according to the documentation it
> takes a point and returns a double and another argument that receives a
> vertex (closest) on the line segment geometry.
>
> Similar discrepancy exists for closestsegmentWithContext.  exists. The
> documentations says it like this,
> double QgsGeometry::closestegmentWithContext(qgsPoint,
>            minDistPoint,beforeVertex)
>
> but in the 1.6 version I am using, it give an array of results and it must
> be retrieved as part of an array.
>
> Where
>  would be the API docs that corresponds to a particular version of the
> software. I am assuming that the Python functions parallel those of C++.
>  Until I could run with all the C++ crowd, (I am seriously contemplating
>  to do just that, except I do not know how?) can you help me walk along
> the pathway of QGIS? If I could compile QGIS in QT I would jump to it
> immediately. I also wanted to just compile a dll in QGIS instead of
> compiling a complete3 application, I do not want to create a separate
> GUI, but just a dll that would be called like a Python
>
> Thank you for your help,
>
> Maaza
>
>
>
>



  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Source commit history visualization for QGIS

2011-01-04 Thread maaza mekuria
That was a wonderful video, Nathan. Thanks for all the work! 

It is amazing what can be done when "Brothers and Sisters are together in 
accord." (Psalm 131)

Happy New Year again, and may it be a successful, productive coding year,

Maaza 

--- On Mon, 1/3/11, Noli Sicad  wrote:

From: Noli Sicad 
Subject: Re: [Qgis-developer] Source commit history visualization for QGIS
To: "Nathan Woodrow" 
Cc: qgis-developer@lists.osgeo.org
Date: Monday, January 3, 2011, 7:41 PM

Nathan,

Nice video!

Read a bit of your blogs as well.

Nice decision to switch to QGIS development.

Noli

On 1/4/11, Nathan Woodrow  wrote:
> Hi All,
>
> I try not pimp my own stuff to much but I thought I would post this here in
> case some other people are interested.   Last night I wrote a blog post
> about visualizing the source code commit history with a tool called gource,
> it's pretty cool to watch.
>
> The link:
> http://woostuff.wordpress.com/2011/01/03/generating-a-gource-source-commit-history-visualization-for-qgis-quantum-gis/
>
> - Nathan
>
___
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] How long is the compiling time for a build all QGIS?

2011-01-12 Thread maaza mekuria
I am attempting the first compile trial of QGIS from the trunk and I have been 
waiting for the compilation to end for the last two hours. Is that how long it 
will take if one builds all? I am using the OSGEO install in Windows XP with 
Visual C++ Express 9. My computer has 4GB memory and it is a Core2 Duo 8400 
3GHz processor. 

What am I doing wrong? The place it is waiting at is shown below (from the 
output of the compiler) and I only see that it is still continuing and I am 
compiling the release with debug version. 

30>Performing Pre-Link Event...
30>Compiling manifest to resources...
30>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
30>Copyright (C) Microsoft Corporation.  All rights reserved.
30>Linking...
30>Embedding manifest...
30>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
30>Copyright (C) Microsoft Corporation.  All rights reserved.
30>Build log was saved at 
"file://c:\SW\myQGIS\src\astyle\astyle.dir\RelWithDebInfo\BuildLog.htm"
30>astyle - 0 error(s), 0 warning(s)






  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] How long is the compiling time for a build all QGIS?

2011-01-12 Thread maaza mekuria
I looked at the build order output and found this error and that is where it 
seems to have gotten stuck, 

3>Generating qgssearchstringparser.cpp
3>m4: cannot open `Files\GnuWin32/share/bison': No such file or directory
3>m4: cannot open `C:\Program': No such file or directory
3>m4: cannot open `Files\GnuWin32/share/bison/m4sugar/m4sugar.m4': No such file 
or directory

I am not sure why it can not find the the files (the space in the file path is 
causing this problem?), and where it needs to be fixed? 

Any ideas? 

--- On Wed, 1/12/11, maaza mekuria  wrote:

From: maaza mekuria 
Subject: Re: [Qgis-developer] How long is the compiling time for a build all 
QGIS?
To: qgis-developer@lists.osgeo.org
Date: Wednesday, January 12, 2011, 3:39 PM

I am attempting the first compile trial of QGIS from the trunk and I have been 
waiting for the compilation to end for the last two hours. Is that how long it 
will take if one builds all? I am using the OSGEO install in Windows XP with 
Visual C++ Express 9. My computer has 4GB memory and it is a Core2 Duo 8400 
3GHz processor. 

What am I doing wrong? The place it is waiting at is shown below (from the 
output of the compiler) and I only see that it is still continuing and I am 
compiling the release with
 debug version. 

30>Performing Pre-Link Event...
30>Compiling manifest to resources...
30>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
30>Copyright (C) Microsoft Corporation.  All rights reserved.
30>Linking...
30>Embedding manifest...
30>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
30>Copyright (C) Microsoft Corporation.  All rights reserved.
30>Build log was saved at 
"file://c:\SW\myQGIS\src\astyle\astyle.dir\RelWithDebInfo\BuildLog.htm"
30>astyle - 0 error(s), 0 warning(s)






  
-Inline Attachment Follows-

___
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] How long is the compiling time for a build all QGIS?

2011-01-12 Thread maaza mekuria
Thank you for the input Nathan. I was able to get through the issue.

I now have been able to compile QGIS in VC 2008. But the trunk source has 
errors and it is not building completely. 

I am interested right now in building a sample C++ plugin. I am looking for 
some documentation on how I can compile a plugin that will run in my trunk 
(Ver. 1.7) installation would be kindly welcome.

Thank you,

Maaza

--- On Wed, 1/12/11, Nathan Woodrow  wrote:

From: Nathan Woodrow 
Subject: Re: [Qgis-developer] How long is the compiling time for a build all 
QGIS?
To: qgis-developer@lists.osgeo.org
Date: Wednesday, January 12, 2011, 4:28 PM

Yeah I had this issue when trying to build Qgis on windows.  I just moved the 
whole GnuWin32 to C:\GnuWin32 and re ran cmake to point it to the new path.


Uninstalling GnuWin32 and reinstalling into C:\GnuWin32 might be better then 
just moving the folder.

Hope this helps.


On Thu, Jan 13, 2011 at 7:57 AM, maaza mekuria  wrote:


I looked at the build order output and found this error and that is where it 
seems to have gotten stuck, 

3>Generating qgssearchstringparser.cpp


3>m4: cannot open `Files\GnuWin32/share/bison': No such file or directory
3>m4: cannot open `C:\Program': No such file or directory
3>m4: cannot open `Files\GnuWin32/share/bison/m4sugar/m4sugar.m4': No such file 
or directory



I am not sure why it can not find the the files (the space in the file path is 
causing this problem?), and where it needs to be fixed? 

Any ideas? 

--- On Wed, 1/12/11, maaza mekuria  wrote:



From: maaza mekuria 
Subject: Re: [Qgis-developer] How long is the compiling time for a
 build all QGIS?
To: qgis-developer@lists.osgeo.org
Date: Wednesday, January 12, 2011, 3:39 PM





I am attempting the first compile trial of QGIS from the trunk and I have been 
waiting for the compilation to end for the last two hours. Is that how long it 
will take if one builds all? I am using the OSGEO install in Windows XP with 
Visual C++ Express 9. My computer has 4GB memory and it is a Core2 Duo 8400 
3GHz processor.
 

What am I doing wrong? The place it is waiting at is shown below (from the 
output of the compiler) and I only see that it is still continuing and I am 
compiling the release with
 debug version. 

30>Performing Pre-Link Event...
30>Compiling manifest to resources...
30>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
30>Copyright (C) Microsoft Corporation.  All rights reserved.


30>Linking...
30>Embedding manifest...
30>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
30>Copyright (C) Microsoft Corporation.  All rights reserved.
30>Build log was saved at 
"file://c:\SW\myQGIS\src\astyle\astyle.dir\RelWithDebInfo\BuildLog.htm"


30>astyle - 0 error(s), 0 warning(s)






  
-Inline Attachment Follows-

___
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





-Inline Attachment Follows-

___
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] How long is the compiling time for a build all QGIS? Solved!

2011-01-13 Thread maaza mekuria
Thanks to Macho and Nathan and all of you who are excellent QGIS supporters, I 
was able to compile the application without errors. 

The errors posted were a result of prior installation of OSGEO include 
directory being left unchanged in CMake List of variables. Once I fixed that it 
was able to find the missing header files. 

I am off to a clean start, and will do a bit of fiddling with the plugins to 
test out my ideas. I will read Marco's documentation on the coding guideline 
file. I may even post some plugins, who knows where it will lead. But I am 
excited about the prospects of using QGIS to help me think better solutions for 
my GIS in Transportation problems.

I may even solve my personal crisis, one never knows what tomorrow will bring. 
But it is good to have an extra tool like QGIS to help along the way. 

Maaza

--- On Thu, 1/13/11, Werner Macho  wrote:

From: Werner Macho 
Subject: Re: [Qgis-developer] How long is the compiling time for a build all 
QGIS?
To: "maaza mekuria" 
Cc: qgis-developer@lists.osgeo.org
Date: Thursday, January 13, 2011, 2:30 AM

Hi!

> I am interested right now in building a sample C++ plugin. I am looking for 
> some documentation on how I can compile a plugin that will run in my trunk 
> (Ver. 1.7) installation would be kindly welcome.

What about http://www.qgis.org/en/documentation/manuals.html
The "QGIS Coding and Compilation Guide" should have some examples inside.

regards
Werner



  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] plugin development in Win XP

2011-02-03 Thread maaza mekuria
I am struggling to build a plugin in QGIS. I was able to build the source and I 
could run QGIS. But I can not create a plugin. I tried to follow Dr. Marco 
Hugentobler's example from the compilation guide and since it is linux based I 
could not duplicate it in the windows env. no matter how I try to compile the 
sample I get one error after another. Right now the error message below is the 
latest one. Can any of you offer some direction?


1>C:\SW\Src\qgis-trunk\src\gui\qgisinterface.h(54) : error C2470: 
'QgisInterface' : looks like a function definition, but there is no parameter 
list; skipping apparent body
1>c:\sw\src\qgis-trunk\src\core\qgis.h(32) : error C2470: 'QGis' : looks like a 
function definition, but there is no parameter list; skipping apparent body


Maaza



  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] plugin development in Win XP

2011-02-04 Thread maaza mekuria
I am repeating my question since it may not be , is it possible to build a 
plugin using WinXP and Visual Studio 2008 (I assume it is)? And is there any 
documentation on that? Or should one copy another plugin from the trunk and try 
to adopt it? Or should one resort to QT only for plugin development?

Thank you,

Maaza

--- On Thu, 2/3/11, maaza mekuria  wrote:

From: maaza mekuria 
Subject: [Qgis-developer] plugin development in Win XP
To: qgis-developer@lists.osgeo.org
Date: Thursday, February 3, 2011, 7:24 PM

I am struggling to build a plugin in QGIS. I was able to build the source and I 
could run QGIS. But I can not create a plugin. I tried to follow Dr. Marco 
Hugentobler's example from the compilation guide and since it is linux based I 
could not duplicate it in the windows env. no matter how I try to compile the 
sample I get one error after another. Right now the error message below is the 
latest one. Can any of you offer some
 direction?


1>C:\SW\Src\qgis-trunk\src\gui\qgisinterface.h(54) : error C2470: 
'QgisInterface' : looks like a function definition, but there is no parameter 
list; skipping apparent body
1>c:\sw\src\qgis-trunk\src\core\qgis.h(32) : error C2470: 'QGis' : looks like a 
function definition, but there is no parameter list; skipping apparent body


Maaza



  
-Inline Attachment Follows-

___
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] plugin development in Win XP

2011-02-04 Thread maaza mekuria
I am saying that it is not the same. Plugins are DLL's and setup comes 
already pre-packaged and I just had to follow instructions that were 
clear. 

With the plugins, Dr. Marco's document is written for Linux and then it is also 
not clear. I think the instructions given for the update of the source files 
are not correct. 

What are the required directories for the plugin? Do I need all the extra files 
cmake, .cxx, .svg, etc for the plugin to work? 

Just wondering if I am making demands that is not acceptable. If so please let 
me know.

Thank you,

Maaza  



--- On Fri, 2/4/11, G. Allegri  wrote:

From: G. Allegri 
Subject: Re: [Qgis-developer] plugin development in Win XP
To: "maaza mekuria" 
Cc: qgis-developer@lists.osgeo.org
Date: Friday, February 4, 2011, 9:15 AM

If you're able to build QGis, you're able to build the plugins too, as QGis has 
already builtin plugins. Have a look to this folder [1]. My first trial was 
create a new folder in my project (in VS I mean) and setup the same structure 
of the other plugins.

Giovanni

[1] http://trac.osgeo.org/qgis/browser/trunk/qgis/src/plugins

2011/2/4 maaza mekuria 

I am repeating my question since it may not be , is it possible to build a 
plugin using WinXP and Visual Studio 2008 (I assume it is)? And is there any 
documentation on that? Or should one copy another plugin from the trunk and try 
to adopt it? Or should one resort to QT only for plugin development?


Thank you,

Maaza

--- On Thu, 2/3/11, maaza mekuria  wrote:


From: maaza mekuria 
Subject: [Qgis-developer] plugin development in Win XP
To: qgis-developer@lists.osgeo.org

Date: Thursday, February 3, 2011, 7:24 PM


I am struggling to build a plugin in QGIS. I was able to build the source and I 
could run QGIS. But I can not create a plugin. I tried to follow Dr. Marco 
Hugentobler's example from the compilation guide and since it is linux based I 
could not duplicate it in the windows env. no matter how I try to compile the 
sample I get one error after another. Right now the error message below is the 
latest one. Can any of you offer some
 direction?


1>C:\SW\Src\qgis-trunk\src\gui\qgisinterface.h(54) : error C2470: 
'QgisInterface' : looks like a function definition, but there is no parameter 
list; skipping apparent body
1>c:\sw\src\qgis-trunk\src\core\qgis.h(32) : error C2470: 'QGis' : looks like a 
function definition, but there is no parameter list; skipping apparent body



Maaza



  
-Inline Attachment Follows-

___
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







  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] plugin development in Win XP

2011-02-08 Thread maaza mekuria
Thank you Alex:
I did build earlier using the instructions given on the web that you referred 
to. I was also able to run the QGIS (the built version) executable (after 
manually copying several libraries that were needed).

I now wanted to add my own plugin.That is when the real challenge started. I 
could compile the dll's that came from the trunk. I tried to add my own project 
following the plugin development directions and I could not get very far. That 
is where I am today. 

I do have experience with C++ and visual studio. I have written a few 
standalone applications that I want to run from within QGIS. 

Right now I am trying to make a simple dll as per the instructions given on the 
web and it has not gotten me anywhere. 

I tried rerunning CMake and I get a new error that I did not get before, and if 
anyone of you have any idea why let me know. I do have SIP installed and I even 
went to the extent of compiling it myself and CMake still could not find it.

Quantum GIS version: 1.7.0 Trunk (10700)
Found GRASS: C:/OSGeo4W/apps/grass/grass-6.4.0 (6.4.0)
Found Iconv: C:/OSGeo4W/lib/iconv.lib
Found Proj: C:/OSGeo4W/lib/proj.lib
Found Expat: C:/OSGeo4W/lib/libexpat.lib
Found GSL: C:/OSGeo4W/lib/gsl.lib;C:/OSGeo4W/lib/cblas.lib
Found GEOS: C:/OSGeo4W/lib/geos_c_i.lib
Found GDAL: C:/OSGeo4W/apps/gdal-17/lib/gdal_i.lib
Found QWT: C:/OSGeo4W/lib/qwt5.lib
CMake Error at cmake/FindSIP.cmake:54 (MESSAGE):
  Could not find SIP
Call Stack (most recent call first):
  CMakeLists.txt:399 (FIND_PACKAGE)

 Any help is greatly appreciated,
 
Maaza

--- On Sat, 2/5/11, Alex Mandel  wrote:

From: Alex Mandel 
Subject: Re: [Qgis-developer] plugin development in Win XP
To: qgis-developer@lists.osgeo.org
Date: Saturday, February 5, 2011, 8:32 PM

I think what Giovanni was implying is that you should setup to build
QGIS from source and that once you have that working your build
environment should work for plugins.

See http://www.qgis.org/wiki/Building_QGIS_from_Source#Building_on_Windows

Enjoy,
Alex

On 02/04/2011 10:21 AM, maaza mekuria wrote:
> I am saying that it is not the same. Plugins are DLL's and setup comes 
> already pre-packaged and I just had to follow instructions that were 
> clear. 
> 
> With the plugins, Dr. Marco's document is written for Linux and then it is 
> also not clear. I think the instructions given for the update of the source 
> files are not correct. 
> 
> What are the required directories for the plugin? Do I need all the extra 
> files cmake, .cxx, .svg, etc for the plugin to work? 
> 
> Just wondering if I am making demands that is not acceptable. If so please 
> let me know.
> 
> Thank you,
> 
> Maaza  
> 
> 
> 
> --- On Fri, 2/4/11, G. Allegri  wrote:
> 
> From: G. Allegri 
> Subject: Re: [Qgis-developer] plugin development in Win XP
> To: "maaza mekuria" 
> Cc: qgis-developer@lists.osgeo.org
> Date: Friday, February 4, 2011, 9:15 AM
> 
> If you're able to build QGis, you're able to build the plugins too, as QGis 
> has already builtin plugins. Have a look to this folder [1]. My first trial 
> was create a new folder in my project (in VS I mean) and setup the same 
> structure of the other plugins.
> 
> Giovanni
> 
> [1] http://trac.osgeo.org/qgis/browser/trunk/qgis/src/plugins
> 
> 2011/2/4 maaza mekuria 
> 
> I am repeating my question since it may not be , is it possible to build a 
> plugin using WinXP and Visual Studio 2008 (I assume it is)? And is there any 
> documentation on that? Or should one copy another plugin from the trunk and 
> try to adopt it? Or should one resort to QT only for plugin development?
> 
> 
> Thank you,
> 
> Maaza
> 
> --- On Thu, 2/3/11, maaza mekuria  wrote:
> 
> 
> From: maaza mekuria 
> Subject: [Qgis-developer] plugin development in Win XP
> To: qgis-developer@lists.osgeo.org
> 
> Date: Thursday, February 3, 2011, 7:24 PM
> 
> 
> I am struggling to build a plugin in QGIS. I was able to build the source and 
> I could run QGIS. But I can not create a plugin. I tried to follow Dr. Marco 
> Hugentobler's example from the compilation guide and since it is linux based 
> I could not duplicate it in the windows env. no matter how I try to compile 
> the sample I get one error after another. Right now the error message below 
> is the latest one. Can any of you offer some
>  direction?
> 
> 
> 1>C:\SW\Src\qgis-trunk\src\gui\qgisinterface.h(54) : error C2470: 
> 'QgisInterface' : looks like a function definition, but there is no parameter 
> list; skipping apparent body
> 1>c:\sw\src\qgis-trunk\src\core\qgis.h(32) : error C2470: 'QGis' : looks like 
> a function definition, but there is no parameter list; skipping apparent body
> 
> 
> 
> Maaza
> 


[Qgis-developer] QGIS Source Compile and Plugin Development

2011-02-10 Thread maaza mekuria
Yes, I need help until I find a solution to the plugin development. 

I may have to hire my own plugin consultant to overcome this handicap. 

I resorted to my working copy (I am glad I kept a copy of the 
source and project files of the previous compilation) and now I 
need help to see why it is not able to find the PyQT4 python
module. Any ideas where it is hiding?


Check the error log below from the + 

Generating ui_frmVisual.py
Traceback (most recent call last):
  File "C:\OSGeo4W\apps\Python25\Lib\site-packages\PyQt4\uic\pyuic.py", line 4, 
in 
from PyQt4 import QtCore
ImportError: No module named PyQt4
Project : error PRJ0002 : Error result 1 returned from 
'C:\WINDOWS\system32\cmd.exe'.

Results
  Build log was saved at 
"file://c:\SW\qgispro\python\plugins\fTools\tools\ftools_tools.dir\RelWithDebInfo\BuildLog.htm"
ftools_tools - 1 error(s), 0 warning(s)



 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS Source Compile and Plugin Development

2011-02-11 Thread maaza mekuria
Anyone knows or has documentation to help me progress with the plugin 
development? 

Here is my status. 

I use windows XP and Visual C++ Express 2008. I have a working copy of a build 
that I was able to compile QGIS. I tried inserting a project and making a 
plugin from scratch, and I find it needs a lot of other libraries. I then tried 
copying an existing plugin and tried to modify it, and it seems there are too 
many files that are needed to compile plugin and it just keeps giving error 
message after another. Do we have a minimum number set of 
headers/libraries/files that are required to compile a plugin? 

Is there any guide for the windows platform on plugin development? 
I have looked at the Linux plugin sample given in the introduction developer 
document and have tried to follow it in Windows and I have not been able to 
compile the plugin. 

Thank you,

Maaza

--- On Thu, 2/10/11, maaza mekuria  wrote:

From: maaza mekuria 
Subject: [Qgis-developer] QGIS Source Compile and Plugin Development
To: qgis-developer@lists.osgeo.org, qgis-u...@lists.osgeo.org, "Paul Wickman" 

Date: Thursday, February 10, 2011, 8:34 PM

Yes, I need help until I find a solution to the plugin development. 

I may have to hire my own plugin consultant to overcome this handicap. 

I resorted to my working copy (I am glad I kept a copy of the 
source and project files of the previous compilation) and now I 
need help to see why it is not able to find the PyQT4 python
module. Any ideas where it is hiding?


Check the error log below from the + 

Generating ui_frmVisual.py
Traceback (most recent call last):
  File "C:\OSGeo4W\apps\Python25\Lib\site-packages\PyQt4\uic\pyuic.py", line 4, 
in 
from PyQt4 import QtCore
ImportError: No module named PyQt4
Project : error PRJ0002 : Error result 1 returned from
 'C:\WINDOWS\system32\cmd.exe'.

Results
  Build log was saved at 
"file://c:\SW\qgispro\python\plugins\fTools\tools\ftools_tools.dir\RelWithDebInfo\BuildLog.htm"
ftools_tools - 1 error(s), 0 warning(s)



  
-Inline Attachment Follows-

___
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] Plugin Development C++ Windows

2011-02-17 Thread maaza mekuria
I again want to bring up the issue of how to create a small plugin using c++ in 
Windows Visual C++ Express. 

I copied the delimited text project and renamed the files and if it is a
 regular compilation, it should just compile the existing files. But the
 setup seems to generates the c++ headers and source 
files automatically. Why does it do that? How can I make it stop doing this? 

If any of you QGIS gurus are able to provide some insight into the settings 
that must be in place to compile a small plugin, you will be helping me much. 

Any help is greatly appreciated,

Maaza



  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Plugin Development C++ Windows - Any response?

2011-02-18 Thread maaza mekuria
Can it be possible to create a minimalist plugin using c++ in Windows Visual 
C++ Express without using all the bells and whistles that are in the other 
plugins such as CMakelists? 

Your help may make a difference between using Python and C++. I was able to 
copy a Python plugin and easily adopt it to my own version of a plugin. I was 
able to add and remove GUI items by just editing the UI file. I want to do 
something similar using C++. Is it impossible for a new comer? Do I need a 
Computer Science degree to? But it should not be as they say "Rocket science" 
to write a little function. 

I promise if I get it to work, I will share it with those who are suffering the 
famine for information. I am not sure why there is lack of documentation on 
such a simple matter or may be it is not simple or it is esoteric because it is 
highly dependent on many secret doors and passageways. 

I confess my stubbornness to use C++ is due to the type of work being a bit 
intensive and I also have already a C++ code for it and I just need a nicer 
interface and data store that is free as in "Free Chai" inside QGIS.

Anybody there listening to the call from QGIS (Quiet or Slow GIS) desert?     

Maaza





  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Plugin Development C++ Windows - Any response?

2011-02-24 Thread maaza mekuria
I like your idea Julien. It does not make sense to have to store all of QGIS 
source files for a c++ plugin to work. I think the libraries that need to be 
referenced should be found identified so that one may be able to just build 
(compile and link) the dll independently of the rest of the QGIS source.

I was able to find out why my QGIS compile failed. It appears to me that when I 
uninstalled Python version 2.6 and installed 2.7 something went wrong. I 
reinstalled Python 2.6 and now I am able to use cmake and configure and 
generate with out any error messages. I am thankful for your help and prayers, 
I might add. 

Now that I also heard that there is a build_plugin.py file that could ease my 
pain of creating a plugin, I am looking at it. Does it need to be run from with 
QGIS or what?

Just trying to break the C++ plugin barrier,
 
Maaza

--- On Wed, 2/23/11, Julien Malik  wrote:

From: Julien Malik 
Subject: Re: [Qgis-developer] Plugin Development C++ Windows - Any response?
To: "Barend Gehrels" 
Cc: qgis-developer@lists.osgeo.org
Date: Wednesday, February 23, 2011, 1:05 PM

Hello,

Having written some C++ plugins (for Orfeo Toolbox), I have some feedback to 
give.

The current recommended procedure is to have a source build of qgis, add your 
plugin inside qgis source tree, hack a QGis CMakeLists to add the new plugin 
dir, and recompile Qgis.

In my opinion, a better approach is to build them as external project.
The idea is to be able to build a plugin on top of a prebuilt Qgis (libqgis-dev 
on ubuntu/debian, and the OSGeo4W build on windows)

That's what I have set up for the plugins I wrote, but ran into the following 
problem :
- There is no FindQgis.cmake or QGisConfig.cmake exported in the qgis 
development package (either OSGeo4W or ubuntu/debian), so importing QGis inside 
a CMake project must be done "by hand". It's ok with the QGis include path and 
the path to libqgis_core. But you have to take care of importing Qt also, which 
should be done by a FindQgis.cmake
- I had to hack some QGis #define to make it build on windows (GUI_EXPORT and 
CORE_EXPORT). Again, this should be handled by a ADD_DEFINITION inside a 
FindQgis.cmake

One other thing : it would be nice if the C++ plugins could be loaded from 
another directory than the official one.
Let's say I wrote a bunch of plugins for a specific software, I would like to 
store them in their own directory instead of messing up with the official 
plugins. Maybe it's already supported but I don't know how to do it...

Regards,
Julien


Le 23/02/2011 14:12, Barend Gehrels a écrit :
> Hi,
> 
> 
>> Yes as Martin notes, and as I mentioned in my last email in this
>> thread "If you are able to use linux, you can even more easily just
>> use the plugin_builder.py script in that src/plugins directory and it
>> will generate for you a 'hello world' C++ plugin."
>> 
>> Perhaps the linux part is not relevant though as you should be able to
>> use it on widows with python, but I've never tried. As an interesting
>> history note, we have had a plugin builder script (in one form or
>> another) in QGIS for c++ plugins from very early on in the life of
>> QGIS's plugin support.
>> 
> 
> On Windows the plugin_builder.py works also perfectly.
> 
> Regards, Barend
> 
> ___
> 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



  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Plugin Development C++ Windows - Any response?

2011-02-24 Thread maaza mekuria
Thank you Barend, I wrote the name of the Python plugin_builder.py wrong.



--- On Thu, 2/24/11, Barend Gehrels  wrote:

From: Barend Gehrels 
Subject: Re: [Qgis-developer] Plugin Development C++ Windows - Any response?
To: "QGIS Developer" 
Date: Thursday, February 24, 2011, 6:20 PM



  


  On 24-2-2011 23:44, maaza mekuria wrote:

  

  
I like your idea
  Julien. It does not make sense to have to store all of
  QGIS source files for a c++ plugin to work. I think the
  libraries that need to be referenced should be found
  identified so that one may be able to just build (compile
  and link) the dll independently of the rest of the QGIS
  source.


  

  



+1 

I like it too.




  

  


  I was able to find out why my QGIS compile failed. It
  appears to me that when I uninstalled Python version 2.6
  and installed 2.7 something went wrong. I reinstalled
  Python 2.6 and now I am able to use cmake and configure
  and generate with out any error messages. I am thankful
  for your help and prayers, I might add. 

  

  Now that I also heard that there is a build_plugin.py file
  that could ease my pain of creating a plugin, I am looking
  at it. Does it need to be run from with QGIS or what?


  

  



Called plugin_builder.py 

For me it worked by just calling it from the command prompt (I used
Windows).



Is there a provider_builder.py as well somewhere?




  

  


  Just trying to break the C++ plugin barrier,


  

  



Me too ;-)



Regards, Barend



  

-Inline Attachment Follows-

___
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] Plugin Development C++ Windows - Any response? Just enough!

2011-02-25 Thread maaza mekuria
Thank you all for the guidance you provided. I was able to run the 
plugin_buidler.py to generate the base C++ files. I was also able to generate 
the visual c++ project files by using cmake-gui and you may even be surprised 
to hear that it compiled with out complaining and telling me it is offended by 
such and such item, etc. Where that leads me is still not clear but I have no 
complaints right now, just thanksgiving. 

Maaza

--- On Tue, 2/22/11, Maurício de Paulo  wrote:

From: Maurício de Paulo 
Subject: Re: [Qgis-developer] Plugin Development C++ Windows - Any response?
To: "Tim Sutton" 
Cc: "sailmcm" , qgis-developer@lists.osgeo.org
Date: Tuesday, February 22, 2011, 7:42 PM

Hi devs,
I also had problems to get the startup on c++ plugins development. Mainly 
because there was no Plugin Builder for C++. So we had to write everything from 
scratch and many are repetitive tasks. 
I though about writing a plugin builder for c++ but it never got out of 
planning phase. Anyone interested in developping?

Best regards,
Mauricio

On Tue, Feb 22, 2011 at 6:55 PM, Tim Sutton  wrote:

Hi



On Fri, Feb 18, 2011 at 10:38 PM, sailmcm  wrote:

> Thanks Goivanni, for the help and encouragment.  I have read both documents 
> and I was not able to resolve all problems. As you suggested I will try 
> harder.

>



Maaza - once you have QGIS building from source in windows the process

for building a new plugins is quite simple. Just copy and paste a

simple plugin folder like copyright plugin, name the folder something

like myplugin or whatever and then work through each and every file in

that dir (using search and replace where it makes sense to do so) to

make it your own. Look in the CMakeLists.txt - its not that hard -

typically you just need to add your .h and .cpp files to the list. If

you are able to use linux, you can even more easily just use the

plugin_builder.py script in that src/plugins directory and it will

generate for you a 'hello world' C++ plugin.



All that said you will need to understand Qt4 to do anything useful

once you get going...



Have fun!



Regards



Tim





> "G. Allegri"  wrote:

>

>>Maaza, I think your approach doesn't help to give you a hand.

>>The community cannot supply you the *time* you should invest in trying and,

>>maybe, learning the necessary basics to do what you need. You shoud try and

>>try and the, eventually, ask about things that go wrong.

>>

>>QGis plugins are C++, with some macros defined by Qt. Nothing more, nothing

>>less (am I wrong?). If you're able to compile C++ code in Visual Studio, you

>>don't need to rely on Cmakelist. It can help, because it makes a lot of work

>>for you, and you can be inspired by other plugins. But you also can build

>>and link the usual way.

>>

>>Have you read the "QGIS Coding and Compilation Guide" [1]?

>>

>>giovanni

>>

>>[1]

>>http://download.osgeo.org/qgis/doc/manual/qgis-1.6.0_coding-compilation_guide_en.pdf

>>

>>

>>

>>

>>2011/2/18 maaza mekuria 

>>

>>> Can it be possible to create a minimalist plugin using c++ in Windows

>>> Visual C++ Express without using all the bells and whistles that are in the

>>> other plugins such as CMakelists?

>>>

>>> Your help may make a difference between using Python and C++. I was able to

>>> copy a Python plugin and easily adopt it to my own version of a plugin. I

>>> was able to add and remove GUI items by just editing the UI file. I want to

>>> do something similar using C++. Is it impossible for a new comer? Do I need

>>> a Computer Science degree to? But it should not be as they say "Rocket

>>> science" to write a little function.

>>>

>>> I promise if I get it to work, I will share it with those who are suffering

>>> the famine for information. I am not sure why there is lack of documentation

>>> on such a simple matter or may be it is not simple or it is esoteric because

>>> it is highly dependent on many secret doors and passageways.

>>>

>>> I confess my stubbornness to use C++ is due to the type of work being a bit

>>> intensive and I also have already a C++ code for it and I just need a nicer

>>> interface and data store that is free as in "Free Chai" inside QGIS.

>>>

>>> Anybody there listening to the call from QGIS (Quiet or Slow GIS) desert?

>>>

>>>

>>> Maaza

>>>

>>>

>>>

>>>

>>> ___

>>> Qgis-developer mailing list

>>> Qgis-developer@lists.osgeo.org

>>> http://li

Re: [Qgis-developer] Grass plugin error - Missing header - 'libintl.h'

2011-02-25 Thread maaza mekuria
64 items compiled without error only one (Grass failed). Where does one fine 
the missing header  'libintl.h'?

Below is the error message output.

53>-- Build started: Project: gpsimporterplugin, Configuration: 
RelWithDebInfo Win32 --
53>Linking...
51>C:\OSGeo4W\apps\grass\grass-6.4.0\include\grass/glocale.h(9) : fatal error 
C1083: Cannot open include file: 'libintl.h': No such file or directory
51>Build log was saved at 
"file://c:\SW\myQGIS\src\plugins\grass\grassplugin.dir\RelWithDebInfo\BuildLog.htm"
51>grassplugin - 1 error(s), 0 warning(s)



65>Embedding manifest...
65>Build log was saved at 
"file://c:\SW\myQGIS\src\plugins\coordinate_capture\coordinatecaptureplugin.dir\RelWithDebInfo\BuildLog.htm"
65>coordinatecaptureplugin - 0 error(s), 0 warning(s)

== Build: 64 succeeded, 1 failed, 28 up-to-date, 0 skipped ==

Thank you,

Maaza



  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Plugin Development C++ Windows - GUI Interface question

2011-02-26 Thread maaza mekuria
I had gotten used to the copying and modifying other Python plugin UI files to 
develop my own Python plugin instead of creating one using QT Designer. 

Is it possible to do the same in C++. If I find a starter UI from an existing 
plugin, can I modify it for my use in a way like that of Python? What are the 
things I need to know to write simple UI's to interact with the plugin 
application?  

Thank you,

Maaza




  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] In with the new, out with the old?

2011-03-07 Thread maaza mekuria
I think overwriting an existing layer in memory is not a good practice.

 Updating existing geometry or attribute data would be great, such as when one 
merges two themes, and when the second theme is only contributing matching 
attribute. But overwriting should at least not be the default behavior.  

While using Python, I always feel it is not good that it wants to create a new 
even if the data I am adding is a dbf file. I think that is not helpful, there 
should be an option to append the data (this may apply to both the geometry and 
attribute) or make an new one.

Thank you,

Maaza
 
--- On Mon, 3/7/11, Borys Jurgiel  wrote:

From: Borys Jurgiel 
Subject: Re: [Qgis-developer] In with the new, out with the old?
To: qgis-developer@lists.osgeo.org
Cc: "Chris Crook" 
Date: Monday, March 7, 2011, 6:31 PM

Dnia poniedziałek 07 marca 2011 o 23:48:46 Carson Farmer napisał(a):
> Ok, I'm getting the overwhelming feeling that people want to be able
> to 'write' to memory layers. I'll try to add this functionality.

Yup!!

> However, I really don't think this should be the 'default' or
> primary/sole output type. I think what I'll probably do is simply add
> 'output options' to the current output file dialog, such that users
> can choose memory layer (this might require some work on a more
> generic vector file writer), shapefile, kml, whatever...

Yes, exactly :) Nobody says it should be the only option. But about the 
default... well ;)

> So a tool to delete vector(s)/raster(s) and associated files.
> Something like a open file dialog where you can select x number of
> QGIS supported vector/raster files, and delete them all in one go?
> That would be handy...

Yes. And also a reverse possibility: to select a few layers to save and remove 
everything else. Of course, for a safety, it shoud sort and filter files by a 
timestamp (like clearing data in Firefox).

There are only few things in this world that I hate. One of them is saving to 
another and another and another and another file :D

___
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] plugin text streams and Vector File writers question

2011-04-19 Thread maaza mekuria
Hello, again, 
I am pluging QGIS on Windows XP using Visual Studio 2008 compiler. I was able 
to set the user interface of my choice by using QTDesigner. I getting very 
comfortable and may be even getting hooked with QGIS. If QGIS fails then my 
research also fails. Such is the stake for me I am looking forward to the new 
release. 

I need help with layer writers  ( QgsVectorFileWriter) and stream writers 
(QTextStream). I know one is QGIS and the other QT. But you guys are expert in 
both and may help resolve my problems. I want to tackle the QT problem first, I 
open the text file pointer using the code below (almost the code of the 
tutorial by Marco.) 
    QString fileName = QFileDialog::getSaveFileName(0,"Traffic Stress log file 
name");
    if(!fileName.isNull())
    {
        QFile f(fileName);
        if(!f.open(QFile::WriteOnly | QFile::Truncate))
        {
            QMessageBox::information(0, "error", "Could not open file", 
QMessageBox::Ok);
            return;
        }
        QTextStream txtStream(&f);
   }  

I see the file created and yet when I try to write text data out I have not 
been successful at all. I have stream commands, such as the one below, thrown 
is at places I want to check the program's progress. They do compile without 
raising any errors and I also have message boxes with the variables come up 
during execution of the plugin, but nothing is being written to the disk file.
 
    txtStream <<" Traffic Stress update "<___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Attribute data update of a shape file

2011-04-29 Thread maaza mekuria
Dear QGIS Gurus:
I have a written a plugin that updates an attribute of a shape file and it 
tells me it ran fine and yet, I am not able to see the changes in the attribute 
table once the program finishes. I am using QGIS 1.6 Copiapo on Windows). I am 
compiling using the 1.7 source, but I have tried using the trunk version and it 
does not seem to matter at all.

I can see the edit starting with all the extent selected and it finishes 
without an error. I also write a log file before and after the feature 
attribute change and the feature values change correctly.
What am i doing wrong?

The simplified code is posted below,

           QgsVectorDataProvider* vProvider = theVectorLayer->dataProvider();
           theVectorLayer->select(vProvider->attributeIndexes(), 
           theVectorLayer->extent(), true, false);
           QgsFeature currentFeature;
           QgsGeometry* currentGeometry = 0;
                bool blnEdit = theVectorLayer->startEditing();
           QgsAttributeList attrList = vProvider->attributeIndexes();
      vProvider->select(attrList);
      blnFeat = vProvider->nextFeature(currentFeature);
      QgsAttributeMap atMap1;
            vProvider->createSpatialIndex();
      QgsAttributeList attrList = vProvider->attributeIndexes();
      vProvider->select(attrList);
      blnFeat = vProvider->nextFeature(currentFeature);
      QgsAttributeMap atMap1;
      QString featureAttributesString;
                int ltsVal = 10;
                int ltsFldIdx = 1;
      QVariant fld0 ;
      while(blnFeat)
      {
                       atMap1 = currentFeature.attributeMap();
         fld0 = atMap1.value(0);
         currentGeometry = currentFeature.geometry();
         if(!currentGeometry)
         {
            continue;
         } 
         else
         {
            currentFeature.changeAttribute(ltsFldIdx,QVariant(ltsVal));         
   
         }
         blnFeat = vProvider->nextFeature(currentFeature);
      }
      blnAttrAdded = theVectorLayer->commitChanges();
      theVectorLayer->endEditCommand();
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Attribute data update of a shape file

2011-04-29 Thread maaza mekuria
Is editing an existing shape file using C++ supported in QGIS 1.6? Almost all 
of the tools create a new shape file instead of updating the existing one. I 
would like to not waste my time if it is not possible to modify/overwrite an 
existing data file.

Thank you,

maaza

--- On Fri, 4/29/11, maaza mekuria  wrote:

From: maaza mekuria 
Subject: [Qgis-developer] Attribute data update of a shape file
To: qgis-developer@lists.osgeo.org
Date: Friday, April 29, 2011, 10:56 AM

Dear QGIS Gurus:
I have a written a plugin that updates an attribute of a shape file and it 
tells me it ran fine and yet, I am not able to see the changes in the attribute 
table once the program finishes. I am using QGIS 1.6 Copiapo on Windows). I am 
compiling using the 1.7 source, but I have tried using the trunk version and it 
does not seem to matter at all.

I can see the edit starting with all the extent selected and it finishes 
without an error. I also write a log file before and after the feature 
attribute change and the feature values change correctly.
What am i doing wrong?

The simplified code is posted below,

           QgsVectorDataProvider* vProvider = theVectorLayer->dataProvider();
           theVectorLayer->select(vProvider->attributeIndexes(),
 
           theVectorLayer->extent(), true, false);
           QgsFeature currentFeature;
           QgsGeometry* currentGeometry = 0;
                bool blnEdit = theVectorLayer->startEditing();
           QgsAttributeList attrList = vProvider->attributeIndexes();
      vProvider->select(attrList);
      blnFeat = vProvider->nextFeature(currentFeature);
      QgsAttributeMap atMap1;
            vProvider->createSpatialIndex();
      QgsAttributeList attrList = vProvider->attributeIndexes();
      vProvider->select(attrList);
      blnFeat =
 vProvider->nextFeature(currentFeature);
      QgsAttributeMap atMap1;
      QString featureAttributesString;
                int ltsVal = 10;
                int ltsFldIdx = 1;
      QVariant fld0 ;
      while(blnFeat)
      {
                       atMap1 = currentFeature.attributeMap();
         fld0 = atMap1.value(0);
         currentGeometry = currentFeature.geometry();
         if(!currentGeometry)
         {
            continue;
         } 
       
  else
         {
            currentFeature.changeAttribute(ltsFldIdx,QVariant(ltsVal));         
   
         }
         blnFeat = vProvider->nextFeature(currentFeature);
      }
      blnAttrAdded = theVectorLayer->commitChanges();
      theVectorLayer->endEditCommand();

-Inline Attachment Follows-

___
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] Attribute data update of a shape file

2011-05-02 Thread maaza mekuria
Thank you Jurgen for the valuable information. I would not have been able to 
get my plugin to do the update I need to have it with out your kindness.

Is there anywhere such items are explained? Is that part of the api doc through 
inheritance? If so I would try to look into it more and do my homework so that 
I am not a asking too many questions. But just the same, I am also ashamed to 
ask, and take your valuable time and I spend quite a bit of my time wandering 
around. 

Thank you Jurgen again and I also say, God bless you.

Maaza

--- On Sat, 4/30/11, Jürgen E. Fischer  wrote:

From: Jürgen E. Fischer 
Subject: Re: [Qgis-developer] Attribute data update of a shape file
To: qgis-developer@lists.osgeo.org
Date: Saturday, April 30, 2011, 3:25 AM

Hi,

On Fri, 29. Apr 2011 at 07:56:35 -0700, maaza mekuria wrote:
>    I have a written a plugin that updates an attribute of a shape file and it
>    tells me it ran fine and yet, I am not able to see the changes in the
>    attribute table once the program finishes. I am using QGIS 1.6 Copiapo on
>    Windows). I am compiling using the 1.7 source, but I have tried using the
>    trunk version and it does not seem to matter at all.

Changes to the feature buffer filled by QgsVectorLayer::nextFeature() are not
propagated to the layer.

Use QgsVectorLayer::changeAttributeValue() [1].


Jürgen

[1] 
http://www.qgis.org/api/classQgsVectorLayer.html#c6713fc84331e0b459f10fd0d7ecd8b8

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-20
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

___
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


[Qgis-developer] multimap object dereferencing in a plugin

2011-05-12 Thread maaza mekuria
I have been trying hard to find how to get access to the object I stored in a 
QMultiMap container. I am able to retrieve the numbered keys but when I try 
accessing the object QGIS crashes. 

I have done similar work in plain C++ and it has worked with out any problem, I 
used regualr multimap before. Here I tried both QT multimap and regualr 
multimap and while trying to access the second item in the iterator QGIS seems 
to give up. Any help will be appreciated. I have pasted a piece of the code 
below,    


   typedef QMultiMap mmaplngQPt;
// QgsPoint map iterator objects
   typedef mmaplngQPt::iterator maplngQPtit1, maplngQPtit2;
   mmaplngQPt::iterator Pt1Qmapit, Pt2Qmapit,itQlow, itQup;
   typedef pair < long, QgsPoint >  QPt_pair;
   mmaplngPt mapQPt,mapQPt0,mapQPt1;
   mmaplngPt::iterator mapQPtit;
   long iKey;
   int lbx,ubx;
  QgsPoint vx;

   itQlow=mapQPt.lowerBound (lbX);
   itQup=mapQPt.upperBound (ubX);

                  for ( mapQPtit=itQlow ; mapQPtit != itQup; mapQPtit++ ) 
                  {

                     txtStream <<"key = "<___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Re: Mac Snow Leopard - QGIS Symbology - Also windows symbology

2011-05-16 Thread maaza mekuria
Mars, I also have a problem that bears mentioning here (for QGIS 1.6 and 1.7 
trunk). I have had QGIS crash when a layer's symbology had been defined using 
unique value of a field and that field is not there anymore. Anytime that layer 
is opened even if it was removed from the project first and added later, it 
crashes. It also crashes if the layer is renamed, or deleted outside QGIS (when 
QGIS is not running) and the project is opened not able access it. I think the 
layer definition and the symbology definition may be placed separately in the 
project file. (I am not sure exactly.)

I have also seen behaviors that are a bit unusual that some layers are listed 
first when the project opens up but are not really in the final visible Canvas 
layer list. I opened the project file and I see the XML data has them as layers 
but they are not part fo the visible layer. Is this a feature or a bug?

Maaza       

--- On Mon, 5/16/11, Mars Sjoden  wrote:

From: Mars Sjoden 
Subject: [Qgis-developer] Re: Mac Snow Leopard - QGIS Symbology
To: Qgis-developer@lists.osgeo.org
Date: Monday, May 16, 2011, 5:53 PM

On Sat, May 14, 2011 at 6:48 PM, Mars Sjoden  wrote:

Just out of curiosity, how is the QGIS Symbology Changing crashing issue coming 
along?
I just tested out Kyng's latest QGIS 1.7 r15814 for Snow Leopard (64bit Intel 
Qt 4.7 Cocoa)  [with all req. dep.]


and found the same hard crashing of QGIS when changing symbology of a feature.
I noticed there is an Active Ticket on this issue #3380



Any hope for QGIS users on Mac in the near future?
Thanks a lot!
Mars 

Just an Update. Will post to Ticket #3497 also for info.

So I decided to try building QGIS from trunk and give that a try.  Installed Qt 
4.7.3 and all the other dependancies listed 

here on the QGIS Wiki: http://is.gd/AdHLiT

Ended up building the latest version of QGIS in trunk: 1.7.0 (1.7.0-Wroclaw 
(15870))

Build went fine.

No problems opening shapefiles, spatiallite, postgis, etc.


However, same issue when changing symbology of a layer.  QGIS hard crashes.

Sometimes it crashes on the first time setting symbology, sometimes on the 3rd 
or 4th time, but early enough.

This issue is actually a little depressing for me because I love using QGIS, 
but with out symbology I do find

it rather limiting.

cheers!

Mars



-Inline Attachment Follows-

___
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


[Qgis-developer] Exception "Access Violation No RTTI- Data!" on windows XP (32 bit)

2011-05-23 Thread maaza mekuria
I am getting the error  "Access Violation No RTTI- Data!"  while I am running 
my C++ plugin.  I checked out on the web to see what if it was reported by 
anyone, and I found some references about a year ago. I am not sure if any of 
you have come across of the same and know why it is due to. The plugin does not 
crash but I am not able to find out what is causing it. I am opening multiple 
layer data using the layer data providers (shape file layers on the canvas.)  
and nothing more unusual.

The web problems were reported about a year ago and I can not see what was the 
resolution except the new version seemed to take of it. 
Thank you,

Maaza


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Exception "Access Violation No RTTI- Data!" on windows XP (32 bit)

2011-05-23 Thread maaza mekuria
I tried two plugins with a slightly different cose and and I get the same 
response. I wish it would go away, but wishing does not help here. So I need 
your expert help.

I find that the canvas object (QgisInterface pointer) loses its data as it 
passes the layers to processing method. What could cause this? I know the same 
sort of code works for a single layer data. Any ceiling it has reached? Did I 
hit the stone/steel wall or am I in need of training. I wish there was an ebook 
or something that explains these challenges. It would have made my work easier. 
But I have to be a sleuth and try to find a work around this glass ceiling. 

Any ideas, suggestions? 

Maaza 

--- On Mon, 5/23/11, maaza mekuria  wrote:

From: maaza mekuria 
Subject: [Qgis-developer] Exception "Access Violation No RTTI- Data!" on 
windows XP (32 bit)
To: "qgis-dev" 
Date: Monday, May 23, 2011, 3:45 PM

I am getting the error  "Access Violation No RTTI- Data!"  while I am running 
my C++ plugin.  I checked out on the web to see what if it was reported by 
anyone, and I found some references about a year ago. I am not sure if any of 
you have come across of the same and know why it is due to. The plugin does not 
crash but I am not able to find out what is causing it. I am opening multiple 
layer data using the layer data providers (shape file layers on the canvas.)  
and nothing more unusual.

The web problems were reported about a year ago and I can not see what was the 
resolution except the new version seemed to take of it. 
Thank you,

Maaza



-Inline Attachment Follows-

___
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] Exception "Access Violation No RTTI- Data!" on windows XP (32 bit)

2011-05-24 Thread maaza mekuria
Thanks Giovani for the response. I am developing a network modeling tool that 
analyzes a roadway bicycle transportation based on a classification scheme that 
we came up with. I have done routing for walk access to transit in the past and 
I am looking forward to porting that also to QGIS. But right now the modeling 
tool uses three sets of data (edge/vertex relationship) and using a network 
Voronoi algorithm (it is a sort of modified Tarjan/Dijkstra) to produce a 
demographic based trip matrix. 

I would be delighted to contribute it, as long as the sponsoring agency, Mineta 
Transportation Institute (at San Jose State University) does not have problems 
with it. I am assuming they would be very happy to have a wider circulation for 
the work. I am grateful for this project, and I have come to enjoy using QGis 
and programming with it very much.

I have done the routing using pure C++ before, and I find that to be extremely 
productive and meets the challenges of processing large amounts of data. I have 
written a couple of network processing plugins using Python and they took a lot 
of time to run. But now that I am a bit proficient with C++ plugins in QGIS it 
is very fast sometimes it is too fast to compare with Python. This goes even 
for ArcGIS and VB (I have done some programming inside Esri Software also). 

My suggestion for any data intensive work and one that would stay long, one 
should use C++.
 
What should I do with the error? Why is it happening, I am using QGis version 
1.6. I am compiling from the  1.7  trunk.

Thank you for your help,

Maaza  

--- On Tue, 5/24/11, Giovanni Manghi  wrote:

From: Giovanni Manghi 
Subject: Re: [Qgis-developer] Exception "Access Violation No RTTI- Data!" on 
windows XP (32 bit)
To: "maaza mekuria" 
Cc: "qgis-dev" 
Date: Tuesday, May 24, 2011, 3:22 PM

Hi,

I recall that the error had something related with the TOC. Since the
TOC has been upgraded to included nested groups and multiple layer
selection the error seems to have gone.


On another note: what does your plugin? do you plan to contribute it?


Cheers

-- Giovanni --


On Mon, 2011-05-23 at 12:45 -0700, maaza mekuria wrote:
> I am getting the error  "Access Violation No RTTI- Data!"  while I am
> running my C++ plugin.  I checked out on the web to see what if it was
> reported by anyone, and I found some references about a year ago. I am
> not sure if any of you have come across of the same and know why it is
> due to. The plugin does not crash but I am not able to find out what
> is causing it. I am opening multiple layer data using the layer data
> providers (shape file layers on the canvas.)  and nothing more
> unusual.
> 
> The web problems were reported about a year ago and I can not see what
> was the resolution except the new version seemed to take of it. 
> Thank you,
> 
> Maaza
> 
> 
> 
> ___
> 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] Exception "Access Violation No RTTI- Data!" on windows XP (32 bit)

2011-05-25 Thread maaza mekuria
This is going to be distributed as a research result and I am thinking it will 
be available under GPL.. But I do not understand what AFAIK means . You must 
explain it to me.

Thank you,

Maaza





___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Exception "Access Violation No RTTI- Data!" on windows XP (32 bit)

2011-05-25 Thread maaza mekuria
Did anyone else ever seen the "Access Violation No RTTI- Data!" exception?

I know there are not many windows users here, but is it related to Threading or 
is it my own programming problem? Is it running out of memory that it 
completely loses the layer list or what?

Just waiting until the fish that swallowed the lost coin is caught and gives 
back what it does not need to hold on to.

Maaza
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Query Set using SetSubstring does not return record

2011-06-08 Thread maaza mekuria


I have a subsetstring query applied in code to the layer data. Yet I find that 
it does not return any records that it should have
 located.


The code is pasted below, the setSubsetString passes and yet the selected 
feature count is 0. What am I missing here?

               //Query the edge table edge field to find the two vertices 
               strQryEdge = "EDGEID=" + fld0.toString() + ""; 
               if (inEdgeVectorProvider->supportsSubsetString()) 
               {
                  blnQryCur=inEdgeVectorLayer->setSubsetString(strQryEdge);
                  if (blnQryCur) 
                  {
 
                     lstEdgeFeats = inEdgeVectorLayer->selectedFeatures();
                     txtStream << " Recount - "

Re: [Qgis-developer] Query Set using SetSubstring does not return record

2011-06-08 Thread maaza mekuria
I have a following question that is important for my understanding, and I would 
like to know what is the relationship between the data provider and the layer 
and if I set the setSubsetString in the provider of a layer does it propagate 
to the layer if I query the selection on the layer? As part of the inheritance 
rules, does the layer push down the selection to the provider or are they 
dynamically aware of selections between them.

Thank you,

Maaza 

--- On Wed, 6/8/11, maaza mekuria  wrote:

> From: maaza mekuria 
> Subject: [Qgis-developer] Query Set using SetSubstring does not return record
> To: "QGIS Developer" 
> Date: Wednesday, June 8, 2011, 2:25 PM
>        
> 
>             
> I have a subsetstring query applied in code to the layer
> data. Yet I find that it does not return any records that it
> should have
>  located.
> 
> 
> The code is pasted below, the setSubsetString passes and
> yet the selected feature count is 0. What am I missing
> here?
> 
>                //Query the edge table edge field
> to find the two vertices 
>                strQryEdge = "EDGEID=" +
> fld0.toString() + ""; 
>                if
> (inEdgeVectorProvider->supportsSubsetString()) 
>                {
>                 
>  blnQryCur=inEdgeVectorLayer->setSubsetString(strQryEdge);
>                   if (blnQryCur) 
>                   {
>  
>                      lstEdgeFeats =
> inEdgeVectorLayer->selectedFeatures();
>                      txtStream << "
> Recount - "<                   } // if network source query
> returns edge result
>                } // if edge provider supports
> query subst
> 
> 
> Thank you,
> 
> Maaza
> 
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Query Set using SetSubstring does not return record

2011-06-08 Thread maaza mekuria
I figured it out. I was assuming that the setSubsetString would do the querying 
and update the selection set, but I gather now after a few hours of hardwork 
that is not its purpose, it just limits the accessible features with out 
changing the selection set. 

How can I help update the documentation to reflect what the methods are meant 
to do?

Thank you,

Maaza  

--- On Wed, 6/8/11, maaza mekuria  wrote:

> From: maaza mekuria 
> Subject: [Qgis-developer] Query Set using SetSubstring does not return record
> To: "QGIS Developer" 
> Date: Wednesday, June 8, 2011, 2:25 PM
>        
> 
>             
> I have a subsetstring query applied in code to the layer
> data. Yet I find that it does not return any records that it
> should have
>  located.
> 
> 
> The code is pasted below, the setSubsetString passes and
> yet the selected feature count is 0. What am I missing
> here?
> 
>                //Query the edge table edge field
> to find the two vertices 
>                strQryEdge = "EDGEID=" +
> fld0.toString() + ""; 
>                if
> (inEdgeVectorProvider->supportsSubsetString()) 
>                {
>                 
>  blnQryCur=inEdgeVectorLayer->setSubsetString(strQryEdge);
>                   if (blnQryCur) 
>                   {
>  
>                      lstEdgeFeats =
> inEdgeVectorLayer->selectedFeatures();
>                      txtStream << "
> Recount - "<                   } // if network source query
> returns edge result
>                } // if edge provider supports
> query subst
> 
> 
> Thank you,
> 
> Maaza
> 
> ___
> 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] Query Set using SetSubstring does not return record - resolved but with a question

2011-06-08 Thread maaza mekuria
Let me lay bare my hearts desire, is it alright to have a method that updates 
the selection set using the setSubString query? What is the reason that such a 
powerful way to query the data does not also have a means to update the 
selection set?

I know I am pushing my luck or my providence. But God is generous to the rich 
as well as to the poor and I am told to ask always and I am sure there will be 
answer soon. Or am I talking only to myself here?

Maaza

--- On Wed, 6/8/11, maaza mekuria  wrote:

> From: maaza mekuria 
> Subject: Re: [Qgis-developer] Query Set using SetSubstring does not return 
> record
> To: "QGIS Developer" 
> Date: Wednesday, June 8, 2011, 5:43 PM
> I figured it out. I was assuming that
> the setSubsetString would do the querying and update the
> selection set, but I gather now after a few hours of
> hardwork that is not its purpose, it just limits the
> accessible features with out changing the selection set. 
> 
> How can I help update the documentation to reflect what the
> methods are meant to do?
> 
> Thank you,
> 
> Maaza  
> 
> --- On Wed, 6/8/11, maaza mekuria 
> wrote:
> 
> > From: maaza mekuria 
> > Subject: [Qgis-developer] Query Set using SetSubstring
> does not return record
> > To: "QGIS Developer" 
> > Date: Wednesday, June 8, 2011, 2:25 PM
> >        
> > 
> >             
> > I have a subsetstring query applied in code to the
> layer
> > data. Yet I find that it does not return any records
> that it
> > should have
> >  located.
> > 
> > 
> > The code is pasted below, the setSubsetString passes
> and
> > yet the selected feature count is 0. What am I
> missing
> > here?
> > 
> >                //Query the edge table edge
> field
> > to find the two vertices 
> >                strQryEdge = "EDGEID=" +
> > fld0.toString() + ""; 
> >                if
> > (inEdgeVectorProvider->supportsSubsetString()) 
> >                {
> >                 
> >
>  blnQryCur=inEdgeVectorLayer->setSubsetString(strQryEdge);
> >                   if (blnQryCur) 
> >                   {
> >  
> >                      lstEdgeFeats =
> > inEdgeVectorLayer->selectedFeatures();
> >                      txtStream <<
> "
> > Recount - "< >                   } // if network source
> query
> > returns edge result
> >                } // if edge provider
> supports
> > query subst
> > 
> > 
> > Thank you,
> > 
> > Maaza
> > 
> > ___
> > 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
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Query Set using SetSubstring does not return record - resolved but with a question

2011-06-08 Thread maaza mekuria
I have learned from you how I can select all the features in a layer through 
code using extents and attribute lists. What I would like is to be able to use 
a simple command that says layer->selectall() or something like that. I think 
selection is very important method in GIS. 

I  think of Quantum GIS, which is in a league on its own as with Quantum 
Mechanics where one desperately tries to measure properties applying the 
Heisenberg Principle. 

We are in need of a way to select and measure the particles in as many ways as 
we can. 

What do you think?

Maaza


--- On Wed, 6/8/11, maaza mekuria  wrote:

> From: maaza mekuria 
> Subject: Re: [Qgis-developer] Query Set using SetSubstring does not return 
> record - resolved but with a question
> To: "QGIS Developer" 
> Date: Wednesday, June 8, 2011, 7:49 PM
> Let me lay bare my hearts desire, is
> it alright to have a method that updates the selection set
> using the setSubString query? What is the reason that such a
> powerful way to query the data does not also have a means to
> update the selection set?
> 
> I know I am pushing my luck or my providence. But God is
> generous to the rich as well as to the poor and I am told to
> ask always and I am sure there will be answer soon. Or am I
> talking only to myself here?
> 
> Maaza
> 
> --- On Wed, 6/8/11, maaza mekuria 
> wrote:
> 
> > From: maaza mekuria 
> > Subject: Re: [Qgis-developer] Query Set using
> SetSubstring does not return record
> > To: "QGIS Developer" 
> > Date: Wednesday, June 8, 2011, 5:43 PM
> > I figured it out. I was assuming that
> > the setSubsetString would do the querying and update
> the
> > selection set, but I gather now after a few hours of
> > hardwork that is not its purpose, it just limits the
> > accessible features with out changing the selection
> set. 
> > 
> > How can I help update the documentation to reflect
> what the
> > methods are meant to do?
> > 
> > Thank you,
> > 
> > Maaza  
> > 
> > --- On Wed, 6/8/11, maaza mekuria 
> > wrote:
> > 
> > > From: maaza mekuria 
> > > Subject: [Qgis-developer] Query Set using
> SetSubstring
> > does not return record
> > > To: "QGIS Developer" 
> > > Date: Wednesday, June 8, 2011, 2:25 PM
> > >        
> > > 
> > >             
> > > I have a subsetstring query applied in code to
> the
> > layer
> > > data. Yet I find that it does not return any
> records
> > that it
> > > should have
> > >  located.
> > > 
> > > 
> > > The code is pasted below, the setSubsetString
> passes
> > and
> > > yet the selected feature count is 0. What am I
> > missing
> > > here?
> > > 
> > >                //Query the edge table
> edge
> > field
> > > to find the two vertices 
> > >                strQryEdge = "EDGEID="
> +
> > > fld0.toString() + ""; 
> > >                if
> > > (inEdgeVectorProvider->supportsSubsetString())
> 
> > >                {
> > >                 
> > >
> >
>  blnQryCur=inEdgeVectorLayer->setSubsetString(strQryEdge);
> > >                   if (blnQryCur) 
> > >                   {
> > >  
> > >                      lstEdgeFeats
> =
> > > inEdgeVectorLayer->selectedFeatures();
> > >                      txtStream
> <<
> > "
> > > Recount -
> "< > >                   } // if network
> source
> > query
> > > returns edge result
> > >                } // if edge provider
> > supports
> > > query subst
> > > 
> > > 
> > > Thank you,
> > > 
> > > Maaza
> > > 
> > > ___
> > > 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
> >
> ___
> 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] Query Set using SetSubstring does not return record - resolved but with a question

2011-06-09 Thread maaza mekuria
Thank you Anita for the suggestions. I would like to put a ticket out on the 
needed improvement for this issue. I feel it is highly inconsistent that even 
after applying the setSubsetString(qry) , if one selects all the data, the 
selection includes all the items in the layer. Is there another way to select 
what is only included on the layer as per the subsetString? 

When I execute a selection set of all the features on the layer, the sub-query 
appears to be invisible to the selection code, and it ends up telling me all 
the features are selected. This is misleading because I would think I have 
access to all the features as per what the selection size is reporting from 
Layername.selectedFeatureCount() number.

Thank you again for your help,

Maaza

--- On Thu, 6/9/11, Anita Graser  wrote:

From: Anita Graser 
Subject: Re: [Qgis-developer] Query Set using SetSubstring does not return 
record - resolved but with a question
To: "maaza mekuria" 
Cc: "QGIS Developer" 
Date: Thursday, June 9, 2011, 2:51 AM

Hi Maaza,

On Thu, Jun 9, 2011 at 3:10 AM, maaza mekuria  wrote:

I have learned from you how I can select all the features in a layer through 
code using extents and attribute lists. What I would like is to be able to use 
a simple command that says layer->selectall() or something like that

Feel free to add this feature request to the bug tracker or to even write the 
patch to add this function to the layer class.

is it alright to have a method that updates the selection set using the 
setSubString query? Why not? 
What is the reason that such a powerful way to query the data does not also 
have a means to update the selection set? 
Imho, the query string has nothing to do with the selection set. If you first 
set the query string, you can then select all features left in the layer.

Best wishes, Anita 
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Use of Spatial Index

2011-07-27 Thread maaza mekuria
I am just wondering if one could use the following in a spatial index created 
from the layer provider 

 QgsVectorLayer* cvertexLayer = cVertexLayer(txtStream);
 QgsVectorDataProvider* cvectorProvider = cvertexLayer->dataProvider();
 bool blnSpatialIdx = cvectorProvider->createSpatialIndex();
 
After creating the spatial index file how can I access it in code? 
can I use it in anyway to perform spatial filters for selection purposes?

 QgsSpatialIndex mSpatialIndex =  cvectorProvider; // may be 
cvectorLayer; 

or may be even directly perform this 

 QgsSpatialIndex mSpatialIndex = cvectorProvider->createSpatialIndex();

 // and then do something like this
 mSpatialIndex.intersects( rect ); 


DO I have to create my own in memory spatial index to perform the above 

what do you think? 

Maaza


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Use of Spatial Index

2011-07-28 Thread maaza mekuria
Thank you, Martin for your explanation. I ahve one more followup question.

Can the spatial index be composed of features other than points? I do not see 
any restriction in the documentation. Can I use features such as lines and 
polylines in an in-memory spatial index and use these as one uses points? 

Thank you,

Maaza

--- On Thu, 7/28/11, Martin Dobias  wrote:

> From: Martin Dobias 
> Subject: Re: [Qgis-developer] Use of Spatial Index
> To: "maaza mekuria" 
> Cc: qgis-developer@lists.osgeo.org
> Date: Thursday, July 28, 2011, 7:17 AM
> Hi
> 
> On Wed, Jul 27, 2011 at 8:56 PM, maaza mekuria 
> wrote:
> > I am just wondering if one could use the following in
> a spatial index created from the layer provider
> >
> >  QgsVectorLayer* cvertexLayer =
> cVertexLayer(txtStream);
> >  QgsVectorDataProvider* cvectorProvider =
> cvertexLayer->dataProvider();
> >  bool blnSpatialIdx =
> cvectorProvider->createSpatialIndex();
> 
> createSpatialIndex() method is supported only by memory
> provider and
> by OGR provider for shapefiles. With shapefiles it means
> that a .qix
> file is created with a quadtree structure. Memory provider
> builds
> R-tree (using QgsSpatialIndex class).
> 
> 
> > After creating the spatial index file how can I access
> it in code?
> > can I use it in anyway to perform spatial filters for
> selection purposes?
> >
> >  QgsSpatialIndex mSpatialIndex = 
> cvectorProvider; // may be cvectorLayer;
> >
> > or may be even directly perform this
> >
> >  QgsSpatialIndex mSpatialIndex =
> cvectorProvider->createSpatialIndex();
> >
> >  // and then do something like this
> >  mSpatialIndex.intersects( rect );
> 
> No. You cannot access the provider's spatial index. Some
> providers do
> not support spatial indexing, others (optionally) use it,
> but it is
> invisible for the client. When you call provider.select(
> ... ) and
> specify a rectangle, you will get only features that are
> inside this
> rectangle - and if a spatial index is available then it
> will be used
> for faster access.
> 
> 
> > DO I have to create my own in memory spatial index to
> perform the above
> >
> > what do you think?
> 
> If you build an application where you need to do lots of
> spatial
> queries it makes sense to load all the features into a
> spatial index
> (QgsSpatialIndex) and do the intersect / nearest neighbor
> queries
> using it.
> 
> Martin
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Use of Spatial Index and more

2011-07-29 Thread maaza mekuria
Thanks again Martin. I was able to use it effectively for my needs. I am 
delighted to have you guys to help. Many times because of the lack of available 
documentation, your experiences are invaluable and it may be the one that would 
make or break a person's patience to do plugging along in QGis. 

I did also benefit greatly from Sergey Yakushev's road graph plugin. I did not 
realize that one can setup a plugin Gui fairly easily once cmakelist file is 
modified by disabling the dummy plugin's ".ui" file. That file, while it is 
meant to help one use the designer, many times it makes it harder to manage all 
that goes on in the internals. Unless a person is well versed in QT Designer 
and, I must say, uses QT for compiling, I found it to be a bit awkward to use 
in Windows. I learned about making a dockable widget, writing defaults and 
storing variables in the project file, etc.

Sergey's programming ability is very impressive, I wish I could be like him. 
But I am thankful that he shared his knowledge and work with me. I am glad I 
was able to glean a lot from him and learned a bit about the internals of QGIS. 
There are still many things that I do not understand how the program works but 
it is an excellent work worthy of a QGIS award. Is there something like that? 

One question I would ask Sergey is, why RoadGraph runs out of memory when I 
include more data. It works if the dataset is relatively small. But as soon as 
I increase the extent of the data, the program quits. I looked at the code and 
there is a number of points allocation that seems to be set at twice the size 
of a certain estimate. But I did not want to attempt to bungle an excellent 
program. It took me almost two month just to grasp what the program was doing, 
and yet there are still things that I still do not understand. But it has 
helped me comprehend many things including interaction with the canvas, and 
of-course the question I asked about spatial indexing came after looking at the 
road graph code of creating an in memory index.

I still would like that one should be able to create and access indices to 
perform spatial analysis fairly easily. For doing GIS work one must perform 
these actions many times not just from a single geometry, but in groups. So my 
humble request is to place a function function (perhaps in QgsSpatialIndex that 
will take a data layer and return a spatial index. Also it would be helpful for 
those with less memory, and highly memory intensive work, to allow access to 
the spatial index disk file for similar use in place of memory index. It may be 
a bit slower than an in memroy version, but it should do just the same as the 
other.

What do you think,

Maaza  

--- On Thu, 7/28/11, Martin Dobias  wrote:

> From: Martin Dobias 
> Subject: Re: [Qgis-developer] Use of Spatial Index
> To: "maaza mekuria" 
> Cc: "QGIS Developer" 
> Date: Thursday, July 28, 2011, 2:45 PM
> On Thu, Jul 28, 2011 at 8:36 PM,
> maaza mekuria 
> wrote:
> > Thank you, Martin for your explanation. I ahve one
> more followup question.
> >
> > Can the spatial index be composed of features other
> than points? I do not see any restriction in the
> documentation. Can I use features such as lines and
> polylines in an in-memory spatial index and use these as one
> uses points?
> 
> Yes, you can use lines and polygons. Spatial index only
> uses bounding
> boxes of the geometries to for the queries. Therefore also
> intersection query will return features that have bounding
> box of
> their geometry intersecting the query rectangle.
> 
> Martin
> 
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Vector File Creatioin

2011-09-23 Thread maaza mekuria
I am wondering if I have to do to save the shape files. Below is the code I am 
using. I am able to create memory layers that I could save later. But I want to 
create many shapefiles and QGIS started to run out of memory when I was loading 
the memory shapefiles. Once I change the provider to OGR and give the path and 
basename, it gets a NULL provider.

Can some of the QGIS Master's help a novice? 
 

  QString mPath = ("c:/tmp/qgis/");
 QString mBaseName = ("BikeNA");
 QString provLib="ogr";
QgsVectorLayer* vl = 0;
vl = new QgsVectorLayer( mPath, mBaseName, provLib );
QgsVectorDataProvider *prov = vl->dataProvider();
prov->addAttributes( attrList );
  vl->startEditing();
  QgsFeature f;
  featureList::Iterator it;
  for ( it = featureList.begin(); it != featureList.end();it++)
  {
 f = *it;
 vl->addFeature( f );
  }

  vl->updateExtents();
  vl->endEditCommand();
  vl->commitChanges();




maaza

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Vector File Creatioin

2011-09-23 Thread maaza mekuria

I am wondering if I have to do to save the shape files. Below is the code I am 
using. I am able to create memory layers that I could save later. But I want to 
create many shapefiles and QGIS started to run out of memory when I was loading 
the memory shapefiles. Once I change the provider to OGR and give the path and 
basename, it gets a NULL provider.

Can some of the QGIS Master's help a novice?


  QString mPath = ("c:/tmp/qgis/");
 QString mBaseName = ("BikeNA");
 QString provLib="ogr";
QgsVectorLayer* vl = 0;
vl = new QgsVectorLayer( mPath, mBaseName, provLib );
QgsVectorDataProvider *prov = vl->dataProvider();
prov->addAttributes( attrList );
  vl->startEditing();
  QgsFeature f;
  featureList::Iterator it;
  for ( it = featureList.begin(); it != featureList.end();it++)
  {
 f = *it;
 vl->addFeature( f );
  }

  vl->updateExtents();
  vl->endEditCommand();
  vl->commitChanges();



Maaza

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Vector File Creatioin and documentation

2011-09-28 Thread maaza mekuria
Since I never heard from anyone. But I tried a few things and I resorted to 
using an "ESRI Shape File" provider (instead of "ogr") in the 
QgsVectorFileWriter instead of the QgsVectorLayer. The parameters are 
ill-defined and not properly documented. So I took the true and tired path of 
the past. I wrote the shapefiles to a directory using a piece of code that is 
shown below. It is not much different than the original but the provider is 
sure and it has worked for me in the past. 

void BNA::export2File(QgsVectorFileWriter* vr, FeatureMap&  mFeatureMap)
{

  if ( mFeatureMap.size()<=0)
return;


  QgsFeature f;
 
  for ( FeatureMap::iterator it = mFeatureMap.begin(); it != 
mFeatureMap.end();it++)
  {
  f = *it;
  vr->addFeature( f );
  }
}


Can we do something to update the documentation? It is bugging me that I have 
to scratch my head and bang against the air and experiment to for so long 
before finding a solution. Is there a space for placing some sort of wiki 
documentation that anyone can contributes notes so that users benefit from the 
collective experiences of others. 

I posted the same question on the forum but that forum is not really very 
active except a few people who attempt to answer questions. Yet, it may be a 
good place to have the documentation if a wiki is not possible. 

What do you think?

Maaza

--- On Fri, 9/23/11, maaza mekuria  wrote:

> From: maaza mekuria 
> Subject: [Qgis-developer] Vector File Creatioin
> To: "QGIS Developer" 
> Date: Friday, September 23, 2011, 3:50 PM
> I am wondering if I have to do to
> save the shape files. Below is the code I am using. I am
> able to create memory layers that I could save later. But I
> want to create many shapefiles and QGIS started to run out
> of memory when I was loading the memory shapefiles. Once I
> change the provider to OGR and give the path and basename,
> it gets a NULL provider.
> 
> Can some of the QGIS Master's help a novice? 
>  
> 
>       QString mPath = ("c:/tmp/qgis/");
>          QString mBaseName =
> ("BikeNA");
>          QString
> provLib="ogr";
>         QgsVectorLayer* vl = 0;
>         vl = new QgsVectorLayer( mPath,
> mBaseName, provLib );
>         QgsVectorDataProvider *prov =
> vl->dataProvider();
>         prov->addAttributes(
> attrList );
>       vl->startEditing();
>       QgsFeature f;
>       featureList::Iterator it;
>       for ( it = featureList.begin(); it !=
> featureList.end();it++)
>       {
>          f = *it;
>          vl->addFeature( f
> );
>       }
> 
>       vl->updateExtents();
>       vl->endEditCommand();
>       vl->commitChanges();
> 
> 
> 
> 
> maaza
> 
> ___
> 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] RoadGraphPlugin and network-analysis annonce

2011-09-28 Thread maaza mekuria
Good work Sergey! 

Maaza

--- On Wed, 9/28/11, Сергей Якушев  wrote:

> From: Сергей Якушев 
> Subject: [Qgis-developer] RoadGraphPlugin and network-analysis annonce
> To: qgis-developer@lists.osgeo.org
> Date: Wednesday, September 28, 2011, 3:50 AM
> Hello!
> 
> In my fork QGIS in the branch network-analysis is a new
> version RoadGraphPlugin.
> 
> Changes:
> 1. When the setting of "topological tolerance" value
> greater than zero
> in the construction of the graph is almost as fast as with
> a parameter
> equal to zero.
> 
> 2. Reduced memory usage. If you are using big map of
> Moscow, then you
> no longer need gigabytes of RAM. Only ~10 megabytes.
> 
> 3. Core RoadGraph move into a separate library
> qgisnetworkanalysis.
> 
> 4. Implemented a minimum set of python bindings. Now you
> can use
> Python to find the shortest path.
> 
> To demonstrate the third and 4th items prepared (and
> well-commented) a
> simple script (see attachment) and the screencast
> (http://gis-lab.info/forum/download/file.php?id=3175).
> 
> What do you think? I think this is a good candidate for
> inclusion in
> the master-branch qgis.
> 
> --
> С уважением Якушев Сергей yakush...@gmail.com
> 
> -Inline Attachment Follows-
> 
> ___
> 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] Load SQLite table into QGIS

2011-10-14 Thread maaza mekuria
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  wrote:

> From: Martin Dobias 
> Subject: Re: [Qgis-developer] Load SQLite table into QGIS
> To: "romain riviere" 
> 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
> 
> 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] Bicycle Network Analysis paper done using QGIS and SQLite

2012-03-10 Thread maaza mekuria
Dear QGIS Developers:
I have been working on a paper for the last year and half. I have been 
developing QGIS tools as part of the process. I have now completed my paper. It 
is on bicycle network modeling, and it can be downloaded from the following 
link http://www.axumcorp.com/SanJose_Bike_Connectivity_final_report.pdf (Most 
of analysis and all of the images were done in QGIS). It was a very intense 
work. 

I do not know how to share the plugins I worked on but I will be delighted to 
have someone else use them. Most of the routines are specifically written for 
the project. You may check out the document and see if it may benefit another 
person. Or perhaps another can modify it for their use.

I owe a lot of debt to the user interface of Roadgraph and am grateful for some 
details on project management, etc. I learned a lot from Sergey Yakushev's 
work. 

Similar to Sergey's work, the plugin uses a shortest path routine (Vertex 
Voronoi in an edge network). I could not adopt Sergey's shortest path routine, 
primarily because my data set was completely different (even though it is 
produced from a line-string original dataset), and the result is similar but 
also different. I used vertex and edge attribute details in the course of 
finding a path. The edge and vertex network was classified with extra 
attributes instead of just travel metrics. Sergey's work is very elegant. Mine 
is not. 

I am thankful to all of you working on this product. It has been very useful 
for my work. Read the document if you can.

I have many times needed help ( I cried and moaned and wept tears of sorrow and 
laughter) and many of you lent hands and again I say thank you,

Maaza  

 
 


--- On Sat, 3/10/12, Alexander Bruy  wrote:

> From: Alexander Bruy 
> Subject: [Qgis-developer] Plugins repository policy
> To: "Qgis Developer List" 
> Date: Saturday, March 10, 2012, 4:24 AM
> Hi all,
> 
> there are many QGIS plugins, most of them are Python plugins
> and several
> C++ ones. But some plugins may require 3rd party binaries
> and/or shared
> libraries (like Lizmap plugin). Some developers may want to
> include this
> required binaries into plugin package or even include
> sources, so users
> should compile them before using plugin.
> 
> I think we should decide is this allowed or not.
> 
> Thanks
> -- 
> Alexander Bruy
> ___
> 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] Plugin (C++) Upgrade install

2013-08-31 Thread maaza mekuria
I was able to compile without errors and upgrade the code from the plugin I 
built for version 1.7 to the 1.9 dev version.  
I am able to see it on the development version (the one compiled on my machine) 
but I can not figure out what I must do to install it on the OSGeo versions. In 
the past, I used to be able to copy the dll to the plugins folder and then it 
does install on its own. What should I do? I am using MSVC on windows XP .

Thank you,

Maaza

___

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] Plugin (C++) Upgrade install Guidance

2013-09-02 Thread maaza mekuria

Has anything changed on C++ plugin installs in the 1.9 dev version?
  

In the past I copied the plugin into the appropriate (plugins) directory to 
install it on the OSGeo versions. 

What should I do? I am using MSVC on windows XP .

Thank you,



___

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___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

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

2013-09-03 Thread maaza mekuria
Is there anything else that changed between 1.7 and 1.9 on installing C++ 
plugins?


In the past, I used to be able to copy the dll to the plugins folder and then 
it does install on its own. What should I do? I am using MSVC on windows XP .

Thank you,

Maaza

___

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___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] WG: Re: WG: Re: WG: Re: cpp-plugin for QGIS 2.0

2013-11-08 Thread maaza mekuria
Dear Nathan and fellow QGIS Users/Developers:

I am sorry that people are not encouraging the use of C++ for programming. I 
think this is not helpful at all. There are many reasons to skip Pyhton infavor 
of C++. In my experience Python is very slow for real computationally intensive 
work. Also QGIS itself is written in C++, why are do some asking it is too 
hard. I think it is the lack of documentation that is making development in C++ 
very difficult for many of us who are not in the QGIS development all the time. 
This also means that there will be less and less developers that can help with 
enhancement in expanding QGIS capability. I don't know if some are thinking 
that "We are the ones who can do it in C++ and let others be content with 
Python." But I am assuming trusting that that is is not so. 
So please answer questions and provide feedback when you can, but please do not 
discourage others from pursuing C++. In my opinion, it is still the most robust 
programming tool available.  Why is QGIS written in C++ and not in Python? 





On Friday, November 8, 2013 3:12 AM, Nathan Woodrow  wrote:
 
Compared to C++, Python is pretty easy to pick up.  There are some really good 
Python videos and after you watch a few of them (or even just one) I would say 
you would feel comfortable in it.  Because the PyQt and Qt C++ APIs are almost 
the same in terms of porting the code it almost comes right over; plus or minus 
a few little tweaks. 

I would even say that you would reduce your 3000 line count because Python is a 
lot less verbose then C++ and allows for some pretty handy styles that reduce 
the needed code. 

I use PyCharm as my Python IDE which I have so far found to be the best.  It 
supports PyQt API auto completion.

- Nathan



On Fri, Nov 8, 2013 at 8:11 PM,  wrote:


>Hi Paolo,  
>
>yes, our company has to come to a strategic
decision in the next time. And I'm not sure what to suggest. I don't know
python but i think i need much time to port ca. 3000 lines existing code,
otherwise in future it should grow up much more. Besides I'm spoiled of
the IDE of VS, i need to look what pythondeveloper use for it. And do 
pythondeveloper
not depend on sth, like PyQt? QGIS and Qt are programmed in C++, so there
wait perhaps no bad surprises?... difficult 
>
>
>Freundliche Grüße aus Leipzig
>Susann Schmidt
>Softwareentwicklung 
>
>**
>
>GFI - Gesellschaft für Informationstechnologie mbH
>Philipp-Rosenthal-Straße 9
>D-04103 Leipzig
>Geschäftsführer: Andreas Richter
>Amtsgericht Leipzig HRB 12054
>USt.-IdNr.: DE179049354     Steuer-Nr.: 231/109/06412
>ESRI Solution Partner      und       ER Mapper
Reseller
>Tel. 0341 961 3310    Fax 0341 961 3311   Mail i...@gfi-gis.de
>Web  www.gfi-gis.de  und  www.themenbrowser.de
> 
>- Forwarded by Susann
Schmidt/gfi on 08.11.2013 10:40 - 
>
>Paolo Cavallini   
>Sent by: qgis-developer-boun...@lists.osgeo.org 
>07.11.2013 14:28  To qgis-developer@lists.osgeo.org  
>cc  
>Subject Re: [Qgis-developer] WG: Re:  WG:
Re:  cpp-plugin for QGIS 2.0 
>  
> 
>
>
>
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>Il 07/11/2013 10:30, sschm...@gfi-gis.de ha scritto:
>> 
>> Thank you Andreas,
>> 
>> sounds like there is hope for me :-)
>
>IMHO you need very strong arguments not to do this job as a Python
>plugin. All the external C++ plugins I have seen have died out sooner
>or later for the problems in keeping API and ABI compatibility.
>All the best.
>
>- -- 
>Paolo Cavallini - Faunalia
>www.faunalia.eu
>Full contact details at www.faunalia.eu/pc
>Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1.4.15 (GNU/Linux)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
>iEYEARECAAYFAlJ7lG4ACgkQ/NedwLUzIr4UiwCeOVYAuooE2kFbZFm+h7JubqAH
>HaoAnRjWsVkZ4nYegS9UN6v3JWF2Q6nD
>=5cFj
>-END PGP SIGNATURE-
>___
>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
>

___
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

[QGIS-Developer] Upgrading to V3

2019-09-15 Thread Maaza Mekuria
QGIS Layer List upgrade to V3 C++ plugin - Geographic Information Systems
Stack Exchange body,.top-bar{margin-top:1.9em}

I was upgrading a c++ plugin that I had used in the past and almost
eliminated all the the usual compiler errors due to version changes
according for the current version (3.6). The plugin used to collect current
map canvas layers in a combo list box for selection. I am getting two
errors that I can't figure out what to do with. This code compiled without
problem pre-2.0.

The first happens to be about QGSMapLayer that can't be instantiated
because it is turned as an abstract class and I am getting an error
[Severity Code Description Project File Line Source Suppression State Error
C2259 'QgsMapLayer': cannot instantiate abstract class tarjan_sccplugin
C:\OSGeo4W64\apps\Qt5\include\QtCore\qlist.h 214 Build ]

This is portion of the code generating the error.  Where cmbNetSourceLayer
is a combo-box .

void tarjan_sccGui::populateLayers( QString const& url ) {
cmbNetSourceLayer->clear();

QString layerName; QString layerType;

// fill list of layersQMap mapLayers =
QgsProject::instance()->mapLayers();QMap::iterator layer_it = mapLayers.begin();
for (; layer_it != mapLayers.end(); ++layer_it){
QgsVectorLayer* vl = dynamic_cast(layer_it.value());
if (!vl)
continue;
else

 cmbNetSourceLayer->addItem(vl->name() );}

The second error appears to be in explicit declaration for the plugin.
Something has changed in how the plugins are initiated. [Severity Code
Description Project File Line Source Suppression State Error (active)
invalid explicit instantiation declaration tarjan_sccplugin
d:\GIS\v3\Quantum-GIS\src\core\qgsoptionalexpression.h 82 IntelliSense ]

No idea what must be done to overcome this error.  The cited module appears
to be an optional data module.


Any help is appreciated.
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer