Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

DescribeDrawing
EnumerateLayers
EnumerateSectionResources
EnumerateSections
GetCoordinateSpace
GetDrawing
GetLayer
GetSection
GetSectionResource
virtual MgByteReader* MgDrawingService::GetDrawing | ( | MgResourceIdentifier * | resource | ) | `[pure virtual]`
Returns the DWF stream for a drawing specified by resource identifier. .NET Syntax
`virtual MgByteReader GetDrawing(MgResourceIdentifier resource);`
Java Syntax
`virtual MgByteReader GetDrawing(MgResourceIdentifier resource);`
PHP Syntax
`virtual MgByteReader GetDrawing(MgResourceIdentifier resource);`
  Parameters:
  | resource | (MgResourceIdentifier) Resource identifier specifying the drawing source which has the DWF resource data.
Returns: Returns an MgByteReader object containing the DWF. Example (PHP)
     // Assuming the drawing service has already been initialized
     $drawing_ID = new MgResourceIdentifier('Library://DrawingService/Floorplan.DrawingSource');
     $byteReader = $drawingService->GetDrawing($drawing_ID);
  Exceptions:
  | MgServiceNotAvailableException | if the underlying resource service cannot be obtained to access the drawing in the resource repository.
  | MgXmlParserException | if there are problems parsing the resource content specified by the resource identifier.
Note: See MgResourceService for additional exceptions.

Comments or suggestions? Send us feedback.