Berend, 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.
Best regards, Tamas 2010/1/21 Berend <b.veldk...@zonnet.nl> > > Hi, > > Is there a way to determine field types of a layer (string, number, ...), > using mapscript? > > Thanks, Berend > > ----- > Berend Veldkamp > http://www.grontmij.com http://www.grontmij.com > -- > View this message in context: > http://n2.nabble.com/Field-type-tp4435623p4435623.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users >
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users