MapGuide API Reference
|
virtual MgByteReader* MgDrawingService::GetDrawing | ( | MgResourceIdentifier * | resource | ) | [pure virtual] |
Returns the DWF stream for a drawing specified by resource identifier.
virtual MgByteReader GetDrawing(MgResourceIdentifier resource); |
virtual MgByteReader GetDrawing(MgResourceIdentifier resource); |
virtual MgByteReader GetDrawing(MgResourceIdentifier resource); |
resource | (MgResourceIdentifier) Resource identifier specifying the drawing source which has the DWF resource data. |
// Assuming the drawing service has already been initialized $drawing_ID = new MgResourceIdentifier('Library://DrawingService/Floorplan.DrawingSource'); $byteReader = $drawingService->GetDrawing($drawing_ID);
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. |