Autodesk 15606-011408-9330 User Guide - Page 98

Linking Attribute Data to Spatial Data Files, Working with Data in Autodesk MapGuide

Page 98 highlights

Linking Attribute Data to Spatial Data Files To link the attribute data to spatial data, you simply specify the OLE DB or Autodesk DWG 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, a secondary database table containing the name and linked URL for each lake, and another database table containing theme information, such as the size of each lake, water purity, and more. When you create the layer in the Map Layer Properties dialog box in Autodesk MapGuide Author, you specify the secondary table on the Data Sources tab, and specify the theme table from the Styles tab when adding a theme. Note that neither of the tables need to contain coordinates-they are linked to the polygons in the SDF only by their keys. For more information, see "Setting Display Styles for DWG Layers" on page 171. Help Index To avoid potential conversion problems, be careful when creating the key troubleshooting field. Depending on the type of database, you might not be able to use the problems creating themes attribute data unless the key field in the database is exactly the same size as the key field in the SDF to which you are linking it. Some databases, when queried, will append the keys with blank space characters to make them the  exact length you specified for the field, so the database keys will not match those in the SDF. For more information, choose Help Contents, click the Index tab, and look up "troubleshooting, problems creating themes." Linking Attribute Data to Another Database You can create point layers and text layers from OLE DB or Autodesk DWG data sources instead of SDFs. For these layers, you can still use a OLE DB or Autodesk DWG database table for creating themes. For example, if you are setting up a layer of cities, you might have two tables: one that contains basic information about each city, such as the key, coordinates, name, and a URL link, and a second table that contains data on which you want to create themes, such as the population, majority political party, and so on. The second table would also contain the same key values as the first table; Autodesk MapGuide uses these keys to assign the theme values in the second table to the corresponding cities in the first table. 98 | Chapter 5 Working with Data in Autodesk MapGuide

  • 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
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204

98
|
Chapter 5
Working with Data in Autodesk MapGuide
Linking Attribute Data to Spatial Data Files
To link the attribute data to spatial data, you simply specify the OLE DB or
Autodesk DWG 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,
a secondary database table containing the name and linked URL for each
lake, and another database table containing theme information, such as the
size of each lake, water purity, and more. When you create the layer in the
Map Layer Properties dialog box in Autodesk MapGuide Author, you specify
the secondary table on the Data Sources tab, and specify the theme table
from the Styles tab when adding a theme. Note that neither of the tables
need to contain coordinates
they are linked to the polygons in the SDF only
by their keys. For more information, see
Setting Display Styles for DWG
Layers
on page 171.
To avoid potential conversion problems, be careful when creating the key
field. Depending on the type of database, you might not be able to use the
attribute data unless the key field in the database is exactly the same size as
the key field in the SDF to which you are linking it. Some databases, when
queried, will append the keys with blank space characters to make them the
exact length you specified for the field, so the database keys will not match
those in the SDF. For more information, choose Help
Contents, click the
Index tab, and look up
troubleshooting, problems creating themes.
Linking Attribute Data to Another Database
You can create point layers and text layers from OLE DB or Autodesk DWG
data sources instead of SDFs. For these layers, you can still use a OLE DB or
Autodesk DWG database table for creating themes. For example, if you are
setting up a layer of cities, you might have two tables: one that contains basic
information about each city, such as the key, coordinates, name, and a URL
link, and a second table that contains data on which you want to create
themes, such as the population, majority political party, and so on. The
second table would also contain the same key values as the first table;
Autodesk MapGuide uses these keys to assign the theme values in the second
table to the corresponding cities in the first table.
Help Index
troubleshooting
problems creating themes