Autodesk 15606-011408-9320 User Guide - Page 106

Parsing Map Feature Keys

Page 106 highlights

Under normal circumstances, features on a VISION* theme layer will not have names or URL links associated with them. This is because the VISION* cache does not contain this information for each feature in the theme. If you need to have names or URLs associated with the features, you could create a custom utility to export the VISION* features from the database to an SDF file or OLE DB data source. For example, you could use Visual Basic with VISION* Objects and the SDF Component Toolkit. This kind of utility is beyond the scope of this documentation and should be implemented by a system administrator who is familiar with VISION* and Autodesk MapGuide. Parsing Map Feature Keys If you will be developing reports, it is important to know how to parse the keys for the map feature so that you can get information about the original VISION* features. The keys of map features on VISION* theme layers are formed from a composite of the original VISION* Feature, Plan, Version Mode, Layer, and Network numbers, with a vertical bar (|) character delimiting each of the numbers as follows: F|||| For example, if the feature # is 967, plan # is 5, version mode # is 0, layer # is 20, and network # is 7, the key for the map feature will be the following string: F967|5|0|20|7 Note The version mode number used in the key is different from the version number associated with a feature in the VISION* database. The version mode number indicates whether the feature is from the VISION* permanent version or from one of the more recent versions, as defined in the following table. Version Mode Value 0 1 Description Permanent version. Always version number 0 in the VISION* database. A recent version. The most recent version number in relation to when the theme was generated. 106 | 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

106
|
Chapter 5
Working with Data in Autodesk MapGuide
Under normal circumstances, features on a VISION* theme layer will not
have names or URL links associated with them. This is because the VISION*
cache does not contain this information for each feature in the theme. If you
need to have names or URLs associated with the features, you could create a
custom utility to export the VISION* features from the database to an SDF file
or OLE DB data source. For example, you could use Visual Basic with
VISION* Objects and the SDF Component Toolkit. This kind of utility is
beyond the scope of this documentation and should be implemented by a
system administrator who is familiar with VISION* and Autodesk MapGuide.
Parsing Map Feature Keys
If you will be developing reports, it is important to know how to parse the
keys for the map feature so that you can get information about the original
VISION* features. The keys of map features on VISION* theme layers are
formed from a composite of the original VISION* Feature, Plan, Version
Mode, Layer, and Network numbers, with a vertical bar (|) character delim-
iting each of the numbers as follows:
F<Feature#>|<Plan#>|<VersionMode#>|<Layer#>|<Network#>
For example, if the feature # is 967, plan # is 5, version mode # is 0, layer # is
20, and network # is 7, the key for the map feature will be the following
string:
F967|5|0|20|7
Note
The version mode number used in the key is different from the version
number associated with a feature in the VISION* database. The version mode
number indicates whether the feature is from the VISION* permanent version or
from one of the more recent versions, as defined in the following table.
Version Mode
Value
Description
0
Permanent version. Always version number 0 in the VISION*
database.
1
A recent version. The most recent version number in relation to
when the theme was generated.