[fusion-commits] r2648 - sandbox/adsk/2.3r.sce/layers/MapGuide/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Sun Feb 24 23:42:51 PST 2013


Author: liuar
Date: 2013-02-24 23:42:51 -0800 (Sun, 24 Feb 2013)
New Revision: 2648

Modified:
   sandbox/adsk/2.3r.sce/layers/MapGuide/php/GetSelectionProperties.php
Log:
Submit on behalf of Andy Zhang.
This submission improves zoom to selection' operation for SCE project.



Modified: sandbox/adsk/2.3r.sce/layers/MapGuide/php/GetSelectionProperties.php
===================================================================
--- sandbox/adsk/2.3r.sce/layers/MapGuide/php/GetSelectionProperties.php	2013-02-25 06:25:05 UTC (rev 2647)
+++ sandbox/adsk/2.3r.sce/layers/MapGuide/php/GetSelectionProperties.php	2013-02-25 07:42:51 UTC (rev 2648)
@@ -61,7 +61,7 @@
         /*holds selection array*/
         $properties = NULL;
         $properties->layers = array();
-        $envelope = new MgEnvelope();
+        $envelope = NULL;
 
         //process
         header('Content-type: application/json');
@@ -167,8 +167,11 @@
                 $wktReader = new MgWktReaderWriter();
                 $geomExt = $wktReader->Read($geometry);
                 $envelope = $geomExt->Envelope();
+                if ($envelope)
+                    $oExtents = $envelope;
+            } else {
+                $oExtents = $selection->GetExtents($featureService);
             }
-            $oExtents = $envelope;
             if ($oExtents)
             {
                 $oMin = $oExtents->GetLowerLeftCoordinate();



More information about the fusion-commits mailing list