[fusion-commits] r2014 - trunk/widgets/Theme/classes
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Dec 10 21:47:29 EST 2009
Author: christinebao
Date: 2009-12-10 21:47:28 -0500 (Thu, 10 Dec 2009)
New Revision: 2014
Modified:
trunk/widgets/Theme/classes/theme.php
Log:
http://trac.osgeo.org/fusion/ticket/345
Theme: Theme doesn't consider the layer with filter condition
Modified: trunk/widgets/Theme/classes/theme.php
===================================================================
--- trunk/widgets/Theme/classes/theme.php 2009-12-10 23:53:01 UTC (rev 2013)
+++ trunk/widgets/Theme/classes/theme.php 2009-12-11 02:47:28 UTC (rev 2014)
@@ -147,6 +147,8 @@
$featureService = $this->site->CreateService(MgServiceType::FeatureService);
$resId = new MgResourceIdentifier($layer->GetFeatureSourceId());
+
+ $filter = $layer->GetFilter();
// Note: Should be able to do this:
//
@@ -177,6 +179,8 @@
$queryOptions = new MgFeatureQueryOptions();
$queryOptions->AddFeatureProperty($this->args['PROPERTYNAME']);
+ if($filter != '')
+ $queryOptions->SetFilter($filter);
$featureReader = $featureService->SelectFeatures($resId, $layer->GetFeatureClassName(), $queryOptions);
More information about the fusion-commits
mailing list