Bug report #4261
"Merge shapefiles to one" gives bad results
|Affected QGIS version:||master||Regression?:|
|Operating System:||Windows7||Easy fix?:|
|Pull Request or Patch supplied:||No||Resolution:||worksforme|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||14205|
Merging shapefiles from menu Vector results with one of the layers data shifted.
I am using CRS different than 4326, a local CRS in meters, and perhaps this is the clue.
One of the merged layers is finding itself a place with it's correct coordinates in degrees, which are of course incorrect when the layer should be in meters. The rest of the data indeed finds it's correct placement. Funky, no?
On the fly CRS transformation seems to have no impact.
The shifted layer is not random.
I have checked for 2 sets of data, point and line type.
#5 Updated by Giovanni Manghi almost 9 years ago
- Crashes QGIS or corrupts data set to No
- Affected QGIS version set to master
- Subject changed from merge shapefiles to one gives bad results to "Merge shapefiles to one" gives bad results
Hi Milena, can you attach sample data? I believe all the vectors must be in the same CRS, like is required in many other ftools tools.
#6 Updated by Alexander Bruy almost 9 years ago
If I understand correctly, all input layers has same local CRS and tool produces wrong result.
Giovanni Manghi wrote:
I believe all the vectors must be in the same CRS, like is required in many other ftools tools.
Right. Currently reprojection during merging operation not implemented (it's possible, of course) and there is no check if all layers have same CRS. So if some input layers have different CRS results may be strange.