[mapguide-users] How to select expression with the FDO provider for SDF

Bruno Scott bscott at geomapgis.com
Tue Feb 6 05:49:43 EST 2007


I'm trying to select expression using the FDO provider for SDF but it always
return me errors


This is my sample code

  FdoPtr<FdoISelect>        sampleSelect;
  FdoPtr<FdoIFeatureReader> sampleFeatureReader;
  FdoPtr<FdoIdentifier> queryPropertyName;

  sampleSelect = (FdoISelect
*)m_connection->CreateCommand(FdoCommandType_Select);
  sampleSelect->SetFeatureClassName("Parcels");

  FdoPtr<FdoIdentifierCollection> propertyCollection = 
sampleSelect->GetPropertyNames();
  queryPropertyName = FdoIdentifier::Create("AREA * LAND_VALUE");
  propertyCollection->Add(queryPropertyName);
  sampleFeatureReader = sampleSelect->Execute();

What am i doing wrong?

Thanks
Bruno Scott
-- 
View this message in context: http://www.nabble.com/How-to-select-expression-with-the-FDO-provider-for-SDF-tf3179976s16610.html#a8823998
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list