<div dir="ltr"><div><div><div>Hi,<br><br></div>Thank you. Now, I am able to retrieve the layer attributes using the getItems() method.<br><br></div>Now I want to retrieve the values under each attribute for that layer.<br><br></div>For example, want to retrieve the values under the attribute, Name of a layer by name "states".<br><div><br><div>Thanks & Regards, <br></div><div class="gmail-m_4017168431355418168gmail_signature">- swathi.m</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 3, 2017 at 3:47 PM, swathi v <span dir="ltr"><<a href="mailto:swathiv.mca@gmail.com" target="_blank">swathiv.mca@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br></div>I have a shapefile/vector file as Layer in the .map file. <br><br></div>Now, I want to get all the attributes of that shapefile in my Mapscript/PhP and display them on the browser.<br><br></div>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.<br><div><div><div><br clear="all"><div>So please let me know how to get attributes from a shapefile from Mapscript/PhP.</div><div><br></div><div><br></div><div>Thanks & Regards, <br></div><div><div class="m_4017168431355418168gmail_signature">- swathi.m</div>
</div></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">- swathi.m</div>
</div>