[Qgis-developer] Field Date Shapefile

Martin Dobias wonder.sk at gmail.com
Wed Dec 2 05:27:50 EST 2009

On Tue, Dec 1, 2009 at 11:26 PM, motta.luiz at gmail.com
<motta.luiz at gmail.com> wrote:
> I am making plugin to write Field Date in Shapefile.
> The QGis (1.3) don´t permit create field Date.
> I am use GDAL/OGR to make this field (creating the Layer).
> I populate with QsField.addAttribute(id, QVariant), but when i open in QGis
> the value of Date field is NULL.
> The layer in QGis show field type Date, and i try change value, don´t have
> success, the value back to NULL.
> Can work format Date in QGIS ?

Hi Luiz,

currently in OGR provider there's support only for strings, integers
and doubles. However it wouldn't be much work to add date (or
date+time) support - so if you have some c++ knowledge you might want
to give it a try and prepare a patch...


More information about the Qgis-developer mailing list