<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1501772479870_4167">Swathi,</div><div id="yui_3_16_0_ym19_1_1501772479870_4213"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1501772479870_4157">Have a look here <a href="http://mapserver.org/mapscript/php/phpmapscript.html#layerobj" class="enhancr2_d34a45ea-d0c1-50a9-abb0-ed5fc6198d64" id="yui_3_16_0_ym19_1_1501772479870_4156">PHP MapScript API — MapServer 7.0.6 documentation</a> at the getShape method.<br></div><div id="yui_3_16_0_ym19_1_1501772479870_4214"><br></div><div id="enhancr2_d34a45ea-d0c1-50a9-abb0-ed5fc6198d64" class="yahoo-link-enhancr-card yahoo-link-enhancr-not-allow-cover ymail-preserve-class ymail-preserve-style" style="max-width:400px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;" data-url="http://mapserver.org/mapscript/php/phpmapscript.html#layerobj" data-type="yenhancr" data-category="article" data-embed-url="" data-size="medium" dir="ltr" contenteditable="false"> <a href="http://mapserver.org/mapscript/php/phpmapscript.html#layerobj" style="text-decoration:none !important; color: #000 !important" class="yahoo-enhancr-cardlink" target="_blank" rel="noreferrer" id="yui_3_16_0_ym19_1_1501772479870_4231"> <table class="card-wrapper yahoo-compose-table-card" style="max-width:400px;" id="yui_3_16_0_ym19_1_1501772479870_4230" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1501772479870_4229"><tr id="yui_3_16_0_ym19_1_1501772479870_4228"> <td id="yui_3_16_0_ym19_1_1501772479870_4227" width="400"> <table class="card-info yahoo-compose-table-card" style="background:#fff;max-width:400px;border:1px solid #e0e4e9;border-bottom:3px solid #000000;" id="yui_3_16_0_ym19_1_1501772479870_4226" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1501772479870_4225"><tr id="yui_3_16_0_ym19_1_1501772479870_4224"> <td style="vertical-align:top;padding:16px 0 16px 12px;"> </td> <td style="vertical-align:middle;padding:16px 12px;width:99%;" id="yui_3_16_0_ym19_1_1501772479870_4223"> <h2 class="card-title" style="margin:0 0 4px 0;font-size:16px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;word-break:break-word;" id="yui_3_16_0_ym19_1_1501772479870_4222">PHP MapScript API — MapServer 7.0.6 documentation</h2> <div class="card-description" style="font-size:11px;line-height:15px;color:#999;word-break:break-word;"></div> </td> <td class="card-share-container"></td> </tr> </tbody></table> </td> </tr> </tbody></table> </a></div><div id="yui_3_16_0_ym19_1_1501772479870_4166"><br></div><div id="yui_3_16_0_ym19_1_1501772479870_4262"><span>Cheers</span></div><br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1501772479870_4090" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1501772479870_4089"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1501772479870_4088"> <div dir="ltr" id="yui_3_16_0_ym19_1_1501772479870_4151"> <font id="yui_3_16_0_ym19_1_1501772479870_4150" size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> swathi v <swathiv.mca@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> mapserver-users@lists.osgeo.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, August 3, 2017 5:17 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [mapserver-users] Getting attributes from a shapefile from Mapscript/PhP (Mapserver)<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1501772479870_4087"><br><div id="yiv5080315311"><div dir="ltr" id="yui_3_16_0_ym19_1_1501772479870_4086"><div id="yui_3_16_0_ym19_1_1501772479870_4085"><div id="yui_3_16_0_ym19_1_1501772479870_4084"><div id="yui_3_16_0_ym19_1_1501772479870_4083">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="yiv5080315311gmail_signature">- swathi.m</div>
</div></div></div></div></div></div>_______________________________________________<br>mapserver-users mailing list<br><a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br><br></div> </div> </div> </div></div></body></html>