[Qgis-user] How to convert multiple features to single Feature - Shape file

Wolfgang Meinolf wmeinolf at bbv-deutschland.de
Thu Jul 1 02:05:49 PDT 2021


Hi,
I get good results with following processing alg workflow:

  *   Explode objects with explodelines
  *   Check and remove duplicates with deleteduplicategeometries
  *   Remove remaining empty objects with removenullgeometries
  *   Merge all into single feature with dissolve
  *   Split in most simple features with splitwithlines, use dissolved layer as input and lines for splitwithlines
  *   Finally I apply createspatialindex To accelerate the following steps.

I use this as “cleaning” step in my FTTH scripts to clean layers before I calculate $length and to use resulting line layer as “road”-network to connect points with lines.

Greetings from Germany

Von: Qgis-user <qgis-user-bounces at lists.osgeo.org> Im Auftrag von Nicolas Cadieux
Gesendet: Mittwoch, 30. Juni 2021 21:49
An: krishna Ayyala <ayyalakrishna at gmail.com>
Cc: qgis-user <qgis-user at lists.osgeo.org>
Betreff: Re: [Qgis-user] How to convert multiple features to single Feature - Shape file

Hi,

Multipart to single part will only split multipart object if they exist.  In your case, you have no multipart objects.  What you appear to have is multiple line on top of each other. (Overlapping lines.  That is probably because you did a all-to all shortest path analysis.  Therefore, you have multiple paths overlapping others.
Nicolas Cadieux
https://gitlab.com/njacadieux


Le 30 juin 2021 à 15:34, krishna Ayyala <ayyalakrishna at gmail.com<mailto:ayyalakrishna at gmail.com>> a écrit :

Tiago,
Thanks for your reply. Actually my shapefile is a polyLine. It is not a polygon. My polyline shape file had about 6000 lines. When I ran 'multiparts to single parts" It resulted in a shapefile which also had 6000 lines. I was hoping it to be simplified to 30 or 40 lines but that did not happen.

Regards.

On Tue, Jun 29, 2021 at 8:56 PM <tiago.moraessilva at hotmail.com<mailto:tiago.moraessilva at hotmail.com>> wrote:
Good evenning.

 In the tool box have e toll (multiparts to single parts). Will go break those multiples polygons in single parts.

I hope help you e sorry my bad English.

Regards

Em 29 de jun. de 2021 22:06, krishna Ayyala <ayyalakrishna at gmail.com<mailto:ayyalakrishna at gmail.com>> escreveu:
I have a line shapefile named "ShortestPath.shp". Whenever I select one line feature for the "ShortestPath" shapefile, I see the following message at the bottom left corner of the window. For example: "9 feature(s) selected on layer shortest path. i.e. More than one features appear at the bottom left corner for each line that I select.

 Is there a way, whenever I select one line feature, It should appear as one line feature at the bottom left corner. The tools such as simplify and dissolve did not work for me.
Regards.

_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210701/31724c75/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3641 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210701/31724c75/attachment-0001.bin>


More information about the Qgis-user mailing list