Documente Academic
Documente Profesional
Documente Cultură
For session
repositories, a unique session identifier assigned by the site server.
Resource typethe resource type (the extension). This must match one of
the allowable types defined in MgResourceType.
For example, the following could be a name for a feature source in either Map
3D or MapGuide:
Library://Samples/CityOutline.FeatureSource
Resource Service
Resources are managed by the resource service, an MgResourceService object.
In AutoCAD Map 3D, use AcMapServiceFactory to get the resource service:
MgResourceService resourceService =
AcMapServiceFactory.GetService(MgServiceType.ResourceService)
as MgResourceService;
Resource Dependencies
Resources may depend on other items:
Some resources are self sufficient and do not refer to any other resources
or files.
Introduction | 7
Some resources use associated resource data. For example, this is used to
store configuration information for ODBC/WMS/Raster feature sources.
Resource Schemas
Resources are stored in the repository as XML documents. Applications that
add or modify resources must ensure that the XML validates against the
appropriate schema.
For AutoCAD Map 3D, the schemas are available as part of the SDK, in the
Schema folder.
For MapGuide, the schemas are installed with the server files, in
InstallDir\Server\Schema.
The schemas are documented in the XML Schemas module of the Geospatial
Platform Reference.
There are many ways of modifying the XML in a resource. The best method
to use in a given situation depends on the development environment, the
developers familiarity with a given technique, and the desired result. Some
possibilities are described in the following sections. Other techniques for
working with XML data are equally valid.
8 | Chapter 2 Resources