Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am a beginner with GIS software and I'm working on QGIS.

I have a problem joining the spatial layers. I have a layer with objects in one city and another layer with the streets. I need to attach each object to its street.

I try to join attributes by location but I have not been able because it does not take into account the objects that are on the edge of the street (the roundabouts and bridges).

So how can I make a join between a point and a layer of layer lines using the closest distance by quantum GIS.

share|improve this question
I would add SEXTANTE and GRASS plugins to your QGIS also PostGIS is valuable tool when manipulating spatialdata –  simplexio Jan 10 '13 at 7:01
v.distance in GRASS can be used for this, but since v.distance does not work in QGIS processing, I have made a QGIS plugin called NNJoin that does nearest neighbour spatial joins. The result of the join is a new layer that includes the attributes from both of the input layers and adds a new attribute with the nearest neighbour distance. The plugin is available in the QGIS plugin repository. It does not use spatial indexes for non-point join layers, so it is not practical for large datasets. –  Håvard Tveite Sep 23 at 7:14

1 Answer 1

up vote 2 down vote accepted

You might find the mmqgis plugin does what you want, it will need to be installed, Fetch Plugins


share|improve this answer
Please be more specific about which of the MMQGIS tools you suggest for the job. –  underdark Dec 10 '12 at 12:19
I think the MMQGIS Distance to Hub tool is what is being referred to, however it will treat lines and polygons as points positioned at their centres when calculating the nearest hub, and this can generate misleading results. –  Andy Harfoot Nov 26 '13 at 12:47
Agreed Andy H, but limited information from the OP. –  Willy Dec 8 '13 at 8:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.