[GIS] Merge lines with the same ‘name’ attribute on QGIS

fields-attributesmergeqgisquerysql

I have a shapefile with a few thousand lines, each is a street segment. I'd like to merge all features with the same 'streetName' attribute into a single attribute. I only really care about the name of the street and it's geometry.

What would be the query necessary to do such a thing?

I'm new to GIS in general and have run into a problem I can't figure out how to fix. Excuse my noobness.
Thanks in advance.

Best Answer

Vector->Geoprocessing Tools->Dissolve does work for lines and will return a multi-geometry where the lines do not have coincident vertices.

Yet another option is available from PostGIS or SpatiaLite using the ST_LineMerge function.

Related Question