[mapguide-users] OGR provider for personal geodatabse

Techswami techswami at hotmail.com
Thu Aug 14 14:04:56 EDT 2008


well you mean SN="-1" as SN is string i get the value -1
but the feature reader  is empty 
featReader is empy no value there is i use SDE FDO i get value but not with
OGR .

tony


zspitzer wrote:
> 
> how many records are being returned from the feature reader?
> 
> try setting  string SN = '-1' and see what comes out
> 
> On Thu, Aug 14, 2008 at 12:43 PM, Techswami <techswami at hotmail.com> wrote:
>>
>>
>>
>> selection does not work.
>> using the code bellow i dont get any value for variable "SN"
>> please let me know what i am doing wrong . I am using OGR
>>
>> if ((layer != null) && (layer.GetName() == "main"))
>>                    {
>>                        String layerClassName =
>> layer.GetFeatureClassName();
>>                        String selectString = l_oSel.GenerateFilter(layer,
>> layerClassName);
>>
>>                        String layerFeatureIdString =
>> layer.GetFeatureSourceId();
>>                        MgResourceIdentifier layerResId = new
>> MgResourceIdentifier(layerFeatureIdString);
>>
>>                        MgFeatureQueryOptions queryOptions = new
>> MgFeatureQueryOptions();
>>                        queryOptions.SetFilter(selectString);
>>                        featReader =
>> l_oFeatureSrvc.SelectFeatures(layerResId, layerClassName, queryOptions);
>>
>>
>>
>>
>>
>>                        string SN = null;
>>                        while (featReader.ReadNext())
>>                        {
>>                            SN = featReader.GetString("MATERIAL");
>>
>>                        }
>>
>>
>>
>>                        Response.Write("<div id='box_content_header'>" +
>> SN
>> + "</div><br />");
>>
>>                        featReader.Close();
>>                        featReader.Dispose();
>>
>>                    }
>>
>>
>>
>> tony
>>
>>
>> Techswami wrote:
>>>
>>> hi
>>> OGR provider works great for ESRI personal geodatabase(.mdbfile)  using
>>> OGR but if I  select any feature then the entire layer can not be viewed
>>> in the map. i tried latest patch also . it does the same thing.
>>> anyone has a same problem
>>>
>>> please help
>>>
>>> tony
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/OGR-provider-for-personal-geodatabse-tp18948977p18974886.html
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
> 
> 
> 
> -- 
> Zac Spitzer -
> http://zacster.blogspot.com (My Blog)
> +61 405 847 168
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/OGR-provider-for-personal-geodatabse-tp18948977p18986678.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list