[mapguide-commits] r4709 - in sandbox/adsk/2.2gp/Doc: external_topics samples/phpsamples samples/phpsamples/analyzing_features samples/phpsamples/custom_output samples/phpsamples/digitizing_features samples/phpsamples/interacting_with_layers samples/phpsamples/modifying_maps_and_layers samples/phpsamples/working_with_feature_data

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Mar 26 16:32:35 EDT 2010


Author: brucedechant
Date: 2010-03-26 16:32:34 -0400 (Fri, 26 Mar 2010)
New Revision: 4709

Modified:
   sandbox/adsk/2.2gp/Doc/external_topics/FeatureService_provider.h
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/analyzing_features/createbuffer.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/analyzing_features/selectfeaturesinbuffer.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/createmapimage.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/emap.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/eplot.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/multiplot.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/property_report.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/digitizing_features/clear_lines.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/digitizing_features/draw_line.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/interacting_with_layers/toggle_roads_label.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/main.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/change_layers_via_dom.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/create_new_line_layer_definition.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/create_new_point_layer_definition.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/create_new_squarefootage_layer_definition.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/maindwf.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/working_with_feature_data/listselection.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/working_with_feature_data/queryfeatures.php
   sandbox/adsk/2.2gp/Doc/samples/phpsamples/working_with_feature_data/selectfeatures.php
Log:
Fix for trac ticket 1292 - Update to PHP 5.3
http://trac.osgeo.org/mapguide/ticket/1292

Notes:
- Update samples
- Change API GetMessage() to GetExceptionMessage() due to PHP conflict


Modified: sandbox/adsk/2.2gp/Doc/external_topics/FeatureService_provider.h
===================================================================
--- sandbox/adsk/2.2gp/Doc/external_topics/FeatureService_provider.h	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/external_topics/FeatureService_provider.h	2010-03-26 20:32:34 UTC (rev 4709)
@@ -730,7 +730,7 @@
   The constructor takes a provider name, a file handle, and an
   MgByteReader containing the provider capabilities. The
   provider name is obtained from \link MgFeatureService::GetFeatureProviders MgFeatureService::GetFeatureProviders\endlink.
-  The provider capabilities is obtained from 
+  The provider capabilities is obtained from
   \link MgFeatureService::GetCapabilities MgFeatureService::GetCapabilities\endlink.
   The file handle is for logging.
 </p>
@@ -761,7 +761,7 @@
      $this-&gt;queryTopology();
      $this-&gt;queryGeometry();
       } catch (Exception $e) {
-     $msg = $e-&gt;GetMessage();
+     $msg = $e-&gt;GetExceptionMessage();
      fwrite($logFileHandle, &quot;ProviderCapabilities PHP Exception: $msg\\n&quot;);
       }
    }
@@ -1154,7 +1154,7 @@
    function supportsGetMeasureUnits() {
       return $this-&gt;supportsGetMeasureUnits;
    }
-   
+
    var $supportsSQLCommand = FALSE;
    function supportsSQLCommand() {
       return $this-&gt;supportsSQLCommand;
@@ -2182,4 +2182,4 @@
    }
 }
 </pre>
-**/ 
+**/

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/analyzing_features/createbuffer.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/analyzing_features/createbuffer.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/analyzing_features/createbuffer.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -1,6 +1,6 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <html>
-<!-- 
+<!--
 //  Copyright (C) 2004-2010 by Autodesk, Inc.
 //
 //  This library is free software; you can redistribute it and/or
@@ -156,8 +156,8 @@
 
             // Add buffer features to the temporary feature source.
             // Create multiple concentric buffers to show area.
-            // If the stylization for the layer draws the features 
-            // partially transparent, the concentric rings will be 
+            // If the stylization for the layer draws the features
+            // partially transparent, the concentric rings will be
             // progressively darker towards the center.
             // The stylization is set in the layer template file, which
             // is used in function CreateBufferLayer().
@@ -191,11 +191,11 @@
     }
     catch (MgException $e)
     {
-      echo '<p>' . $e->GetMessage() . '</p>';
+      echo '<p>' . $e->GetExceptionMessage() . '</p>';
       echo '<p>' . $e->GetDetails() . '</p>';
     }
     ?>
-    
+
     <p>The buffer has been created.</p>
 
   </body>

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/analyzing_features/selectfeaturesinbuffer.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/analyzing_features/selectfeaturesinbuffer.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/analyzing_features/selectfeaturesinbuffer.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -139,7 +139,7 @@
         }
 
         // Check each layer in the selection.
-        
+
         for ($i = 0; $i < $selectedLayers->GetCount(); $i++)
         {
           // Only check selected features in the Parcels layer.
@@ -150,7 +150,7 @@
           {
 
             echo 'Marking all parcels inside the buffer that are of type "MFG"';
-            
+
             // Create a filter containing the IDs of the selected features on this layer
 
             $layerClassName = $layer->GetFeatureClassName();
@@ -184,7 +184,7 @@
             $mergedGeometries = $geometryFactory->CreateMultiGeometry($inputGeometries);
 
             // Create a buffer from the merged geometries
-            
+
             $bufferDist = $srs->ConvertMetersToCoordinateSystemUnits($bufferRingSize);
             $bufferGeometry = $mergedGeometries->Buffer($bufferDist, $srsMeasure);
 
@@ -209,7 +209,7 @@
             $parcelMarkerCommands = new MgFeatureCommandCollection();
             while ($featureReader->ReadNext())
             {
-              
+
                 $byteReader = $featureReader->GetGeometry('SHPGEOM');
 
                 $geometry = $agfReaderWriter->Read($byteReader);
@@ -218,7 +218,7 @@
                 // Create an insert command for this parcel.
 
                 $properties = new MgPropertyCollection();
-                
+
                 $properties->Add(new MgGeometryProperty('ParcelLocation', $agfReaderWriter->Write($point)));
                 $parcelMarkerCommands->Add(new MgInsertFeatures('ParcelMarkerClass', $properties));
 
@@ -245,7 +245,7 @@
             $featureService->UpdateFeatures($bufferFeatureResId, $commands, false);
 
             // Ensure that the buffer layer is visible and in the legend.
-            
+
             $bufferLayer->SetVisible(true);
             $bufferLayer->ForceRefresh();
             $bufferLayer->SetDisplayInLegend(true);
@@ -264,7 +264,7 @@
     }
     catch (MgException $e)
     {
-      echo '<p>' . $e->GetMessage() . '</p>';
+      echo '<p>' . $e->GetExceptionMessage() . '</p>';
       echo '<p>' . $e->GetDetails() . '</p>';
     }
     ?>

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/createmapimage.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/createmapimage.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/createmapimage.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -42,14 +42,14 @@
   $siteConnection->Open($userInfo);
 
   // Create the necessary services.
-  
+
   $resourceService = $siteConnection->
     CreateService(MgServiceType::ResourceService);
   $renderingService = $siteConnection->
     CreateService(MgServiceType::RenderingService);
 
   // Open the map and get its SRS
-  
+
   $map = new MgMap();
   $map->Open($resourceService, $mapName);
   $srsWkt = $map->GetMapSRS();
@@ -73,22 +73,22 @@
 
   // Convert the height in pixels to map units.
   // Create an envelope that contains the image area to display.
-  
+
   $displayInInches = $imageHeight / 96;
   $displayInMeters = $displayInInches * .0254;
   $mapHeightInMeters = $displayInMeters * $mapScale;
   $mapHeightInMapUnits = $srs->ConvertMetersToCoordinateSystemUnits($mapHeightInMeters);
   $envelopeOffsetY = $mapHeightInMapUnits / 2;
   $envelopeOffsetX = $imageWidth / $imageHeight * $envelopeOffsetY;
-  $envelope = new MgEnvelope($mapCenterX - $envelopeOffsetX, 
-    $mapCenterY - $envelopeOffsetY, $mapCenterX + $envelopeOffsetX, 
+  $envelope = new MgEnvelope($mapCenterX - $envelopeOffsetX,
+    $mapCenterY - $envelopeOffsetY, $mapCenterX + $envelopeOffsetX,
     $mapCenterY + $envelopeOffsetY);
 
   // Render the image and send it to the browser.
-  
-  $byteReader = $renderingService->RenderMap($map, $selection, 
+
+  $byteReader = $renderingService->RenderMap($map, $selection,
     $envelope, $imageWidth, $imageHeight, $color, 'PNG');
-  
+
   header("Content-type: " . $byteReader->GetMimeType() );
 
   $buffer = '';
@@ -99,7 +99,7 @@
 }
 catch (MgException $e)
 {
-  echo '<p>' . $e->GetMessage() . '</p>';
+  echo '<p>' . $e->GetExceptionMessage() . '</p>';
   echo '<p>' . $e->GetDetails() . '</p>';
 }
 

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/emap.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/emap.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/emap.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -63,7 +63,7 @@
 }
 catch (MgException $e)
 {
-  $result = $e->GetMessage() . "<br><br>" . $e->GetDetails();
+  $result = $e->GetExceptionMessage() . "<br><br>" . $e->GetDetails();
 
   header('Content-Type: text/html');
   header('Content-Length: ' . strlen($result));

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/eplot.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/eplot.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/eplot.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -69,7 +69,7 @@
 }
 catch (MgException $e)
 {
-  $result = $e->GetMessage() . "<br><br>" . $e->GetDetails();
+  $result = $e->GetExceptionMessage() . "<br><br>" . $e->GetDetails();
 
   header('Content-Type: text/html');
   header('Content-Length: ' . strlen($result));

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/multiplot.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/multiplot.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/multiplot.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -86,7 +86,7 @@
 }
 catch (MgException $e)
 {
-  $result = $e->GetMessage() . "<br><br>" . $e->GetDetails();
+  $result = $e->GetExceptionMessage() . "<br><br>" . $e->GetDetails();
 
   header('Content-Type: text/html');
   header('Content-Length: ' . strlen($result));

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/property_report.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/property_report.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/custom_output/property_report.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -81,7 +81,7 @@
           $queryOptions->SetFilter($selectionString);
           $featureReader = $featureService->SelectFeatures($layerFeatureResource, $layerClassName, $queryOptions);
 
-          // Create the report details using the first selected parcel. Position the image so the 
+          // Create the report details using the first selected parcel. Position the image so the
           // centroid of the selected parcel is in the center of the map.
 
           $featureReader->ReadNext();
@@ -91,7 +91,7 @@
           $centroid = $featureGeometry->GetCentroid();
           $mapCenterX = $centroid->GetCoordinate()->GetX();
           $mapCenterY = $centroid->GetCoordinate()->GetY();
-          
+
           $owner = $featureReader->GetString('RNAME');
           $address = $featureReader->GetString('RPROPAD');
           $billingAddress = $featureReader->GetString('RBILAD');
@@ -105,7 +105,7 @@
 }
 catch (MgException $e)
 {
-  echo '<p>' . $e->GetMessage() . '</p>';
+  echo '<p>' . $e->GetExceptionMessage() . '</p>';
   echo '<p>' . $e->GetDetails() . '</p>';
 }
 $selectionEncoded = urlencode($xmlSelection);

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/digitizing_features/clear_lines.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/digitizing_features/clear_lines.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/digitizing_features/clear_lines.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -19,11 +19,11 @@
   <head>
     <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
     <title>Clear Lines</title>
-        
+
     <meta http-equiv="content-style-type" content="text/css">
     <link href="../styles/globalStyles.css" rel="stylesheet"  type="text/css">
     <link href="../styles/otherStyles.css" rel="stylesheet" type="text/css">
-    <meta http-equiv="content-script-type" content="text/javascript"> 
+    <meta http-equiv="content-script-type" content="text/javascript">
     <script language="javascript" type="text/javascript">
       function OnPageLoad()
       {
@@ -33,39 +33,39 @@
   </head>
 
   <body onLoad="OnPageLoad()">
-    <?php 
-      require_once('../common/common.php');  
+    <?php
+      require_once('../common/common.php');
       try
       {
         // --------------------------------------------------//
         // Basic initialization
         MgInitializeWebTier($webconfigFilePath);
-        
+
         // Get the information passed from the viewer
         $sessionId = ($_SERVER['REQUEST_METHOD'] == "POST")?$_POST['SESSION']: $_GET['SESSION'];
         $mapName = ($_SERVER['REQUEST_METHOD'] == "POST")?$_POST['MAPNAME']: $_GET['MAPNAME'];
-           
+
         // Get the user information using the session id
-        // and set up a connection to the site server  
+        // and set up a connection to the site server
         $userInfo = new MgUserInformation($sessionId);
         $siteConnection = new MgSiteConnection();
         $siteConnection->Open($userInfo);
-        
+
         // Get an instance of the required service(s)
-        $resourceService = $siteConnection->CreateService(MgServiceType::ResourceService);    
-      
-        // --------------------------------------------------//   
-        $featureSourceName = "Session:$sessionId//TemporaryLines.FeatureSource"; 
+        $resourceService = $siteConnection->CreateService(MgServiceType::ResourceService);
+
+        // --------------------------------------------------//
+        $featureSourceName = "Session:$sessionId//TemporaryLines.FeatureSource";
         $resourceID = new MgResourceIdentifier($featureSourceName);
-        
+
         $resourceService->DeleteResource($resourceID);
       }
       catch (MgException $e)
       {
         echo "<script language=\"javascript\" type=\"text/javascript\"> \n";
-        echo "    alert(\" " . $e->GetMessage() . " \"); \n";
+        echo "    alert(\" " . $e->GetExceptionMessage() . " \"); \n";
         echo "</script> \n";
-      }   
+      }
     ?>
   </body>
 </html>
\ No newline at end of file

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/digitizing_features/draw_line.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/digitizing_features/draw_line.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/digitizing_features/draw_line.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -19,7 +19,7 @@
 <head>
   <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
   <title>Draw a Line</title>
-  
+
   <meta http-equiv="content-style-type" content="text/css">
   <link href="../styles/globalStyles.css" rel="stylesheet"  type="text/css">
   <link href="../styles/otherStyles.css" rel="stylesheet" type="text/css">
@@ -35,9 +35,9 @@
 <body onLoad="OnPageLoad()">
   <?php
   require_once('../common/common.php');
-  require_once($webExtensionsDirectory . 'www/mapviewerphp/layerdefinitionfactory.php');  
+  require_once($webExtensionsDirectory . 'www/mapviewerphp/layerdefinitionfactory.php');
   require_once('../modifying_maps_and_layers/layer_functions.php');
-  
+
   // Get the parameters passed in from the task pane
   $args = ($_SERVER['REQUEST_METHOD'] == "POST")?$_POST: $_GET;
   $x0 = $args['x0'];
@@ -46,209 +46,209 @@
   $y1 = $args['y1'];
   $sessionId = $args['SESSION'];
   $mapName = $args['MAPNAME'];
-  
+
   try
   {
     // --------------------------------------------------//
     // Basic initialization needs to be done every time.
     MgInitializeWebTier($webconfigFilePath);
-    
+
     // Get the session information passed from the viewer.
     $sessionId = ($_SERVER['REQUEST_METHOD'] == "POST")?$_POST['SESSION']: $_GET['SESSION'];
-       
+
     // Get the user information using the session id,
-    // and set up a connection to the site server.     
+    // and set up a connection to the site server.
     $userInfo = new MgUserInformation($sessionId);
     $siteConnection = new MgSiteConnection();
     $siteConnection->Open($userInfo);
-    
-    // Get an instance of the required service(s).    
+
+    // Get an instance of the required service(s).
     $resourceService = $siteConnection->
     CreateService(MgServiceType::ResourceService);
-    $featureService = $siteConnection->CreateService(MgServiceType::FeatureService);      
-  
+    $featureService = $siteConnection->CreateService(MgServiceType::FeatureService);
+
     //---------------------------------------------------//
     // Open the map
     $map = new MgMap();
     $map->Open($resourceService, $mapName);
-        
+
     $layerName = "Lines";
     $layerLegendLabel = "New Lines";
     $groupName = "Analysis";
-    $groupLegendLabel = "Analysis";   
-    
+    $groupLegendLabel = "Analysis";
+
     //---------------------------------------------------//
     // Does the temporary feature source already exist?
     // If not, create it
-    $featureSourceName = "Session:$sessionId//TemporaryLines.FeatureSource"; 
+    $featureSourceName = "Session:$sessionId//TemporaryLines.FeatureSource";
     $resourceIdentifier = new MgResourceIdentifier($featureSourceName);
-    
+
     $featureSourceExists = DoesResourceExist($resourceIdentifier, $resourceService);
-    if (! $featureSourceExists) 
-    {             
+    if (! $featureSourceExists)
+    {
       // Create a temporary feature source to draw the lines on
-                              
-      // Create a feature class definition for the new feature 
+
+      // Create a feature class definition for the new feature
       // source
       $classDefinition = new MgClassDefinition();
       $classDefinition->SetName("Lines");
       $classDefinition->SetDescription("Lines to display.");
       $geometryPropertyName="SHPGEOM";
       $classDefinition->
-        SetDefaultGeometryPropertyName( $geometryPropertyName); 
-      
+        SetDefaultGeometryPropertyName( $geometryPropertyName);
+
       // Create an identify property
       $identityProperty = new MgDataPropertyDefinition("KEY");
       $identityProperty->SetDataType(MgPropertyType::Int32);
       $identityProperty->SetAutoGeneration(true);
-      $identityProperty->SetReadOnly(true); 
+      $identityProperty->SetReadOnly(true);
       // Add the identity property to the class definition
       $classDefinition->GetIdentityProperties()->
         Add($identityProperty);
       $classDefinition->GetProperties()->Add($identityProperty);
-      
+
       // Create a name property
       $nameProperty = new MgDataPropertyDefinition("NAME");
-      $nameProperty->SetDataType(MgPropertyType::String); 
+      $nameProperty->SetDataType(MgPropertyType::String);
       // Add the name property to the class definition
       $classDefinition->GetProperties()->Add($nameProperty);
-      
+
       // Create a geometry property
-      $geometryProperty = new 
-        MgGeometricPropertyDefinition($geometryPropertyName);   
+      $geometryProperty = new
+        MgGeometricPropertyDefinition($geometryPropertyName);
       $geometryProperty->
-        SetGeometryTypes(MgFeatureGeometricType::Surface);  
+        SetGeometryTypes(MgFeatureGeometricType::Surface);
       // Add the geometry property to the class definition
-      $classDefinition->GetProperties()->Add($geometryProperty); 
-      
+      $classDefinition->GetProperties()->Add($geometryProperty);
+
       // Create a feature schema
-      $featureSchema = new MgFeatureSchema("SHP_Schema", 
+      $featureSchema = new MgFeatureSchema("SHP_Schema",
         "Line schema");
       // Add the feature schema to the class definition
-      $featureSchema->GetClasses()->Add($classDefinition);             
-      
+      $featureSchema->GetClasses()->Add($classDefinition);
+
       // Create the feature source
       $wkt = $map->GetMapSRS();
-      $sdfParams = new MgCreateSdfParams("spatial context", 
-        $wkt, $featureSchema);  
-      $featureService->CreateFeatureSource($resourceIdentifier, 
-        $sdfParams);          
-    }  
-    
+      $sdfParams = new MgCreateSdfParams("spatial context",
+        $wkt, $featureSchema);
+      $featureService->CreateFeatureSource($resourceIdentifier,
+        $sdfParams);
+    }
+
     // Add the line to the feature source
     $batchPropertyCollection = new MgBatchPropertyCollection();
     $propertyCollection = MakeLine("Line A", $x0, $y0, $x1, $y1);
     $batchPropertyCollection->Add($propertyCollection);
-          
+
     // Add the batch property collection to the feature source
-    $cmd = new MgInsertFeatures($layerName, $batchPropertyCollection); 
+    $cmd = new MgInsertFeatures($layerName, $batchPropertyCollection);
     $featureCommandCollection = new MgFeatureCommandCollection();
     $featureCommandCollection->Add($cmd);
-    
+
     // Execute the "add" commands
-    $featureService->UpdateFeatures($resourceIdentifier, $featureCommandCollection, false);     
-    
+    $featureService->UpdateFeatures($resourceIdentifier, $featureCommandCollection, false);
+
     //---------------------------------------------------//
     $layerExists = DoesLayerExist($layerName, $map);
     if (! $layerExists )
     {
-      // Create a new layer which uses that feature source         
-        
+      // Create a new layer which uses that feature source
+
       // Create a line rule to stylize the lines
       $ruleLegendLabel = 'Lines Rule';
       $filter = '';
       $color = 'FF0000FF';
       $factory = new LayerDefinitionFactory();
       $lineRule = $factory->CreateLineRule($ruleLegendLabel, $filter, $color);
-      
+
       // Create a line type style
       $lineTypeStyle = $factory->CreateLineTypeStyle($lineRule);
-      
+
       // Create a scale range
       $minScale = '0';
       $maxScale = '1000000000000';
-      $lineScaleRange = $factory->CreateScaleRange($minScale, $maxScale, $lineTypeStyle);   
-    
+      $lineScaleRange = $factory->CreateScaleRange($minScale, $maxScale, $lineTypeStyle);
+
       // Create the layer definiton
       $featureName = 'SHP_Schema:Lines';
       $geometry = 'SHPGEOM';
       $layerDefinition = $factory->CreateLayerDefinition($featureSourceName, $featureName, $geometry, $lineScaleRange);
-      
-      //---------------------------------------------------//  
+
+      //---------------------------------------------------//
       // Add the layer to the map
       $newLayer = add_layer_definition_to_map($layerDefinition, $layerName, $layerLegendLabel, $sessionId, $resourceService, $map);
       // Add the layer to a layer group
       add_layer_to_group($newLayer,$groupName, $groupLegendLabel, $map);
     }
-  
+
     // --------------------------------------------------//
     // Turn on the visibility of this layer.
     // (If the layer does not already exist in the map, it will be visible by default when it is added.
     // But if the user has already run this script, he or she may have set the layer to be invisible.)
     $layerCollection = $map->GetLayers();
-    if ($layerCollection->Contains($layerName)) 
+    if ($layerCollection->Contains($layerName))
     {
       $linesLayer =$layerCollection->GetItem($layerName);
       $linesLayer->SetVisible(true);
     }
-    
+
     $groupCollection = $map->GetLayerGroups();
     if ($groupCollection->Contains($groupName))
     {
       $analysisGroup =$groupCollection->GetItem($groupName);
       $analysisGroup->SetVisible(true);
-    }    
-    
+    }
+
     //---------------------------------------------------//
     //  Save the map back to the session repository
     $sessionIdName = "Session:$sessionId//$mapName.Map";
     $sessionResourceID = new MgResourceIdentifier($sessionIdName);
     $sessionResourceID->Validate();
     $map->Save($resourceService, $sessionResourceID);
-  
-    //---------------------------------------------------//   
-      
+
+    //---------------------------------------------------//
+
   }
   catch (MgException $e)
   {
     echo "<script language=\"javascript\" type=\"text/javascript\"> \n";
-    echo "    alert(\" " . $e->GetMessage() . " \"); \n";
+    echo "    alert(\" " . $e->GetExceptionMessage() . " \"); \n";
     echo "</script> \n";
   }
-  
+
   ///////////////////////////////////////////////////////////////////////////////////
   function MakeLine($name, $x0, $y0 , $x1, $y1)
   {
     $propertyCollection = new MgPropertyCollection();
     $nameProperty = new MgStringProperty("NAME", $name);
     $propertyCollection->Add($nameProperty);
-    
+
     $wktReaderWriter = new MgWktReaderWriter();
-    $agfReaderWriter = new MgAgfReaderWriter(); 
-    
-    $geometry = $wktReaderWriter->Read("LINESTRING XY ($x0 $y0, $x1 $y1)"); 
-    $geometryByteReader = $agfReaderWriter->Write($geometry); 
+    $agfReaderWriter = new MgAgfReaderWriter();
+
+    $geometry = $wktReaderWriter->Read("LINESTRING XY ($x0 $y0, $x1 $y1)");
+    $geometryByteReader = $agfReaderWriter->Write($geometry);
     $geometryProperty = new MgGeometryProperty("SHPGEOM", $geometryByteReader);
     $propertyCollection->Add($geometryProperty);
-    
+
     return $propertyCollection;
   }
-  
+
   ///////////////////////////////////////////////////////////////////////////////////
   function DoesResourceExist($resourceIdentifier, $resourceService)
   // Returns true if the resource already exists, or false otherwise
   {
     return $resourceService->ResourceExists($resourceIdentifier);
   }
-  
+
   ///////////////////////////////////////////////////////////////////////////////////
   function DoesLayerExist($layerName, $map)
   // Returns true if the layer already exists, or false otherwise
   {
-    $layerCollection = $map->GetLayers();   
+    $layerCollection = $map->GetLayers();
     return( $layerCollection->Contains($layerName) ? true : false ) ;
   }
-  
+
   ///////////////////////////////////////////////////////////////////////////////////
   ?>
   </body>

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/interacting_with_layers/toggle_roads_label.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/interacting_with_layers/toggle_roads_label.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/interacting_with_layers/toggle_roads_label.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -92,7 +92,7 @@
     }
     catch (MgException $e)
     {
-      echo $e->GetMessage();
+      echo $e->GetExceptionMessage();
       echo $e->GetDetails();
     }
   ?>

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/main.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/main.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/main.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -33,7 +33,7 @@
     echo "Could not connect to the MapGuide site server. Please contact the MapGuide site administrator.";
     die();
 }
-    
+
 try
 {
     $sessionId = $site->CreateSession();
@@ -44,7 +44,7 @@
 }
 catch (MgException $e)
 {
-    echo "ERROR: " . $e->GetMessage("eng") . "\n";
+    echo "ERROR: " . $e->GetExceptionMessage("eng") . "\n";
     echo $e->GetStackTrace("eng") . "\n";
 }
 ?>

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/change_layers_via_dom.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/change_layers_via_dom.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/change_layers_via_dom.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <!--
 //  Copyright (C) 2004-2010 by Autodesk, Inc.
 //
@@ -76,7 +76,7 @@
     $xpath = new DOMXPath($domDocument);
     $query = '//AreaRule/Filter';
     // Get a list of all the <AreaRule><Filter> elements in
-    // the XML.   
+    // the XML.
     $nodes = $xpath->query($query);
     // Find the correct node and change it
     foreach ($nodes as $node )
@@ -103,7 +103,7 @@
 
     // --------------------------------------------------//
   // ...
-  
+
     // Add the layer to the map
     $layerDefinition = $domDocument->saveXML();
     $newLayer = add_layer_definition_to_map($layerDefinition, "RecentlyBuilt", "Built after 1980", $sessionId, $resourceService, $map);
@@ -130,7 +130,7 @@
         $recentlyBuiltLayer = $layerCollection->GetItem("RecentlyBuilt");
         $recentlyBuiltLayer->SetVisible(true);
     }
-    
+
     // --------------------------------------------------//
     //  Save the map back to the session repository
     $sessionIdName = "Session:$sessionId//$mapName.Map";
@@ -145,7 +145,7 @@
 catch (MgException $e)
 {
   echo "<script language=\"javascript\" type=\"text/javascript\"> \n";
-  $message = $e->GetMessage();
+  $message = $e->GetExceptionMessage();
   $message = str_replace("\n", " ", $message);
   echo "    alert(\" " . $message . " \"); \n";
   echo "</script> \n";

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/create_new_line_layer_definition.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/create_new_line_layer_definition.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/create_new_line_layer_definition.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <!--
 //  Copyright (C) 2004-2010 by Autodesk, Inc.
 //
@@ -34,10 +34,10 @@
 </head>
 
 <body onLoad="OnPageLoad()">
-	
+
 <?php
 require_once('../common/common.php');
-require_once($webExtensionsDirectory . 'www/mapviewerphp/layerdefinitionfactory.php');	
+require_once($webExtensionsDirectory . 'www/mapviewerphp/layerdefinitionfactory.php');
 require_once('layer_functions.php');
 try
 {
@@ -60,26 +60,26 @@
 	// ...
     //---------------------------------------------------//
     // Create a new layer
-    
+
 	$factory = new LayerDefinitionFactory();
-	    
+
     // Create a line rule.
     $legendLabel = '';
     $filter = '';
     $color = 'FF0000FF';
 	$lineRule = $factory->CreateLineRule(
 	  $legendLabel, $filter, $color);
-	
+
     // Create a line type style.
     $lineTypeStyle = $factory->
       CreateLineTypeStyle($lineRule);
-      
+
     // Create a scale range.
     $minScale = '0';
     $maxScale = '1000000000000';
     $lineScaleRange = $factory->
-      CreateScaleRange($minScale, $maxScale, 
-      $lineTypeStyle);   
+      CreateScaleRange($minScale, $maxScale,
+      $lineTypeStyle);
 
     // Create the layer definiton.
     $featureClass = 'Library://Samples/Sheboygan/Data/'
@@ -87,16 +87,16 @@
     $featureName = 'SHP_Schema:HydrographicLines';
     $geometry = 'SHPGEOM';
 	$layerDefinition = $factory->
-	  CreateLayerDefinition($featureClass, $featureName, 
+	  CreateLayerDefinition($featureClass, $featureName,
 	  $geometry, $lineScaleRange);
-    
-    //---------------------------------------------------//  
-    // ... 
-          
+
+    //---------------------------------------------------//
+    // ...
+
     // Add the layer to the map
     $newLayer = add_layer_definition_to_map($layerDefinition, "Hydro", "Hydro", $sessionId, $resourceService, $map);
     add_layer_to_group($newLayer, "Analysis", "Analysis", $map);
-	
+
     // --------------------------------------------------//
     // Turn on the visibility of this layer.
     // (If the layer does not already exist in the map, it will be visible by default when it is added.
@@ -107,7 +107,7 @@
         $squareFootageLayer =$layerCollection->GetItem("Hydro");
         $squareFootageLayer->SetVisible(true);
     }
-    	
+
     //---------------------------------------------------//
     //  Save the map back to the session repository
     $sessionIdName = "Session:$sessionId//$mapName.Map";
@@ -121,7 +121,7 @@
 catch (MgException $e)
 {
 	echo "<script language=\"javascript\" type=\"text/javascript\"> \n";
-	echo "    alert(\" " . $e->GetMessage() . " \"); \n";
+	echo "    alert(\" " . $e->GetExceptionMessage() . " \"); \n";
 	echo "</script> \n";
 }
 ?>

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/create_new_point_layer_definition.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/create_new_point_layer_definition.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/create_new_point_layer_definition.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <!--
 //  Copyright (C) 2004-2010 by Autodesk, Inc.
 //
@@ -32,11 +32,11 @@
     </script>
 </head>
 
-<body onLoad="OnPageLoad()"> 
-	
+<body onLoad="OnPageLoad()">
+
 <?php
 require_once('../common/common.php');
-require_once($webExtensionsDirectory . 'www/mapviewerphp/layerdefinitionfactory.php');	
+require_once($webExtensionsDirectory . 'www/mapviewerphp/layerdefinitionfactory.php');
 require_once('layer_functions.php');
 try
 {
@@ -50,8 +50,8 @@
     $siteConnection = new MgSiteConnection();
     $siteConnection->Open($userInfo);
     $resourceService = $siteConnection->CreateService(MgServiceType::ResourceService);
-    $featureService = $siteConnection->CreateService(MgServiceType::FeatureService);      
-           
+    $featureService = $siteConnection->CreateService(MgServiceType::FeatureService);
+
     //---------------------------------------------------//
     // Open the map
     $map = new MgMap();
@@ -61,46 +61,46 @@
     // Create a feature source with point data.
     // (The Sheboygan sample data does not contain such data,
     // so we'll create it.)
-    
+
 	// Create a feature class definition for the new feature source
 	$classDefinition = new MgClassDefinition();
 	$classDefinition->SetName("Points");
 	$classDefinition->SetDescription("Feature class with point data.");
 	$classDefinition->SetDefaultGeometryPropertyName("GEOM");
-	
+
 	// Create an identify property
 	$identityProperty = new MgDataPropertyDefinition("KEY");
 	$identityProperty->SetDataType(MgPropertyType::Int32);
 	$identityProperty->SetAutoGeneration(true);
-	$identityProperty->SetReadOnly(true);	
+	$identityProperty->SetReadOnly(true);
 	// Add the identity property to the class definition
 	$classDefinition->GetIdentityProperties()->Add($identityProperty);
 	$classDefinition->GetProperties()->Add($identityProperty);
-	
+
 	// Create a name property
 	$nameProperty = new MgDataPropertyDefinition("NAME");
-	$nameProperty->SetDataType(MgPropertyType::String);	
+	$nameProperty->SetDataType(MgPropertyType::String);
 	// Add the name property to the class definition
 	$classDefinition->GetProperties()->Add($nameProperty);
-	
+
 	// Create a geometry property
 	$geometryProperty = new MgGeometricPropertyDefinition("GEOM");
-	$geometryProperty->SetGeometryTypes(MgFeatureGeometricType::Surface);	
+	$geometryProperty->SetGeometryTypes(MgFeatureGeometricType::Surface);
 	// Add the geometry property to the class definition
 	$classDefinition->GetProperties()->Add($geometryProperty);
-	
+
 	// Create a feature schema
 	$featureSchema = new MgFeatureSchema("PointSchema", "Point schema");
 	// Add the feature schema to the class definition
-	$featureSchema->GetClasses()->Add($classDefinition);             
-	
+	$featureSchema->GetClasses()->Add($classDefinition);
+
 	// Create the feature source
-	$featureSourceName = 'Library://Samples/DevGuide/Data/points.FeatureSource'; 
+	$featureSourceName = 'Library://Samples/DevGuide/Data/points.FeatureSource';
 	$resourceIdentifier = new MgResourceIdentifier($featureSourceName);
 	$wkt = "LOCALCS[\"*XY-MT*\",LOCAL_DATUM[\"*X-Y*\",10000],UNIT[\"Meter\", 1],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]]";
 	$sdfParams = new MgCreateSdfParams("ArbitraryXY", $wkt, $featureSchema);
     $featureService->CreateFeatureSource($resourceIdentifier, $sdfParams);
-	
+
 	// We need to add some data to the sdf before using it.  The spatial context
 	// reader must have an extent.
 	$batchPropertyCollection = new MgBatchPropertyCollection();
@@ -108,37 +108,37 @@
 	$agfReaderWriter = new MgAgfReaderWriter();
 	$geometryFactory = new MgGeometryFactory();
 
-    // Make four points 	
+    // Make four points
 	$propertyCollection = MakePoint("Point A", -87.727, 43.748);
 	$batchPropertyCollection->Add($propertyCollection);
-	unset($propertyCollection);	
-	
+	unset($propertyCollection);
+
 	$propertyCollection = MakePoint("Point B", -87.728, 43.730);
 	$batchPropertyCollection->Add($propertyCollection);
-	unset($propertyCollection);	
-			
+	unset($propertyCollection);
+
 	$propertyCollection = MakePoint("Point C", -87.726, 43.750);
 	$batchPropertyCollection->Add($propertyCollection);
-	unset($propertyCollection);	
+	unset($propertyCollection);
 
 	$propertyCollection = MakePoint("Point D", -87.728, 43.750);
 	$batchPropertyCollection->Add($propertyCollection);
-	unset($propertyCollection);	
-		
+	unset($propertyCollection);
+
 	// Add the batch property collection to the feature source
-	$cmd = new MgInsertFeatures("Points", $batchPropertyCollection); 
+	$cmd = new MgInsertFeatures("Points", $batchPropertyCollection);
 	$featureCommandCollection = new MgFeatureCommandCollection();
 	$featureCommandCollection->Add($cmd);
-	
+
 	// Execute the "add" commands
-	$featureService->UpdateFeatures($resourceIdentifier, $featureCommandCollection, false);    
-	
+	$featureService->UpdateFeatures($resourceIdentifier, $featureCommandCollection, false);
+
     // ...
     //---------------------------------------------------//
     // Create a new layer
-    
+
     $factory = new LayerDefinitionFactory();
- 
+
     // Create a mark symbol
     $resourceId = 'Library://Samples/Sheboygan/'
       . 'Symbols/BasicSymbols.SymbolLibrary';
@@ -146,41 +146,41 @@
     $width = '24';  // unit = points
     $height = '24'; // unit = points
     $color = 'FFFF0000';
-    $markSymbol = $factory->CreateMarkSymbol($resourceId, 
-      $symbolName, $width, $height, $color);   
-    
+    $markSymbol = $factory->CreateMarkSymbol($resourceId,
+      $symbolName, $width, $height, $color);
+
     // Create a text symbol
     $text = "ID";
     $fontHeight="12";
     $foregroundColor = 'FF000000';
-    $textSymbol = $factory->CreateTextSymbol($text, 
+    $textSymbol = $factory->CreateTextSymbol($text,
       $fontHeight, $foregroundColor);
 
     // Create a point rule.
     $legendLabel = 'trees';
     $filter = '';
-    $pointRule = $factory->CreatePointRule($legendLabel, 
+    $pointRule = $factory->CreatePointRule($legendLabel,
       $filter, $textSymbol, $markSymbol);
-      
+
     // Create a point type style.
     $pointTypeStyle = $factory->
       CreatepointTypeStyle($pointRule);
-      
+
     // Create a scale range.
     $minScale = '0';
     $maxScale = '1000000000000';
     $pointScaleRange = $factory->CreateScaleRange(
-      $minScale, $maxScale, $pointTypeStyle);      
+      $minScale, $maxScale, $pointTypeStyle);
 
     // Create the layer definiton.
     $featureName = 'PointSchema:Points';
     $geometry = 'GEOM';
     $layerDefinition = $factory->
-      CreateLayerDefinition($featureSourceName, 
+      CreateLayerDefinition($featureSourceName,
       $featureName, $geometry, $pointScaleRange);
     //---------------------------------------------------//
     // ...
-    
+
     // Add the layer to the map
     $newLayer = add_layer_definition_to_map($layerDefinition, "Points", "Points of Interest", $sessionId, $resourceService, $map);
     add_layer_to_group($newLayer, "Analysis", "Analysis", $map);
@@ -208,7 +208,7 @@
 catch (MgException $e)
 {
 	echo "<script language=\"javascript\" type=\"text/javascript\"> \n";
-	echo "    alert(\" " . $e->GetMessage() . " \"); \n";
+	echo "    alert(\" " . $e->GetExceptionMessage() . " \"); \n";
 	echo "</script> \n";
 }
 
@@ -218,15 +218,15 @@
 	$propertyCollection = new MgPropertyCollection();
 	$nameProperty = new MgStringProperty("NAME", $name);
 	$propertyCollection->Add($nameProperty);
-	
+
 	$wktReaderWriter = new MgWktReaderWriter();
-	$agfReaderWriter = new MgAgfReaderWriter();	
-	
-	$geometry = $wktReaderWriter->Read("POINT XY ($x $y)"); 
-	$geometryByteReader = $agfReaderWriter->Write($geometry); 
+	$agfReaderWriter = new MgAgfReaderWriter();
+
+	$geometry = $wktReaderWriter->Read("POINT XY ($x $y)");
+	$geometryByteReader = $agfReaderWriter->Write($geometry);
 	$geometryProperty = new MgGeometryProperty("GEOM", $geometryByteReader);
 	$propertyCollection->Add($geometryProperty);
-	
+
 	return $propertyCollection;
 }
 ?>

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/create_new_squarefootage_layer_definition.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/create_new_squarefootage_layer_definition.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/create_new_squarefootage_layer_definition.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <!--
 //  Copyright (C) 2004-2010 by Autodesk, Inc.
 //
@@ -34,10 +34,10 @@
 </head>
 
 <body onLoad="OnPageLoad()">
-    
+
 <?php
 require_once('../common/common.php');
-require_once($webExtensionsDirectory . 'www/mapviewerphp/layerdefinitionfactory.php');	
+require_once($webExtensionsDirectory . 'www/mapviewerphp/layerdefinitionfactory.php');
 require_once('layer_functions.php');
 try
 {
@@ -47,7 +47,7 @@
     $args = ($_SERVER['REQUEST_METHOD'] == "POST") ? $_POST : $_GET;
     $sessionId = $args['SESSION'];
     $mapName = $args['MAPNAME'];
-    
+
     $userInfo = new MgUserInformation($sessionId);
     $siteConnection = new MgSiteConnection();
     $siteConnection->Open($userInfo);
@@ -62,22 +62,22 @@
 	// ...
     //---------------------------------------------------//
     // Create a new layer
-    
+
     $factory = new LayerDefinitionFactory();
-    
+
     /// Create three area rules for three different
-    // scale ranges.    
-    $areaRule1 = $factory->CreateAreaRule(    '1 to 800', 
+    // scale ranges.
+    $areaRule1 = $factory->CreateAreaRule(    '1 to 800',
       'SQFT &gt;= 1 AND SQFT &lt; 800',     'FFFFFF00');
-    $areaRule2 = $factory->CreateAreaRule( '800 to 1600', 
+    $areaRule2 = $factory->CreateAreaRule( '800 to 1600',
       'SQFT &gt;= 800 AND SQFT &lt; 1600',  'FFFFBF20');
-    $areaRule3 = $factory->CreateAreaRule('1600 to 2400', 
+    $areaRule3 = $factory->CreateAreaRule('1600 to 2400',
       'SQFT &gt;= 1600 AND SQFT &lt; 2400', 'FFFF8040');
-    
-    // Create an area type style.   
+
+    // Create an area type style.
     $areaTypeStyle = $factory->CreateAreaTypeStyle(
       $areaRule1 . $areaRule2 . $areaRule3);
-    
+
     // Create a scale range.
     $minScale = '0';
     $maxScale = '10000';
@@ -90,12 +90,12 @@
     $featureName = 'SHP_Schema:Parcels';
     $geometry = 'SHPGEOM';
     $layerDefinition = $factory->CreateLayerDefinition(
-      $featureClass, $featureName, $geometry, 
+      $featureClass, $featureName, $geometry,
       $areaScaleRange);
-    
+
     //---------------------------------------------------//
     // ...
-        
+
     // Add the layer to the map
     $newLayer = add_layer_definition_to_map($layerDefinition, "SquareFootage", "Square Footage", $sessionId, $resourceService, $map);
     add_layer_to_group($newLayer, "Analysis", "Analysis", $map);
@@ -119,7 +119,7 @@
         $squareFootageLayer =$layerCollection->GetItem("SquareFootage");
         $squareFootageLayer->SetVisible(true);
     }
-    
+
     //---------------------------------------------------//
     //  Save the map back to the session repository
     $sessionIdName = "Session:$sessionId//$mapName.Map";
@@ -132,7 +132,7 @@
 catch (MgException $e)
 {
 	echo "<script language=\"javascript\" type=\"text/javascript\"> \n";
-	echo "    alert(\" " . $e->GetMessage() . " \"); \n";
+	echo "    alert(\" " . $e->GetExceptionMessage() . " \"); \n";
 	echo "</script> \n";
 }
 ?>

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/maindwf.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/maindwf.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/modifying_maps_and_layers/maindwf.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -33,18 +33,18 @@
     echo "Could not connect to the MapGuide site server. Please contact the MapGuide site administrator.";
     die();
 }
-    
+
 try
 {
     $sessionId = $site->CreateSession();
-    
+
     // Define some constants
     $webLayout     = "Library://Samples/DevGuidePHP/modifying_maps_and_layers.WebLayout";
     $title         = "Modifying Maps and Layers";
 }
 catch (MgException $e)
 {
-    echo "ERROR: " . $e->GetMessage("eng") . "\n";
+    echo "ERROR: " . $e->GetExceptionMessage("eng") . "\n";
     echo $e->GetStackTrace("eng") . "\n";
 }
 ?>
@@ -57,12 +57,12 @@
     <meta http-equiv="content-style-type" content="text/css">
     <link href="../styles/globalStyles.css" rel="stylesheet" type="text/css">
   </head>
-  
+
   <frameset rows="110,*">
     <frame src="Title.php?TitleText=<?= $title ?>" name="TitleFrame" scrolling="NO" noresize>
     <frame
       src="/mapguide/mapviewerdwf/?
         SESSION=<?= $sessionId ?>&
-        WEBLAYOUT=<?= $webLayout ?>" name="ViewerFrame">   
+        WEBLAYOUT=<?= $webLayout ?>" name="ViewerFrame">
   </frameset>
 </html>

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/working_with_feature_data/listselection.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/working_with_feature_data/listselection.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/working_with_feature_data/listselection.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <!--
 //  Copyright (C) 2004-2010 by Autodesk, Inc.
 //
@@ -66,7 +66,7 @@
       else
       $layers = 0;
       // ---------------------------------------------------------
-      
+
       // ---------------------------------------------------------
       // Use the following code for AJAX Viewers only.
       // This does not require passing selection data via HTTP POST.
@@ -77,7 +77,7 @@
       // ---------------------------------------------------------
 
       if ($layers)
-      { 
+      {
         $queryOptions = new MgFeatureQueryOptions();
         for ($i = 0; $i < $layers->GetCount(); $i++)
         {
@@ -121,7 +121,7 @@
     }
     catch (MgException $e)
     {
-      echo '<p>' . $e->GetMessage() . '</p>';
+      echo '<p>' . $e->GetExceptionMessage() . '</p>';
       echo '<p>' . $e->GetDetails() . '</p>';
     }
     ?>

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/working_with_feature_data/queryfeatures.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/working_with_feature_data/queryfeatures.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/working_with_feature_data/queryfeatures.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -57,7 +57,7 @@
 
       $districtQuery = new MgFeatureQueryOptions();
       $districtQuery->SetFilter("Autogenerated_SDF_ID = 1");
-      
+
       $layer = $map->GetLayers()->GetItem('Districts');
       $featureReader = $layer->SelectFeatures($districtQuery);
       $featureReader->ReadNext();
@@ -69,13 +69,13 @@
       $agfReaderWriter = new MgAgfReaderWriter();
       $districtGeometry = $agfReaderWriter->
       Read($districtGeometryData);
-      
+
       // Create a filter to select the desired features.
       // Combine a basic filter and a spatial filter.
 
       $queryOptions = new MgFeatureQueryOptions();
       $queryOptions->SetFilter("RNAME LIKE 'SCHMITT%'");
-      
+
       $queryOptions->SetSpatialFilter('SHPGEOM',
       $districtGeometry,
       MgFeatureSpatialOperations::Inside);
@@ -89,7 +89,7 @@
 
       echo '<p>Properties owned by Schmitt ';
       echo 'in District 1</p><p>';
-      
+
       while ($featureReader->ReadNext())
       {
         $val = $featureReader->GetString('RPROPAD');
@@ -99,7 +99,7 @@
     }
     catch (MgException $e)
     {
-      echo $e->GetMessage();
+      echo $e->GetExceptionMessage();
       echo $e->GetDetails();
     }
     catch (Exception $e)

Modified: sandbox/adsk/2.2gp/Doc/samples/phpsamples/working_with_feature_data/selectfeatures.php
===================================================================
--- sandbox/adsk/2.2gp/Doc/samples/phpsamples/working_with_feature_data/selectfeatures.php	2010-03-26 20:26:01 UTC (rev 4708)
+++ sandbox/adsk/2.2gp/Doc/samples/phpsamples/working_with_feature_data/selectfeatures.php	2010-03-26 20:32:34 UTC (rev 4709)
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <!--
 //  Copyright (C) 2004-2010 by Autodesk, Inc.
 //
@@ -90,7 +90,7 @@
     }
     catch (MgException $e)
     {
-      echo $e->GetMessage();
+      echo $e->GetExceptionMessage();
       echo $e->GetDetails();
     }
     ?>



More information about the mapguide-commits mailing list