| 222 | == Addendum == |
| 223 | |
| 224 | For a feature source, an alias must be in the form: |
| 225 | %MG_DATA_PATH_ALIAS[alias]% |
| 226 | |
| 227 | This follows the existing conventions in the server for replacing text tags (e.g. %MG_DATA_FILE_PATH%). The server performance will be much better compared to using only [alias] as it will reduce the amount of potential false-positive hits while performing the alias re-mapping. |
| 228 | |
| 229 | Example: |
| 230 | {{{ |
| 231 | <?xml version="1.0" encoding="utf-8"?> |
| 232 | <FeatureSource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 233 | xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 234 | xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd"> |
| 235 | <Provider>OSGeo.SDF</Provider> |
| 236 | <Parameter> |
| 237 | <Name>File</Name> |
| 238 | <Value>%MG_DATA_PATH_ALIAS[alias1]%LIPOFGUTTER.sdf</Value> |
| 239 | </Parameter> |
| 240 | <Parameter> |
| 241 | <Name>ReadOnly</Name> |
| 242 | <Value>TRUE</Value> |
| 243 | </Parameter> |
| 244 | </FeatureSource> |
| 245 | }}} |
| 246 | |
| 247 | |
| 248 | For the !EnumerateUnamangedData API method, the "select" parameter should be renamed to "type". This follows the convention used by the other API methods. |
| 249 | |
| 250 | {{{ |
| 251 | virtual !MgByteReader * MgResourceService::!EnumerateUnmanagedData(CREFSTRING ''path'', bool ''recursive'', CREFSTRING ''type'', CREFSTRING ''filter''); |
| 252 | }}} |
| 253 | |
| 254 | |
| 255 | Here is the http signature for the !EnumerateUnmanagedData API: |
| 256 | {{{ |
| 257 | OPERATION=ENUMERATEUNMANAGEDDATA |
| 258 | VERSION=1.0.0 |
| 259 | PATH= |
| 260 | RECURSIVE=0 |
| 261 | TYPE=Folders |
| 262 | FILTER= |
| 263 | }}} |