Monday 26 December 2016

qgis - Merge single points to multi point geometry


Is it possible to transform a point shapefile in single part geometry to a shapefile with multi-point geometry based on an attribute. e.g. in the file are 50.000 records in 700 categories, now I want to create a multi-part geometry point file.


The result should be a shapefile with 700 records (=categories in the former shape).


Is this possible in QGIS, Spatialite or something else?



Answer



I believe you can do this through default top menu:


Vector - Geometry Tools - Singleparts to Multipart...


Though above the input there is written "Input line or polygon vector layer" I just tested it with point layer and it did work.


Also once you create multipoint layer to edit - add / delete parts (point from multipoint) you need to use Advanced Digitizing (right click on top bar to activate it) and use tools Add Part / Delete Part.



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...