[Qgis-user] Saving GPX as SHP looses the time part of the (date)time field

Alexandre Neto senhor.neto at gmail.com
Wed Feb 5 03:42:26 PST 2014


Hello Jukka,


On Wed, Feb 5, 2014 at 9:16 AM, Jukka Rahkonen <jukka.rahkonen at mmmtike.fi>wrote:
>
>
> I believe that this is not an accurate description: "only the date is saved
> as a string" but it is rather "only the date is saved as 'date'"
>

You are right the field with the name "time" (of type QDateTime) when
converted into shapefile is saved as a QDate field.


> I am not sure how much it is a bug because the dbf format that shapefile is
> using for storing the attributes simply does not support DateTime but only
> Date.


Ah ok, instead of a bug this is more a Shapefile limitation. And in this
case I agree that using Qdate instead of a string, might very well be the
best approach.


> But if you do not necessarily need just shapefiles a
> better alternative would be to convert data into Spatialite.
>

I did solve my problem, passing the data directly to Postgis using the
DBManager.

Thank you for your reply.

Alexandre Neto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140205/c4525a7f/attachment.html>


More information about the Qgis-user mailing list