UMR-PASSAGES / DissolveWithStats

QGIS plugin to dissolve geometries and calculate statistics on attributes in the process
6 stars 5 forks source link

Please consider moving it to Processing #2

Open pcav opened 10 years ago

pcav commented 10 years ago

As a subplugin, so it can be used in more complex workflow

juliepierson commented 10 years ago

Ok, I'll look into this.

bstroebl commented 8 years ago

There is already a ticket open for improving dissolve in processing

juliepierson commented 8 years ago

Ok, nice to have a ticket listing all improvements for the dissolve tool. Maybe my code can be reused somehow, but I'm not sure I could help for this.

pcav commented 8 years ago

Actually, moving your code under Processing is quite easy. Could you please ask in qgis-dev mailing list? I'm sure @volaya can help you.

juliepierson commented 8 years ago

That's cool ! I'll try and do that next week then, thanks Paolo.

juliepierson commented 7 years ago

Hi, I made a pull request to solve this issue about a month ago but it's not been accepted yet. Should I do something else ?

pcav commented 7 years ago

I see, thanks. QGIS has now moved to core, so please issue your PR against it: https://github.com/qgis/QGIS/tree/master/python/plugins/processing

rayrabcc commented 4 years ago

Esse problema já foi solucionado? como faço para usar esse qgis em um programa que estou escrevendo em python?

juliepierson commented 4 years ago

Hi, you can install the "dissolve with stats" plugin. IS it ok for you ?

rayrabcc commented 4 years ago

Yes, but I can do use in pyqgis? I have a script and i need use plugin Dissolve with stats.

'''import DissolveWithStats import qgis import qgis.core import os import processing import sys import qgis.gui import qgis.analysis import qgis.utils import osgeo import math

Dissolve with stats

diss = r'C:\GENTE_HOMEOFFICE\Numeracao de Quadras e Lotes\Shapes_Parciais\dissolve_st.shp' processing.run("qgis:DissolveWithStat",{'INPUT':inter_shp,'OUTPUT':diss,'FIELD' : ['n_quadra']})'''

When i run, the script have error.

"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\core\Processing.py", line 127, in runAlgorithm raise QgsProcessingException(msg) _core.QgsProcessingException: Erro: Algoritmo qgis:DissolveWithStat não encontrado"

What is the solution?

rayrabcc commented 4 years ago

Olá, você pode instalar o plug-in "dissolver com estatísticas". Está tudo bem para você ?

Hello, can you help me ?

juliepierson commented 4 years ago

Sorry, you would have to install the script from the processing branch (https://github.com/UMR-PASSAGES/DissolveWithStats.git) but it's not up to date and does not work with QGIS 3.4. I'll try to fix it but I haven't got much time right now. Sorry about that ! But from your example it looks like you just need the dissolve algorithm ? You just have one dissolve field with no statistics ?

rayrabcc commented 4 years ago

Hello,no proble,I understand. The script the processing in what version the QGIS? I can use the version for solution my problem. I need have one dissolve field with statistics. My script not considers this problem. But i need the use statistics. do you need the details what i need? thank you for helping me.

rayrabcc commented 4 years ago

Hello, i need very much the solution for this problem.

pcav commented 4 years ago

Sorry, your question is not very clear to me. The thread is rather long, could you please resume your problem here?

rayrabcc commented 4 years ago

I need using plugin Dissolve with stats in my program in python. I writing a codigo and i using tools the qgis, for finish my program i need the using the plugin. Example: processing.run("native:dissolve",{'INPUT':lotes_fg,'OUTPUT':p_q,'FIELD' : ['n_quadra']}) this is example i using dissolve in my script , But i need using dissolve with stats, how example. Did you undersand?

pcav commented 4 years ago

Sorry, still unclear to me. AFAICT this function is already available in QGIS, could you please confirm? Cheers.

rayrabcc commented 4 years ago

i need write a script using dissolve with stats, i need put parameters to use stats in tool dissolve. In the example that i put, i don't using stats. I can not search solution for this is my problem in tools the QGIS

pcav commented 4 years ago

sorry, I really don't understand. can you, @mazano ? @NyakudyaA

NyakudyaA commented 4 years ago

I think this is more a user issue than a QGIS plugin issue. Can we have the user ask this on gis.stackexchange or QGIS dev list

juliepierson commented 4 years ago

Hello, I think RayraBellico is trying to use Dissolve with stats in its processing version, but unfortunately there's a bug in my extension and it doesn't work. I'll try to solve this but I don't know when exactly I'll be able to do this, hopefully soon !

Le 23.05.20 à 14:51, mazano a écrit :

I think this is more a user issue than a QGIS plugin issue. Can we have the user ask this on gis.stackexchange or QGIS dev list

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/UMR-PASSAGES/DissolveWithStats/issues/2#issuecomment-633047301, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPVHXO3MQJCFJOMWEWLQEDRS7BGTANCNFSM4ATSPJYA.