[fdo-users] getting data using SHP provider

Dan Stoica dan.stoica at autodesk.com
Fri Feb 20 09:20:12 EST 2009


> sampleSelect->SetFeatureClassName(L"signs.shp");

Try without ".shp" suffix.

Dan.

-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of VJ
Sent: Friday, February 20, 2009 8:50 AM
To: fdo-users at lists.osgeo.org
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.html
Sent from the FDO Users mailing list archive at Nabble.com.

_______________________________________________
fdo-users mailing list
fdo-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-users


More information about the fdo-users mailing list