[fdo-users] getting data using SHP provider
VJ
jorg.verstraete at telin.ugent.be
Fri Feb 20 08:49:32 EST 2009
Hello,
I'm trying to select data using the SHP provider (version 3.4), but get the
exception "Fdo Class Identifiers that contain scopes are not supported. "
The same code works for the PostGIS provider; but I can't seem to find just
what it is I'm doing wrong: I seem to be stay within the capabilities of the
SHP provider...
This is the code:
-
FdoPtr<FdoISelect> sampleSelect = (FdoISelect *)
fdoConnection->CreateCommand(FdoCommandType_Select);
sampleSelect->SetFeatureClassName(L"signs.shp");
FdoPtr<FdoIdentifier> queryPropertyName;
queryPropertyName = FdoIdentifier::Create(L"gid");
FdoPtr<FdoDataValue> queryPropertyValue;
queryPropertyValue = FdoDataValue::Create(2);
FdoPtr<FdoFilter> filter;
filter =
FdoComparisonCondition::Create(queryPropertyName,FdoComparisonOperations_EqualTo,
queryPropertyValue);
sampleSelect->SetFilter(filter);
FdoPtr<FdoIFeatureReader> sampleSelect->Execute(); // throws the exception
-
Thanks!
--
View this message in context: http://n2.nabble.com/getting-data-using-SHP-provider-tp2358940p2358940.html
Sent from the FDO Users mailing list archive at Nabble.com.
More information about the fdo-users
mailing list