[fusion-commits] r2972 - sandbox/adsk/3.2o/widgets/SelectWithin

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Mar 27 21:45:44 PDT 2017


Author: liuar
Date: 2017-03-27 21:45:43 -0700 (Mon, 27 Mar 2017)
New Revision: 2972

Modified:
   sandbox/adsk/3.2o/widgets/SelectWithin/SelectWithin.php
Log:
Handle the case that the map hasn't a CS assigned in widget SelectWithin.

Modified: sandbox/adsk/3.2o/widgets/SelectWithin/SelectWithin.php
===================================================================
--- sandbox/adsk/3.2o/widgets/SelectWithin/SelectWithin.php	2017-03-10 06:06:09 UTC (rev 2971)
+++ sandbox/adsk/3.2o/widgets/SelectWithin/SelectWithin.php	2017-03-28 04:45:43 UTC (rev 2972)
@@ -180,8 +180,13 @@
                 }
                 else if($type != MgGeometryType::Polygon)
                     continue;
-                $trans = GetLayerToMapCSTrans($classDef, $geomPropName, $featureSrvc, $featureSource, $map);
-                $geomColl->Add($geom->Transform($trans));
+                if ($map->GetMapSRS())
+                {
+                    $trans = GetLayerToMapCSTrans($classDef, $geomPropName, $featureSrvc, $featureSource, $map);
+                    $geomColl->Add($geom->Transform($trans));
+                }
+                else
+                    $geomColl->Add($geom);
             }
             $features->Close();
         }



More information about the fusion-commits mailing list