> sampleSelect->SetFeatureClassName(L"signs.shp");
Try without ".shp" suffix.
Dan.
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]] On Behalf Of VJ
Sent: Friday, February 20, 2009 8:50 AM
To:
[hidden email]
Subject: [fdo-users] getting data using SHP provider
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.htmlSent from the FDO Users mailing list archive at Nabble.com.
_______________________________________________
fdo-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-users_______________________________________________
fdo-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-users