Tag Info

New answers tagged

1

Apparently there seems to be no such source... the closest I could get to is using textual sources describing the time zone changes in detail for different admin areas and then composing the shapefiles myself from available shapefiles of the Russian admin areas, e.g. with QGIS or ArcMap. The best text sources describing the changes that I could find are: ...


1

Shapefiles utilize dBase-III+ date values ('D' type), which are restricted to day resolution. If you need second resolution, you'll need to use a personal, file, or enterprise geodatabase. It would probably be best to round the fractional seconds to the nearest second, since Desktop's time structure (struct tm) doesn't support subsecond precision at this ...


0

Have you tried altering the precision in the time field to only allow "ss.s" instead of what it has there: "ss.sss"?


0

Current GeoServer (2015) supports defining an optional "End Attribute" for time in the Edit Layer/Dimensions tab. Ref: http://docs.geoserver.org/latest/en/user/webadmin/data/layers.html#webadmin-layers-edit-dimensions


3

It's possible without using a python function, with a little bit of hacks: minute( age( todatetime('2000-01-01 10:18:00'), todatetime(2000-01-01 10:16:30') ) ) will return "1.5". To break it down, "age" returns the difference between two datetimes as an interval type. This needs to be wrapped in the "minute" function to extract the length of this ...


4

If you're using 2.8 or later, you can use the Python function builder. This code will do the calculation. I don't think you need to use Qt objects for this. from qgis.core import * from qgis.gui import * from datetime import datetime import time @qgsfunction(args=2, group='Python') def timedifference(values,feature,parent): ''' call this function ...



Top 50 recent answers are included