Hi,<br><br><div class="gmail_quote">2012/12/18 Victor Olaya <span dir="ltr"><<a href="mailto:volayaf@gmail.com" target="_blank">volayaf@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sure, it should work, but it is performing the attribute name<br>
comparison for every feature, which makes it slow (merging large<br>
layers took really a lot of time, specially if they have many<br>
attributes. I took it out to make it faster, but, as i said, it is not<br>
finished. I hope I can spend some time with this tonight and fix it.<br>
<br></blockquote><div><br>Wow, you're right, I had never tried it before and I done a test with the merge tools available:<br><br>Dataset: SHP, ~150.000 features<br><br>SAGA GIS: 28.4 s<br>MMQGIS  : 206 s<br>fTools       : 120 s<br>
<br>SAGA is very faster !<br><br>Cheers!<br><br><br><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks for your help!<br>
<br>
<br>
<br>
2012/12/18 Salvatore Larosa <<a href="mailto:lrssvtml@gmail.com">lrssvtml@gmail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> Hi Victor,<br>
><br>
> 2012/12/18 Victor Olaya <<a href="mailto:volayaf@gmail.com">volayaf@gmail.com</a>><br>
>><br>
>> Michal<br>
>><br>
>> I see you are running the latest version that I updated a couple of<br>
>> days ago. That algorithm had a bug in the previous version, that added<br>
>> features twice. Also, it was very slow, and I added some improvements,<br>
>> but did not finish it. I plan to fix that and commit it by the end of<br>
>> the day. Will tell you when it's ready.<br>
>><br>
><br>
> by applying original code [1] it seem works<br>
> Michal, please could give a try at it ?<br>
><br>
> Regards,<br>
><br>
> -SL<br>
><br>
> [1] - <a href="https://github.com/qgis/Quantum-GIS/pull/362" target="_blank">https://github.com/qgis/Quantum-GIS/pull/362</a><br>
><br>
><br>
>><br>
>> In the mean time, the SAGA merge works perfectly, in case you have<br>
>> SAGA installed in your SEXTANTE-QGIS<br>
>><br>
>> Regards<br>
>><br>
>><br>
>> 2012/12/18 Michał Bełcik <<a href="mailto:belcikmichal@gmail.com">belcikmichal@gmail.com</a>>:<br>
>> > Hello everyone<br>
>> ><br>
>> > While using the tool, such an error appears:<br>
>> ><br>
>> > Traceback (most recent call last):<br>
>> ><br>
>> > File<br>
>> ><br>
>> > "C:\Users\Work\Desktop\Dokumenty\Programs\apps\qgis-dev\python\plugins\sextante\core\GeoAlgorithm.py",<br>
>> > line 117, in execute<br>
>> ><br>
>> > self.processAlgorithm(progress)<br>
>> ><br>
>> > File<br>
>> ><br>
>> > "C:\Users\Work\Desktop\Dokumenty\Programs\apps\qgis-dev\python\plugins\sextante\mmqgisx\MMQGISXAlgorithmProvider.py",<br>
>> > line 678, in processAlgorithm<br>
>> ><br>
>> > message = mmqgisx_merge(qgis, [ layer1, layer2 ], savename, False)<br>
>> ><br>
>> > File<br>
>> ><br>
>> > "C:\Users\Work\Desktop\Dokumenty\Programs\apps\qgis-dev\python\plugins\sextante\mmqgisx\mmqgisx_library.py",<br>
>> > line 2292, in mmqgisx_merge<br>
>> ><br>
>> > dattributes[dindex] = sattributes[idx[dindex]]<br>
>> ><br>
>> > KeyError: 6<br>
>> ><br>
>> ><br>
>> > And also an algorithm log:<br>
>> ><br>
>> ><br>
>> ><br>
>> > sextante.runalg("mmqgisx:mergelayers","C:/Users/Work/.qgis//sextante/tempdata\\modelerhabitatselectionanalysis6fea24bf8f354dfc946d1052a0078ace.shp","C:/Users/Work/.qgis//sextante/tempdata\\modelerhabitatselectionanalysisb00a2d4281bb43639e75e3f452eb41d6.shp",None)<br>

>> ><br>
>> ><br>
>> > Does anyone knows about the nature of this problem?<br>
>> ><br>
>> ><br>
>> > Best regards<br>
>> ><br>
>> ><br>
>> > Michal Belcik<br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > Qgis-user mailing list<br>
>> > <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
>> > <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>> ><br>
>> _______________________________________________<br>
>> Qgis-user mailing list<br>
>> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Salvatore Larosa<br>
> linkedIn: <a href="http://linkedin.com/in/larosasalvatore" target="_blank">http://linkedin.com/in/larosasalvatore</a><br>
> twitter: @lrssvt<br>
> skype: s.larosa<br>
> IRC: lrssvt on freenode<br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Salvatore Larosa<br>linkedIn: <a href="http://linkedin.com/in/larosasalvatore" target="_blank">http://linkedin.com/in/larosasalvatore</a><br>twitter: @lrssvt<br>
skype: s.larosa<br>IRC: lrssvt on freenode<br><br>