48 | | TBD |
| 48 | |
| 49 | {{{ |
| 50 | FdoPtr<FdoISelectAggregates> selectAggregates = (FdoISelectAggregates*)mConnection->CreateCommand (FdoCommandType_SelectAggregates); |
| 51 | selectAggregates->SetFeatureClassName (L"POLE"); |
| 52 | FdoPtr<FdoIdentifierCollection> idColl = selectAggregates->GetPropertyNames(); |
| 53 | |
| 54 | FdoPtr<FdoExpressionCollection> functionArgs = FdoExpressionCollection::Create(); |
| 55 | FdoPtr<FdoIdentifier> arg1 = FdoIdentifier::Create(L"GEOMETRY"); |
| 56 | functionArgs->Add(arg1); |
| 57 | FdoPtr<FdoFunction> computedExpr = FdoFunction::Create(L"MINX", functionArgs); |
| 58 | FdoPtr<FdoComputedIdentifier> computedId = FdoComputedIdentifier::Create(L"POLE_MINX", computedExpr); |
| 59 | idColl->Add(computedId); |
| 60 | |
| 61 | FdoPtr<FdoIDataReader> reader = selectAggregates->Execute (); |
| 62 | }}} |
| 63 | |