AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

Resource Service


Detailed Description

The Resource Service enables you to manipulate resources - the files and configuration information necessary to draw layers and maps. Resources are stored in the resource repository. The repository is structured like a directory, with documents, folders, and subfolders. Each resource is stored as XML and has a unique path in the repository. The resource’s extension must match one of the types defined in MgResourceType, but the rest of the name and the path is arbitrary. The root’s path is Library:// and the path of a typical resource might be Library://Cities/Calgary/downtown.LayerDefinition.

Resources may depend on other items:

  • Some resources are self sufficient and do not refer to any other resources or files.
  • Some resources reference other resources. For example, layers and feature sources are stored as separate resources. A layer resource refers to the resources for the feature sources that are used in that layer.
  • Some resources use associated resource data. This is used to store configuration information for ODBC/WMS/Raster feature sources.

Note:
AutoCAD Map 3D does not use resource headers. They are only used in MapGuide, to control permissions in the site repository. In AutoCAD Map 3D, pass a NULL parameter for methods that require a resource header, such as SetResource.

Methods For Working With Repositories

Methods For Working With Resources

Methods For Working With Resource Data

Methods For Working With Resource Packages

Modules

 Resource Service Classes