[mapserver-users] mapscript question

Tamas Szekeres szekerest at gmail.com
Sat Mar 7 07:11:00 PST 2009


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 <MMaganti at oriongis.com>

>  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
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090307/c799a4f5/attachment.htm>


More information about the MapServer-users mailing list