Interface IDrawingService
Allows low level access to DWF (Design Web Format) data stored in a resource repository as part of a drawing source.
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public interface IDrawingService : IService
Examples
This example shows how to obtain a drawing service instance. Note that you should check if this service type is
supported through its capabilities.
IServerConnection conn;
...
IDrawingService drawingSvc = (IDrawingService)conn.GetService((int)ServiceType.Drawing);
Methods
|
Improve this Doc
View Source
DescribeDrawing(String)
Gets the manifest.xml document which describes the supported document interfaces, the document properties, the sections and their contents, and section dependencies.
Declaration
Stream DescribeDrawing(string resourceID)
Parameters
Type |
Name |
Description |
System.String |
resourceID |
|
Returns
Type |
Description |
System.IO.Stream |
|
|
Improve this Doc
View Source
EnumerateDrawingLayers(String, String)
Gets the names of the layers in a DWF section.
Declaration
string[] EnumerateDrawingLayers(string resourceID, string sectionName)
Parameters
Type |
Name |
Description |
System.String |
resourceID |
|
System.String |
sectionName |
|
Returns
Type |
Description |
System.String[] |
|
|
Improve this Doc
View Source
EnumerateDrawingSectionResources(String, String)
Enumerates the resources of a DWF section (sometimes called a sheet).
Declaration
DrawingSectionResourceList EnumerateDrawingSectionResources(string resourceID, string sectionName)
Parameters
Type |
Name |
Description |
System.String |
resourceID |
|
System.String |
sectionName |
|
Returns
|
Improve this Doc
View Source
EnumerateDrawingSections(String)
Enumerates only the ePlot sections (sheets) in a DWF.
Declaration
DrawingSectionList EnumerateDrawingSections(string resourceID)
Parameters
Type |
Name |
Description |
System.String |
resourceID |
|
Returns
|
Improve this Doc
View Source
GetDrawing(String)
Returns the DWF stream for a drawing specified by resource identifier.
Declaration
Stream GetDrawing(string resourceID)
Parameters
Type |
Name |
Description |
System.String |
resourceID |
|
Returns
Type |
Description |
System.IO.Stream |
|
|
Improve this Doc
View Source
GetDrawingCoordinateSpace(String)
Gets the coordinate system assigned to the DWF drawing.
Declaration
string GetDrawingCoordinateSpace(string resourceID)
Parameters
Type |
Name |
Description |
System.String |
resourceID |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetLayer(String, String, String)
Gets a layer from a particular section of a DWF.
Declaration
Stream GetLayer(string resourceID, string sectionName, string layerName)
Parameters
Type |
Name |
Description |
System.String |
resourceID |
|
System.String |
sectionName |
|
System.String |
layerName |
|
Returns
Type |
Description |
System.IO.Stream |
|
|
Improve this Doc
View Source
GetSection(String, String)
Gets a DWF containing only the requested section (sometimes called a sheet).
Declaration
Stream GetSection(string resourceID, string sectionName)
Parameters
Type |
Name |
Description |
System.String |
resourceID |
|
System.String |
sectionName |
|
Returns
Type |
Description |
System.IO.Stream |
|
|
Improve this Doc
View Source
GetSectionResource(String, String)
Gets a specific resource from the DWF.
Declaration
Stream GetSectionResource(string resourceID, string resourceName)
Parameters
Type |
Name |
Description |
System.String |
resourceID |
|
System.String |
resourceName |
|
Returns
Type |
Description |
System.IO.Stream |
|