08-24-2016
08:33 AM
- last edited on
08-25-2016
01:10 AM
by
jan.neumann
Hi,
How do I query an attribute table of a feature, for example:
Select row's of table where "Value >= 1 and Value < 10"
And then update the selected rows "Class" column in the attribute table with text:
"Class 1"
Please help!
08-25-2016 03:05 AM - edited 08-25-2016 03:08 AM
Hello Jens,
You can get some ideas from this model:
Here I am adding a new Category column, where value 1 will have polygons with MEAN less-then-or-equal-to 0.4 and value 2 will have polygons with MEAN more-then 0.4.
The operators above for getting 2D CRS are needed to make the output shapefile editable. You can find the description here.
Hope this will help.
Kind Regards,
Marina Vardovska
Post-Sales Engineer Remote Sensing
Hexagon Geospatial Division
08-25-2016 03:18 AM
If you want to set the range of values from... to..., so you can use Equal operator, like below:
Regards,
Marina
08-25-2016 03:25 AM
Thank you, I will give this a try!
08-25-2016 03:37 AM
Another quick question.
Can the Either/Or operators return a string "Bare" instead of a Value "1" and add that as the class? Or would you suggest another part that changes the values in the table to strings...and if so, how would this be done?
Thanks!
09-01-2016 02:24 AM
Jens,
Either/Or can return the table of strings. This can be done as you see below:
Just make sure that True/Otherwise ports of Either/Or operator consist strings, so there will be no conflict in output table format.
Regards,
Marina