Modifies a select operation with a grouping filter so that the results are grouped.
Example (PHP)
GroupName is a string property, and aDouble is a double property. Three values are returned by this query. Each of them is the smallest aDouble property value in one of the groups of features selected by the grouping filter.
<?php
$stringCollection->Add("GroupName");
$groupingFilter = "GroupName = 'Group1' or GroupName = 'Group2' or GroupName = 'Group3'";
$aggregateOptions->SetGroupingFilter($stringCollection, $groupingFilter);
$aggregateOptions->SetComputedProperty("minD", "min(aDouble)");
$dataReader = $featureService->SelectAggregate($featureSrcResId, $featClassName, $aggregateOptions);
?>
sqlplus> select min(aDouble) as minD from featclass group by groupname having groupname = 'Group1' or groupname = 'Group2' or groupname = 'Group3';