[Qgis-developer] python bindings,
shapefile creation : attributes
kimaidou
michael.douchin at laposte.net
Mon Nov 26 09:17:11 EST 2007
Fields of type Date and Time are not yet supported (although it
shouldn't be a lot of work to add support for them).
But if you store date/time in some reasonable format (as a string or a
number) - e.g. 20061123 for today, you shouldn't have problems to do
some sorting.
--> Ok for the date to string translation. It is a bit harder for the time
though, as the end-user won't understand time given in double format. So I
will wait for these format to be supported.
You can either specify length in QgsField constructor (it's one of the
further optional parameters) or use setLength() function. See
documentation of QgsField class:
http://svn.qgis.org/api_doc/html/classQgsField.html
--> Thanks for this link
Kimaidou
--
View this message in context: http://www.nabble.com/python-bindings%2C-shapefile-creation-%3A-attributes-tf4860668.html#a13949912
Sent from the qgis-developer mailing list archive at Nabble.com.
More information about the Qgis-developer
mailing list