Web API Reference MapGuide Open Source
virtual STRING MgDrawingService::GetCoordinateSpace ( MgResourceIdentifier resource  )  [pure virtual]

Gets the coordinate system assigned to the DWF drawing.

Remarks:
If no coordinate system is specified for the DWF, the default is GEOGCS["LL84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.25722293287],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["Degrees",1]]
.NET Syntax
virtual string GetCoordinateSpace(MgResourceIdentifier resource);
Java Syntax
virtual String GetCoordinateSpace(MgResourceIdentifier resource);
PHP Syntax
virtual string GetCoordinateSpace(MgResourceIdentifier resource);

Parameters:
resource (MgResourceIdentifier) Resource identifier specifying the drawing source which has the DWF resource data.
Returns:
Returns a string representing the coordinate system in OGC WKT format.
Example (PHP)
 // Assuming the drawing service has already been initialized
 $drawing_ID = new MgResourceIdentifier('Library://DrawingService/Floorplan.DrawingSource');
 $coordinateSpace = $drawingService->GetCoordinateSpace($drawing_ID);

Exceptions:
MgServiceNotAvailableException if the underlying resource service cannot be obtained to access the drawing resource in the 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.