09-12-2017 03:18 AM
Dear all,
How can I change the values in a string table in the Spatial Modeler?
I would like to update an attribute, after the first filter. I would like to take the 134 element table (than now contains OK for alla the rows) and change OK with another string. Is it possible?
Why the Custome Table operator have not the ports?
thank you very much
Regards
Giuseppe
Solved! Go to Solution.
09-12-2017 04:18 AM
Hello Giuseppe,
If you double click the Custom table operator it will allow you to edit it. However I cannot see a way to edit only x values - you could change all values by:
09-12-2017 04:44 AM
Hello Giuseppe,
In addition to the solution provided by Emily, here some other ways how you can work with your string attributes:
1. Below is the way how you can replace the string from selected attribute with another:
2. Below is the way how you can modify the string values in the selected attribute. For example, to add _OK to any of the strings within the selected attribute:
3. And the last one is the way how you can modify the string of selected attribute of specific row (in my case third row).
Regarding Custom Table Input, select the operator and in a Properties dialog activate (place a checkmark in Show column) the Value input port.
09-12-2017 05:39 AM
Thank you both for the support!!
Regards
09-13-2017 03:26 AM
Dear mvardos,
I would like to add to a shapefile a new attribute column, for example with string as data type.
If I add custom Table Input Operator I have double click on it in order to set a number of rows and it is not automatically (if i change the feature in input)
Is not possible to built a custom table changing the size automatically (for example using feature count from feature information operator)?
THank you very much
Regards
09-13-2017 04:21 AM
Hello Giuseppe,
Below is the way how you can do it. A String Input operator is responsible here for what data will be in each row. Leave it empty if you need to create an empty new column.
09-13-2017 06:26 AM
Thank you mvardos! You are a spatial modeler magician!
Regards
04-03-2019 01:45 AM
Hi,
thanx for your detailed answer, as it was very useful for my case. but I´m struggling with the following problem:
let´s say I would like to fill my newly created column with existing values from other columns in the same row, but need to omit those cell values that are empty or contain an empty string (" "). For example, I want the module to create a new column "myNewCol" and want to check for existing values in column "Col1", "Col2", "Col3" and so on (sometimes only one column is not empty, sometimes all).
How would this be possible in Spatial Modeler, any hint?
Thanx in advance!
04-03-2019 02:46 PM
Hi AndreP, I think you can try with Functional Attribute operator