Autodesk 15606-011408-9320 User Guide - Page 93

Autodesk MapGuide SDF Loader, Autodesk MapGuide SDF Component Toolkit, Working with Attribute Data

Page 93 highlights

Autodesk MapGuide SDF Loader You can use the SDF Loader to convert several file formats as individual files, or you can create batch files to convert multiple files. The batch file can run the SDF Loader and any necessary third-party programs to convert the files. This is an efficient way to set up your source data and create your SDFs. For complete information, refer to the Autodesk MapGuide SDF Loader Help. Autodesk MapGuide SDF Component Toolkit You can use the SDF Component Toolkit and a programming language such as Visual Basic or C++ to create an application that works with SDFs. The SDF Component Toolkit provides powerful access to SDFs, including the ability to work with individual features within an SDF. This means that your program could convert individual features in the SDF rather than the whole file at once, so you have more control of your conversion than you do with the SDF Loader. Working with Attribute Data Attribute data is data that can be linked to the spatial data in maps to provide information about those spatial features to the user. Examples of attribute data are population, area, name, total sales, a URL link to a related web page, style data, and any other data you want to associate with a spatial feature. When you link attribute data to your spatial data, the data can be used in one of four ways: it can display the names of the features, it can be used to set the width (of symbols), height and rotation (of symbols and text), and alignment (of text), it can be used to create themes, or it can be used to generate reports. The following sections describe how to prepare and use your attribute data. Linking Attribute Data to SDFs To link the attribute data to the spatial data, you simply specify the OLE DB database table you want to use when setting up the layer. Autodesk MapGuide Author matches the records in the table to the spatial features in the SDF from which the layer was created by means of a key. A key is a string that uniquely identifies each spatial feature in the SDF and each record in the database. When a record in the attribute database and a spatial feature in the SDF have the same key, the record is linked to the spatial feature. You can also use a database table for theme information. For example, you might have three sources of data: an SDF of coordinates that represent lakes, Working with Attribute Data | 93

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190

Working with Attribute Data
|
93
Autodesk MapGuide SDF Loader
You can use the SDF Loader to convert several file formats as individual files,
or you can create batch files to convert multiple files. The batch file can run
the SDF Loader and any necessary third-party programs to convert the files.
This is an efficient way to set up your source data and create your SDFs. For
complete information, refer to the
Autodesk MapGuide SDF Loader Help
.
Autodesk MapGuide SDF Component Toolkit
You can use the SDF Component Toolkit and a programming language such
as Visual Basic or C++ to create an application that works with SDFs. The SDF
Component Toolkit provides powerful access to SDFs, including the ability
to work with individual features within an SDF. This means that your
program could convert individual features in the SDF rather than the whole
file at once, so you have more control of your conversion than you do with
the SDF Loader.
Working with Attribute Data
Attribute data is data that can be linked to the spatial data in maps to provide
information about those spatial features to the user. Examples of attribute
data are population, area, name, total sales, a URL link to a related web page,
style data, and any other data you want to associate with a spatial feature.
When you link attribute data to your spatial data, the data can be used in one
of four ways: it can display the names of the features, it can be used to set the
width (of symbols), height and rotation (of symbols and text), and alignment
(of text), it can be used to create themes, or it can be used to generate reports.
The following sections describe how to prepare and use your attribute data.
Linking Attribute Data to SDFs
To link the attribute data to the spatial data, you simply specify the OLE DB
database table you want to use when setting up the layer. Autodesk
MapGuide Author matches the records in the table to the spatial features in
the SDF from which the layer was created by means of a
key
. A key is a string
that uniquely identifies each spatial feature in the SDF and each record in the
database. When a record in the attribute database and a spatial feature in the
SDF have the same key, the record is linked to the spatial feature.
You can also use a database table for theme information. For example, you
might have three sources of data: an SDF of coordinates that represent lakes,