Autodesk 15606-011408-9320 User Guide - Page 94

Linking Attribute Data to Another Database, Preparing Attribute Data for Themes,

Page 94 highlights

a secondary OLE DB database table containing the name and linked URL for each lake, and another OLE DB 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 would 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 "Creating Themes" on page 163. Online 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 data sources instead of SDFs. For these layers, you can still use an OLE DB 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. Preparing Attribute Data for Themes As mentioned in the previous sections, you can use the data in a linked attribute table as the basis for themes. Themes draw the map features on a layer according to particular values. For example, on a map layer that contains cities, you could use different symbols to represent cities that fall within different population ranges. Themes also help to differentiate features in a layer. For example, on a roads layer, you could draw interstate highways differently from city streets, even though they're on the same layer. 94 | 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

94
|
Chapter 5
Working with Data in Autodesk MapGuide
a secondary OLE DB database table containing the name and linked URL for
each lake, and another OLE DB database table containing theme informa-
tion, 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 would 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
Creating
Themes
on page 163.
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 data sources instead
of SDFs. For these layers, you can still use an OLE DB 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.
Preparing Attribute Data for Themes
As mentioned in the previous sections, you can use the data in a linked
attribute table as the basis for themes. Themes draw the map features on a
layer according to particular values. For example, on a map layer that
contains cities, you could use different symbols to represent cities that fall
within different population ranges. Themes also help to differentiate features
in a layer. For example, on a roads layer, you could draw interstate highways
differently from city streets, even though they
re on the same layer.
Online Help Index
troubleshooting
problems creating themes