Web API Reference MapGuide Open Source
virtual MgByteReader* MgDrawingService::EnumerateSections ( MgResourceIdentifier resource  )  [pure virtual]

Enumerates only the ePlot sections (sheets) in a DWF.

.NET Syntax
virtual MgByteReader EnumerateSections(MgResourceIdentifier resource);
Java Syntax
virtual MgByteReader EnumerateSections(MgResourceIdentifier resource);
PHP Syntax
virtual MgByteReader EnumerateSections(MgResourceIdentifier resource);

Parameters:
resource (MgResourceIdentifier) Resource identifier specifying the drawing source which has the DWF resource data.
Returns:
Returns an MgByteReader object containing the list of sections in XML format using the DrawingSectionList schema. The sections are sorted in ascending order based on their plotOrder attribute.
Example (PHP)
 // Assuming the drawing service has already been initialized
 $drawing_ID = new MgResourceIdentifier('Library://DrawingService/Floorplan.DrawingSource');
 $byteReader = $drawingService->EnumerateSections($drawing_ID);

Exceptions:
MgNullReferenceException no data could be read from the DWF resource.
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.
MgInvalidDwfPackageException if the DWF specified by the resource identifier is not a DWF of version 6.0 or greater.
MgDwfException if the DWF component encounters errors.
Note:
See MgResourceService for additional exceptions.


Comments or suggestions? Send us feedback.