[mapserver-users] Getting attributes from a shapefile from Mapscript/PhP (Mapserver)

swathi v swathiv.mca at gmail.com
Thu Aug 10 01:33:39 PDT 2017


Hi,

Thank you. Now, I am able to retrieve the layer attributes using the
getItems() method.

Now I want to retrieve the values under each attribute for that layer.

For example, want to retrieve the values under the attribute, Name of a
layer by name "states".

Thanks & Regards,
- swathi.m

On Thu, Aug 3, 2017 at 3:47 PM, swathi v <swathiv.mca at gmail.com> wrote:

> Hi,
>
> I have a shapefile/vector file as Layer in the .map file.
>
> Now, I want to get all the attributes of that shapefile in my
> Mapscript/PhP and display them on the browser.
>
> For example, a shapefile has the attributes as Name, Type, Width. Now I
> want to get these attributes from that layer dynamically from my
> PhP/Mapscript code.
>
> So please let me know how to get attributes from a shapefile from
> Mapscript/PhP.
>
>
> Thanks & Regards,
> - swathi.m
>



-- 
- swathi.m
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170810/bacfd0f1/attachment.html>


More information about the mapserver-users mailing list