Maptitude GISDK Help

JoinTableToLayer()

Summary

Permanently joins a single table to a geographic file.

 

Syntax

JoinTableToLayer(string database, string layer, string class, string primary, string secondary, string field, array options)

 

Argument

Contents

database

The path and file name of the database

layer

The name of the layer

class

The class of the table (FFB, FFA, CSV, DBASE)

primary

The primary filename of the table

secondary

The secondary filename of the table

field

The field in the table used for linking

 

Option

Type

Contents

Hide ID

Boolean

"True" to hide the ID field in the database, or "False" (the default) if the ID field should be displayed.

Hide Link

Boolean

"True" to hide the link field in the table, or "False" (the default) if the link field should be displayed.

Symmetric

Boolean

"True" if the table and the layer contain exactly the same records; i.e., each record in the layer has a corresponding record in the table, and each record in the table has a corresponding record in the layer. "False" (the default) otherwise.

Ordinal

Boolean

"True" if the Nth geographic record matches the Nth table record; "False" (the default) otherwise. Ordinal implies Symmetric. If you specify Ordinal, you do not need to specify Symmetric.

 

Notes

Example

folder = RunMacro("G30 Tutorial Folder")

JoinTableToLayer(folder + "cthwy.cdf", "Highways", "FFB", folder + "cthwy.bin", , "ID", {{"Hide Link", "True"}})

 

Error Codes

Error Type

Meaning

NotFound

The specified geographic file does not exist

Error

The specified geographic file is read-only

 

See Also

Function

Summary

JoinViews()

Creates a joined view by linking fields in two existing views

 

 

©2025 Caliper Corporation www.caliper.com