MetOffice / qgis-plugin-edr

GNU General Public License v3.0
3 stars 1 forks source link

Import GPX with time, timesteps didn't appear in Trajectory dialogue #22

Closed MattWardle closed 2 months ago

MattWardle commented 2 months ago

GPX with time.gpx.txt

(had to rename it .txt to be uploaded to Github for some reason).

Created this GPX file on https://gpx.studio/ with time specification. Hoped that those times would be extracted in trajectory dialogue, but it wasn't. Is this a QGIS import GPX limitation?

JanCaha commented 2 months ago

This is a QGIS import limitation. The GPX format is notoriously problematic to get working as the user would like... But this issue is out the scope of this plugin.

saberraz commented 2 months ago

path.gpkg.txt @MattWardle could you try this please? (please remove .txt as the extension).

Notes: You need to use QGIS processing toolbox to set Z and M to the GPX.with.time — track_points and then convert points to path.

GPX is a multi-geometry layer and each piece of information is stored in a separate layer. By using the following processing tools in QGIS (in order):

You can convert it to a single layer to use in the query.

MattWardle commented 2 months ago

Hi Saber, yes that works thanks. I'll look into setting a macro. Draw GPX -> Macro -> Trajectory would be nice and easy for the user.

image

Gugym commented 2 months ago

Sounds like this issue can be closed @MattWardle ?

MattWardle commented 2 months ago

Yes, that's fine @Gugym

MattWardle commented 2 months ago

closed