Hi Richard
Even though I don't quite follow your magic formula (I'm not really a heavy mathematician at heart), I do follow what you are asking for.
When you are using the Update Column statement to update one table based on data in another table, MapInfo Pro joins the two tables for you. But you can do this directly instead and keep access to all the columns and do the math you need to do.
You can do this using the Select statement.
I can't give you the complete syntax of the Select statement but it would look something like this:
Select <specifyTable>.<someID>, Sum(Cos(CycleLink.Bearing - SegmentBuffer.Bearing) * <specifyTable>.Propensity)From CycleLink, SegmentBufferWhere CycleLink.obj Intersect SegmentBuffer.obj
Group By <specifyTable>.<someID>Where you will have to replace:
-
<specifyTable> with the name where the column comes from
-
<someID> with the name of a column with unique values
- the two tables name with the correct table names
- the names of the Bearing columns with the correct column names
Now the result of the Select statement above gives you a list of IDs and the calculated magnitude of propensity. You can now use the Update Column command to update the proposed cycle routes using the column with the unique IDs.
I also hope that you can follow my instructions here. If not, try sharing some more details about your tables and I'll create a more precise Select statement.
------------------------------
Peter Horsbøll Møller
Distinguished Engineer
Pitney Bowes Software & Data
------------------------------