Maptitude GISDK Help |
Determines if the right fields of a join have duplicates for aggregation.
type = DecideJoinType(string join_fld, array options)
Argument |
Contents |
join_fld |
The field spec of the join field |
Option |
Type |
Contents |
Zero as Missing |
Boolean |
Whether to treat zeroes as missing values |
The string "A" if duplicates are found, null otherwise.
DecideJoinType() returns "A" when JoinViews() or JoinViewsMulti() function with the "A?" option would create an aggregate join, rather than a one-to-one join.
Just as in JoinViews() or JoinViewsMulti(), the existence of duplicates is based on a partial reading, rather than examining the entire table.
// See if there are many sales records per state
type = DecideJoinType("Sales.State", {"zero as missing", "True"})
if type = "A" then title = "Accumulated sales per state"
else title = "Sales per state"
// Now link the Sales table to the table of states
new_view = JoinViews("StateSales", "[U.S. States].Name", "Sales.State", {{type}})
// Show the resulting table with the appropriate title
CreateEditor(title, new_view + "|", , )
Error Type |
Meaning |
Error |
No field provided; invalid field specification |
Escape |
The user interrupted the sorting of the right field |
NotFound |
The field is not found |
Function |
Summary |
Creates a joined view by linking fields in two existing views |
|
Creates a joined view by linking multiple fields in two existing views |
©2025 Caliper Corporation | www.caliper.com |