Thanks to all for the answers! I really appreciate. @Daan, actually it should work for all the features for a specific field (I set it inside the code, but it may easily become an input parameter). So, after the setting of a specific field, the code will dissolve all the features which have the same attribute and that are adjacent (see the sample image in the answer).
@Anita, I think would be a new feature because, starting from the features with the same attribute value, I try to only dissolve those ones which are adjacent (so, it should be an additional feature to the "Unique ID fields" option). @roy roy, I never used that tool but it does the same thing I'm trying to do for linestring geometries. It could be interesting having a similar feature (for both polygon and linestring vector) in the QGIS geoalgorithms! Regards, Marco 2017-02-22 11:18 GMT+01:00 roy roy <[email protected]>: > Hi Anita, that does not do what Marco is asking for, because you get a > multipart geometry; > > he needs a linestring geometry I think... > > Il 22/02/2017 11:10, Anita Graser ha scritto: > > Hi Marco, > > The Dissolve tool already has a "unique fields" option. It sounds like you > are reinventing that. > > Best wishes, > Anita > > > > On Wed, Feb 22, 2017 at 10:32 AM, Marco Grisolia < > [email protected]> wrote: > >> Hi, >> I recently answered to a question on GIS StackExchange [0]. In this >> question, the asker was looking for a way for dissolving features using an >> adjacency criterion instead of using common attribute field (please, follow >> the link below for a better understanding). This feature is already >> available in the analogous ArcGIS tool when the"Create multipart features" >> option is enabled and I think it could be of interest having an additional >> option like this in the "Dissolve" tool main dialog for next releases. >> I never submitted a feature request on the QGIS Project site but, since >> there is already a (very rough) code and a general idea on how to approach >> the issue, I didn't know if this was the case of adding it there. >> Otherwise, let me know if I need to add it on the QGIS Project site (if >> this is the case, I'm sorry for wasting your time). >> Regards, >> Marco >> >> >> [0] http://gis.stackexchange.com/questions/228267/merging-ad >> jacent-lines-in-qgis >> >> _______________________________________________ >> Qgis-developer mailing list >> [email protected] >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> > > > > _______________________________________________ > Qgis-developer mailing [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > > > _______________________________________________ > Qgis-developer mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >
_______________________________________________ Qgis-developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
