Field combiner
The code below uses the Toolbox SDK, which you can install with pip install toolbox-sdk.
Additional Python examples: using SDK, using Requests. If you prefer other programming language or need full API reference, check out Toolbox OpenAPI as well.
Docs
Concatenates values of several fields and writes it to the target field.
Inputs:
Web GIS address. URL of your Web GIS, e.g. https://demo.nextgis.com and login/password if necessary;
Layer ID. Numbers at the end of the layer’s URL;
Source field 1. Name of the string field containing the 1st part, e.g. ‘id_prefix’;
Source field 2. Name of the attribute containing the 2nd part, e.g. ‘id_date’. This part can be Integer, Float or Date, it will be converted to string;
Source field 3. Name of the string field containing the 3rd part, e.g. ‘id_suffix’;
Target field. Name of the field to store the combined value, e.g. ‘id_combined’;
Order custom name. Custom name for the order (optional).
Outputs:
Сhanged vector layer in Web GIS.
Example:
Try the tool in action
Click on the Demo button above the tool form. The fields are filled in with demo values.
Click on the Run button.