MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
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:
MgServiceNotAvailableExceptionif the underlying resource service cannot be obtained to access the drawing in the resource repository.
MgXmlParserExceptionif there are problems parsing the resource content specified by the resource identifier.
Note:
See MgResourceService for additional exceptions.