Maptitude GISDK Help |
Every view has a set of fields associated with it. Each field in a view is identified by its field name and its field spec (specification). The field names are the names that a Maptitude user sees in the column headings of a dataview and in the drop-down lists that appear in the various dialog boxes. The field specs are strings that include both the view name and the field name. The following GISDK functions get information on the field names and field specs for a view:
GISDK Function |
Summary |
Gets a list of the editable fields in a view |
|
Returns the view, field name, and field spec for a field |
|
Returns a full field spec for a field name |
|
Returns the data type, display width, decimals, and index flag for a field |
|
Gets a list of the fields in a view |
|
Gets the data type of a field in tables and joined views |
|
Gets the data type of a field |
|
Gets the full field spec of the ID field for a layer |
|
Gets a list of the read-only fields in a view |
Here is an example of the difference between field names and field specs. If you open a dBASE file with three fields (Name, Population, and Income) to create a view named States, GetFields() returns these two lists:
Field Name |
Field Spec |
Name |
States.Name |
Population |
States.Population |
Income |
States.Income |
Maptitude guarantees that there will be no duplicates in either of the two lists, by modifying the field names or field specs as needed.
Suppose you join two dBASE files (File1 and File2) to create a joined view named File1+File2. File1 contains three fields: Name, Pop80, Income80, and File2 contains three fields: Name, Pop90, and Income90. If you call GetFields() on the joined view, it returns the following two lists:
Field Name |
Fields Spec |
Note |
File1.Name |
File1+File2.File1.Name |
Field name modified |
Pop80 |
File1+File2.Pop80 |
|
Income80 |
File1+File2.Income80 |
|
File2.Name |
File1+File2.File2.Name |
Field name modified |
Pop90 |
File1+File2.Pop90 |
|
Income90 |
File1+File2.Income90 |
|
Some GISDK functions require field names, and others require field specs. You must be careful to pass the correct field identifier to these GISDK functions.
The following GISDK functions get and set field sets for a Standard Caliper Geographic file:
GISDK Function |
Summary |
Gets the field sets for a Standard Caliper Geographic file |
|
Sets the field sets for a Standard Caliper Geographic file |
For more information, see "Creating and Using Field Sets" in the Maptitude program online help.
©2025 Caliper Corporation | www.caliper.com |