Bug report #10039

line intersection fails if ID name is the same

Added by matteo ghetta over 6 years ago. Updated over 1 year ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/QGIS
Affected QGIS version:2.2.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:18520

Description

The line intersection tool fails if the field name of the two layers involved in the analysis is the same. Example: if I want to perform the line intersection between field ID of layer_1 and field ID of layer_2, the operation results the intersection for the ID of only layer_1.

See attach for a graphical comparison of the two different results.

wrong.jpg (19.4 KB) matteo ghetta, 2014-04-09 10:27 AM

right.jpg (19.6 KB) matteo ghetta, 2014-04-09 10:27 AM

ErrorIntersectIDNameTheSame.PNG (55.6 KB) Filip Mahieu, 2014-06-02 05:49 AM

History

#1 Updated by Filip Mahieu about 6 years ago

It seems also that when you intersect two shapes that have each a column with the same name (e.g. 'ID'), the resulting table does not give attribute-info for both fields in the intersection layer. I changed the name of one of the two fields, and then it was displayed.
In attach you see the attribute table of the intersect. You see ID and id_1 in which only one field is filled..

#2 Updated by Filip Mahieu about 6 years ago

I work with 'geoprocessing tools'

#3 Updated by Giovanni Manghi over 3 years ago

  • Category changed from 44 to Processing/QGIS

#4 Updated by Giovanni Manghi over 3 years ago

  • Regression? set to No
  • Easy fix? set to No

#5 Updated by Giovanni Manghi over 1 year ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF