Autodesk 15606-011408-9330 User Guide - Page 100

Setting Zoom Goto Data, Zoom Goto Location Categories

Page 100 highlights

 When naming your attribute data sources, avoid using the ampersand (&) in the names of databases, tables, and columns. This character is unsupported in all names in Autodesk MapGuide, including SDF names, layer names, user names, access keys, tracking IDs, and passwords.  Make sure that the fields containing the coordinates, keys, names, and URLs are all in the same table, view, or query in the data source. Your theme data can be located in a different table, but it must contain keys that match those in the source data.  When setting up the layer, you can use a SQL Where clause to filter and customize the data. For example, if this layer will display cities, you could specify that the layer include only those cities with a population greater than 10,000. For more information, see Chapter 9, "Working with Map Layers."  When setting up a theme, the Theme Column text box will accept a sim- ple expression in addition to the field. Setting Zoom Goto Data You can use Zoom Goto categories to allow users to zoom in on specific features in the layer. There are two types of Zoom Goto data: Zoom Goto Location categories and Zoom Goto Address data. Zoom Goto Location Categories A Zoom Goto category enables users to zoom in on a specific location that falls within the current category. For example, if you have a category called Airports, the user would be able to select from a list of airports and zoom to the selected airport on the map. Features that need to be part of a Zoom Goto category must have their coordinates and category value entered into fields in an OLE DB data source. Unlike other types of attribute data, Zoom Goto categories do not require a feature key, so you do not need to include it in your Zoom Goto category database. For instance, if you have a polygon layer of parcels that you want users to be able to zoom to, you could store all of your parcel IDs and coordinate values in an OLE DB database. You could then use Autodesk MapGuide Author to create a Zoom Goto category called "parcels" with a SQL statement that retrieves coordinates from the database based on a parcel ID that is passed in. The Zoom Goto dialog box in Autodesk MapGuide Viewer would let users enter the ID of the parcel they want to zoom to, and the SQL statement would retrieve the coordinate values, enabling the Viewer to zoom to that feature. 100 | 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

100
|
Chapter 5
Working with Data in Autodesk MapGuide
When naming your attribute data sources, avoid using the ampersand (&)
in the names of databases, tables, and columns. This character is unsup-
ported in all names in Autodesk MapGuide, including SDF names, layer
names, user names, access keys, tracking IDs, and passwords.
Make sure that the fields containing the coordinates, keys, names, and
URLs are all in the same table, view, or query in the data source. Your
theme data can be located in a different table, but it must contain keys
that match those in the source data.
When setting up the layer, you can use a SQL Where clause to filter and
customize the data. For example, if this layer will display cities, you could
specify that the layer include only those cities with a population greater
than 10,000. For more information, see Chapter 9,
Working with Map
Layers.
When setting up a theme, the Theme Column text box will accept a sim-
ple expression in addition to the field.
Setting Zoom Goto Data
You can use Zoom Goto categories to allow users to zoom in on specific
features in the layer. There are two types of Zoom Goto data: Zoom Goto
Location categories and Zoom Goto Address data.
Zoom Goto Location Categories
A Zoom Goto category enables users to zoom in on a specific location that
falls within the current category. For example, if you have a category called
Airports, the user would be able to select from a list of airports and zoom to
the selected airport on the map.
Features that need to be part of a Zoom Goto category must have their coor-
dinates and category value entered into fields in an OLE DB data source.
Unlike other types of attribute data, Zoom Goto categories do not require a
feature key, so you do not need to include it in your Zoom Goto category
database. For instance, if you have a polygon layer of parcels that you want
users to be able to zoom to, you could store all of your parcel IDs and coor-
dinate values in an OLE DB database. You could then use Autodesk
MapGuide Author to create a Zoom Goto category called
parcels
with a
SQL statement that retrieves coordinates from the database based on a parcel
ID that is passed in. The Zoom Goto dialog box in Autodesk MapGuide
Viewer would let users enter the ID of the parcel they want to zoom to, and
the SQL statement would retrieve the coordinate values, enabling the Viewer
to zoom to that feature.