Hi,<br><br>I think you&#39;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:<br><a href="http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs">http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs</a><br>
<br>Best regards,<br><br>Tamas<br><br><br><br><br><br><div class="gmail_quote">2009/3/6 Murty Maganti <span dir="ltr">&lt;<a href="mailto:MMaganti@oriongis.com">MMaganti@oriongis.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p>Hi</p>

<p> </p>

<p>What is the best way to retrieve all records of a layer. Some
options I see is</p>

<p> </p>

<p style="text-indent: -0.25in;"><span>1.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">      
</span></span><span dir="ltr"></span>calling
queryByRect(mapObj.extents) – But this will not get all records if map
extents are smaller than layer extents</p>

<p style="text-indent: -0.25in;"><span>2.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">      
</span></span><span dir="ltr"></span>layer.whichShapes() – But this
will apply filter set on the layer. I want to get all records. </p>

<p style="text-indent: -0.25in;"><span>3.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">      
</span></span><span dir="ltr"></span>call queryByAttribute() and pass
some expression that will select everything </p>

<p> </p>

<p>Or,  is there any more straight forward API to get all
records.</p>

<p> </p>

<p>Thanks</p>

<p>Murty</p>

</div>

</div>


<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>