[Qgis-user] Combing Vector Layers - With Attributes

Bo Victor Thomsen bo.victor.thomsen at gmail.com
Fri Mar 12 02:05:40 PST 2021


You can use processing algorithm "refactor fields" on the layer(s) that 
have fields to be changed. This operation will give you a temporary 
file/layer the same number of columns and -names as the original layer, 
but with column type(s) redefined by you.

Afterwards you can merge the temporary file/layer with the other layers

Just be sure to have the latest (functioning) version of QGIS installed: 
3.16.3. From the error message you included, I suspect you have an older 
version of QGIS installed. I tried to merge 2 layers using QGIS 3.16.3 
and the result was a new layer that contained the merged layers. If 
there was a data discrepancy the result values were null's (but no 
run-time errors)

Med venlig hilsen / Kind regards

Bo Victor Thomsen

Den 12-03-2021 kl. 10:04 skrev Springfield Harrison:
>
> Thanks Bo,
>
> I tried a sample run but it failed:
>
> "TAG field in layer Tree Table All 2 PntType has different data type 
> than in other layers (String instead of integer)
>
> Execution failed after 1.20 seconds"
>
> It looks like it can't handle differing data types and won't offer 
> choices for merging fields.  I wonder if there are other tools?
>
> Thanks again . . . .
>
> -----
> Cheers, Spring
>
>
> On 12/Mar/2021 00:48, Bo Victor Thomsen wrote:
>> Menu "Vector" -> "Data management tools" -> "Merge vector layers"
>>
>> Med venlig hilsen / Kind regards
>>
>> Bo Victor Thomsen
>>
>> Den 12-03-2021 kl. 09:35 skrev Springfield Harrison:
>>> t shapefile) of trees to which I n
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210312/a8729918/attachment.html>


More information about the Qgis-user mailing list