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

Carlos Ruiz boolean10001 at yahoo.com
Thu Aug 3 08:13:35 PDT 2017


Swathi,
Have a look here PHP MapScript API — MapServer 7.0.6 documentation at the getShape method.

  
|  
|   |  
PHP MapScript API — MapServer 7.0.6 documentation
   |  |

  |

 
Cheers


      From: swathi v <swathiv.mca at gmail.com>
 To: mapserver-users at lists.osgeo.org 
 Sent: Thursday, August 3, 2017 5:17 AM
 Subject: [mapserver-users] Getting attributes from a shapefile from Mapscript/PhP (Mapserver)
   
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_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170803/2aa874a5/attachment.htm>


More information about the MapServer-users mailing list