Berend,<br><br>The fields are represented as strings in MapServer so the field types cannot normally be obtained in MapScript. In case of a shapefile layer you could probably create a shapefileObj and use getDBF to obtain a DBInfo object and use DBInfo.getFieldType to retrieve the type of a specific field. However this option is not widely used and you might want to use the GDAL/OGR bindings instead.<br>
<br><br>Best regards,<br><br>Tamas<br><br><br><div class="gmail_quote">2010/1/21 Berend <span dir="ltr">&lt;<a href="mailto:b.veldkamp@zonnet.nl">b.veldkamp@zonnet.nl</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
<br>
Is there a way to determine field types of a layer (string, number, ...),<br>
using mapscript?<br>
<br>
Thanks, Berend<br>
<br>
-----<br>
Berend Veldkamp<br>
<a href="http://www.grontmij.com" target="_blank">http://www.grontmij.com</a> <a href="http://www.grontmij.com" target="_blank">http://www.grontmij.com</a><br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Field-type-tp4435623p4435623.html" target="_blank">http://n2.nabble.com/Field-type-tp4435623p4435623.html</a><br>
Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</font></blockquote></div><br>