I'm using QGIS 3.6. I've got around 300 polygons with "name" field. I would like to select lines inside those polygons and copy what's inside of "name" field into similar field of every line that is selected. Is there any smart method to do this and save hours of work using "Select by location" and copying name by hand?

  • 1
    Do the lines cross polygon boundaries and if so do you want them split with each section getting the name from the polygon overlaying it? If so look at the Intersection tool. If not you can look at the Join Attributes by location tools. – johns Jul 26 '19 at 13:15
  • Thank you very much for response, ill try both tools and check what will be more suitable for me :) – Paweł Peczeniuk Jul 28 '19 at 13:11
  • So the "Join attributes by location" tool made my day. Going further into work i need to made... Is there a possible way of doing a faster thing like: - Select points in polygon - Do a "Basic statistics for numeric fields" - Insert a SUM value to a specified field of vector – Paweł Peczeniuk Jul 29 '19 at 10:27
  • There is a join attributes by location (summary) tool that adds some statistical values. If you are instead doing something separate from the actual join in this question, you may want to submit that as a new question. – johns Jul 29 '19 at 17:08
  • Thank you very much. It works :) – Paweł Peczeniuk Jul 30 '19 at 6:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.