[mapserver-users] Field type

Tamas Szekeres szekerest at gmail.com
Thu Jan 21 16:24:58 EST 2010


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.veldkamp at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100121/da61fbeb/attachment-0001.html


More information about the mapserver-users mailing list