the difference between c++ and python here is clear... I do not know why the ftool tool is not into SEXTANTE... Maybe i should just put that one in SEXTANTE and remove the MMQGIS one. I will see how fast I can make it run after optimizing it, and if it is better than the fTools one, I will leave it :-)
Cheers Victor 2012/12/18 Salvatore Larosa <[email protected]>: > Hi, > > 2012/12/18 Victor Olaya <[email protected]> >> >> Sure, it should work, but it is performing the attribute name >> comparison for every feature, which makes it slow (merging large >> layers took really a lot of time, specially if they have many >> attributes. I took it out to make it faster, but, as i said, it is not >> finished. I hope I can spend some time with this tonight and fix it. >> > > Wow, you're right, I had never tried it before and I done a test with the > merge tools available: > > Dataset: SHP, ~150.000 features > > SAGA GIS: 28.4 s > MMQGIS : 206 s > fTools : 120 s > > SAGA is very faster ! > > Cheers! > > > >> Thanks for your help! >> >> >> >> 2012/12/18 Salvatore Larosa <[email protected]>: >> > Hi Victor, >> > >> > 2012/12/18 Victor Olaya <[email protected]> >> >> >> >> Michal >> >> >> >> I see you are running the latest version that I updated a couple of >> >> days ago. That algorithm had a bug in the previous version, that added >> >> features twice. Also, it was very slow, and I added some improvements, >> >> but did not finish it. I plan to fix that and commit it by the end of >> >> the day. Will tell you when it's ready. >> >> >> > >> > by applying original code [1] it seem works >> > Michal, please could give a try at it ? >> > >> > Regards, >> > >> > -SL >> > >> > [1] - https://github.com/qgis/Quantum-GIS/pull/362 >> > >> > >> >> >> >> In the mean time, the SAGA merge works perfectly, in case you have >> >> SAGA installed in your SEXTANTE-QGIS >> >> >> >> Regards >> >> >> >> >> >> 2012/12/18 Michał Bełcik <[email protected]>: >> >> > Hello everyone >> >> > >> >> > While using the tool, such an error appears: >> >> > >> >> > Traceback (most recent call last): >> >> > >> >> > File >> >> > >> >> > >> >> > "C:\Users\Work\Desktop\Dokumenty\Programs\apps\qgis-dev\python\plugins\sextante\core\GeoAlgorithm.py", >> >> > line 117, in execute >> >> > >> >> > self.processAlgorithm(progress) >> >> > >> >> > File >> >> > >> >> > >> >> > "C:\Users\Work\Desktop\Dokumenty\Programs\apps\qgis-dev\python\plugins\sextante\mmqgisx\MMQGISXAlgorithmProvider.py", >> >> > line 678, in processAlgorithm >> >> > >> >> > message = mmqgisx_merge(qgis, [ layer1, layer2 ], savename, False) >> >> > >> >> > File >> >> > >> >> > >> >> > "C:\Users\Work\Desktop\Dokumenty\Programs\apps\qgis-dev\python\plugins\sextante\mmqgisx\mmqgisx_library.py", >> >> > line 2292, in mmqgisx_merge >> >> > >> >> > dattributes[dindex] = sattributes[idx[dindex]] >> >> > >> >> > KeyError: 6 >> >> > >> >> > >> >> > And also an algorithm log: >> >> > >> >> > >> >> > >> >> > >> >> > sextante.runalg("mmqgisx:mergelayers","C:/Users/Work/.qgis//sextante/tempdata\\modelerhabitatselectionanalysis6fea24bf8f354dfc946d1052a0078ace.shp","C:/Users/Work/.qgis//sextante/tempdata\\modelerhabitatselectionanalysisb00a2d4281bb43639e75e3f452eb41d6.shp",None) >> >> > >> >> > >> >> > Does anyone knows about the nature of this problem? >> >> > >> >> > >> >> > Best regards >> >> > >> >> > >> >> > Michal Belcik >> >> > >> >> > >> >> > _______________________________________________ >> >> > Qgis-user mailing list >> >> > [email protected] >> >> > http://lists.osgeo.org/mailman/listinfo/qgis-user >> >> > >> >> _______________________________________________ >> >> Qgis-user mailing list >> >> [email protected] >> >> http://lists.osgeo.org/mailman/listinfo/qgis-user >> > >> > >> > >> > >> > -- >> > Salvatore Larosa >> > linkedIn: http://linkedin.com/in/larosasalvatore >> > twitter: @lrssvt >> > skype: s.larosa >> > IRC: lrssvt on freenode >> > > > > > > -- > Salvatore Larosa > linkedIn: http://linkedin.com/in/larosasalvatore > twitter: @lrssvt > skype: s.larosa > IRC: lrssvt on freenode > _______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
