Hi,

I think you'd better to use the OGR C# API  (ogr_csharp.dll)  to get all the
features of the layer, see the ogrinfo example for the details:
http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs

Best regards,

Tamas





2009/3/6 Murty Maganti <[email protected]>

>  Hi
>
>
>
> What is the best way to retrieve all records of a layer. Some options I see
> is
>
>
>
> 1.       calling queryByRect(mapObj.extents) – But this will not get all
> records if map extents are smaller than layer extents
>
> 2.       layer.whichShapes() – But this will apply filter set on the
> layer. I want to get all records.
>
> 3.       call queryByAttribute() and pass some expression that will select
> everything
>
>
>
> Or,  is there any more straight forward API to get all records.
>
>
>
> Thanks
>
> Murty
>
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to