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.

How can I associate in QGIS one point layer to one line layer

A sample scenario could be this one:

  • A point layer "Valves" and line layer "Pipelines"
  • Each layer should have its own set of attributes
  • A "pipeline" has to begin and end in one "valve"
  • A change in the "Valves" geometry implies a change in the "Pipelines" geometry, i.e., if I move a "valve", the "pipelines" connected to that node should follow the node wich are connected to
share|improve this question
3  
What do you mean by associate: join the attribute tables, build a relationship between the layers, something else? –  user3461 Aug 10 '12 at 23:09
    
I think that should be relationship (or somthing else). I want to do that you can put "Breakdown" points only on "Pipeline" line layer. In future i want to do analysis how many breakdowns we have on each pipeline type... –  hapa Aug 11 '12 at 13:10
    
I think a little more detail is needed. Say you have a point layer that contains a location where a pipeline break occurred. Are you simply trying to build a relationship that assigns the correct pipe Id to the break point? –  Get Spatial Aug 12 '12 at 8:54
    
More details: I saw in one GIS software that is specialized in watersupply & sewery that there is an option when operater in office recives call and get info about breakdown location (street name, number...) he just click on pipeline. GIS programm pin this "Breakdown" point on "Pipelines" layer and then it finds nearest "Valves" that should be closed before workers can start with repairing pipe. –  hapa Aug 12 '12 at 9:51
add comment

2 Answers

Install the mmqgis plugin.

Use the tool 'create hub distance'.

The tool is ideal for that purpose.

http://michaelminn.com/linux/mmqgis/

Consider making a donation to the QGIS dev team.

share|improve this answer
    
i will try. tnx –  hapa Aug 11 '12 at 15:18
    
this plugin dosen't solve my problem. I need something else –  hapa Aug 11 '12 at 21:17
add comment

For now, the only solution I have found is to develop a plugin that propagates the changes to the other layer through the geometryChanged signal.

share|improve this answer
add comment

Your Answer

 
discard

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.