[mapguide-users] OGR provider for personal geodatabse

Zac Spitzer zac.spitzer at gmail.com
Wed Aug 13 23:04:30 EDT 2008


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


More information about the mapguide-users mailing list