[mapguide-users] Fdo 3.3.1 Feature reader problem

DJBN donnacha.nelan at 1spatial.com
Mon Aug 10 07:29:26 EDT 2009


Hi there,

I encountered the same problem and tracked the issue down to NOT having
included the geometry property when defining the MgFeatureQueryOptions

i.e.

MgFeatureQueryOptions filterOptions = new MgFeatureQueryOptions();
filterOptions.AddFeatureProperty(KEY_PROPERTY_NAME);
filterOptions.SetFilter(KEY_PROPERTY_NAME + " >= 0");
filterOptions.AddFeatureProperty("GEOMETRY"); // MUST INCLUDE GEOMETRY
FIELDNAME IN FILTER.

The call to the feature reader 
featureReader.GetGeometry("GEOMETRY"); 
then worked.

Donnacha




Gyufi wrote:
> 
> Hi padmini!
> 
> Please try like this:
> 
>  Dim byteReader As MgByteReader =featureReader.GetGeometry(
> layer.GetFeatureGeometryName() )
> 
> Gyufi
> 
> 
> padmini godavarthi wrote:
>> 
>> Hi, 
>> 
>> This problem might be with fdo3.3.1. 
>> previously it works fine for fdo3.3.0 oracle providers 
>> 
>> 
>>    Dim byteReader As MgByteReader =featureReader.GetGeometry("GEOMETRY") 
>> 
>> 
>> but i have replaced  this  fdo3.3.0 with fdo 3.3.1 oracle providers( 3
>> dlls ) for IN operator in setfilter . 
>> 
>> while executing above statement i got an error  that 
>> 
>> "Specified object was not found" 
>> 
>> 
>> Can any one plz tell me the solution??????? 
>> 
>> 
>> Regards, 
>> padmini. 
>> 
>> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/Fdo-3.3.1-Feature-reader-problem-tp3023820p3416653.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list