Hot answers tagged

10

If it were a single feature to export you could use an action with canvas scope (i.e., interacting with the canvas), but since you may export several features, an action with layer scope fits better. Action's code: from qgis.utils import iface from qgis.core import QgsProject, QgsVectorFileWriter, QgsCoordinateReferenceSystem path = "/tmp/gpx/sample....


3

There is a python script "gpx_interpolate" on Github which will do interpolation between GPX track points. python3 gpx_interpolate.py -r 50 -d 3 INPUT.gpx This will output a new file INPUT_interpolated.gpx with 50m (-r 50) between points and along spline of degree 3 (-d 3). Options: Resolution -r: distance between interpolated points. Default is ...


3

You did not state from which area your file is, but your coordinates show that it is in the northwest of France. So what I did is looking for the exact location that the sample coordinates in your post refer to. Then I used this tool to see which Coordinate Reference Systems (CRS) are valid for this area: http://www.epsg-registry.org/ I zoomed in on the map ...


3

'Polygonize' the line first 'Negative buffer' this polygonized layer


2

If you add the GPS data to QGIS as a GPX file, it will load as a set of points with Z (elevation) values (PointZ). Using the Points to Path tool from Processing (quickest access using ctrl-K or cmd-K to search), select the added layer: The only challenge is getting the 'order' field correct (and it's not optional); many GPS units don't save a date/time to ...


2

I have made this web app if you want to try: https://www.geofoobar.com. It is a very simple GPS track overlay rendering tool. It will render video frames as numbered png files, which you can then use in your video editor to overlay your footage.


2

Thanks, everyone for the hints. After poring over the documentation here https://gdal.org/drivers/vector/gpx.html I realise that the .gpx file contains either points(track_points) or lines(tracks) geometry type. I fix the error by adding a SQL query, which explicitly import points only. ogr2ogr -update -append -f "PostgreSQL" PG:"host="...


2

If you look at the docs of leaflet-omnivore plugin, you'll se you can style layer with the help of so called custom GeoJSON layer, where you can apply styles to your GPX features/tracks. Since your GPX XML has no property to be used as the basis for color assignment, solution below assigns colors from a array of predefined colors. Each feature is at the ...


1

If possible. Touch the first icon of the route created from Graphhopper or BRouter. A menu with options will appear. Choose the floppy icon 💾. The route will be saved in Tracklogs. If the path does not show the first and last wp, you must look in the global configuration and activate this option.


1

GPX XML schema definition (see https://www.topografix.com/GPX/1/1/) states that <trk> element can have several members that describe it. Leaflet-omnivore plugin you are using to read GPX brings only two of them as feature properties to GeoJSON layer: <name> and <desc>. You are already using the first one to name your tracks, so you can use ...


1

pgRouting functions return an ordered list of nodes that describe the route. When you join the result with your network table to retrieve the geometry of the route, the linestring geometries are not necessarily in the correct direction. To bring them in the right direction, you need to compare the route's node ID's with the source and target value of the ...


1

How are you attempting to populate the Elev field? As per the documentation for the PointsOnRasterValueExtractor transformer, The interpolated values are added to a new list attribute, named _band{}.value and _band{}.palette{}.value, respectively. You will need to use an AttributeManager transformer to assign these values to the Elev field. Because, the ...


1

I use omnivore plugin and by default it gets a line. LineString is the only thing it can produce (see https://github.com/mapbox/togeojson#gpx-feature-support, omnivore is built upon togeojson), but no one prevents you from creating your own layer utilizing Custom Layers and L.geoJson onEachFeature option in the following way: var pointFeatures = []; var ...


1

Kind of late to answer this, but I have been working on a web tool that does exactly that: https://gotoes.org/strava/Combine_GPX_TCX_FIT_Files.php It can ingest GPX, TCX, and FIT files, and output the same. You get various options, including the ability to repair points (you can drag them along a map). Also, it can repair some types of corrupted FIT files ...


1

The question was asked years ago, so if you are searching for this recently and you are using or willing to use Python >= 3.5, you can use gpx_converter. Install using pip pip install gpx_converter then use it by calling the csv_to_gpx in your case: from gpx_converter import Converter Converter(input_file='your_input.csv').csv_to_gpx(lats_colname='Lat', ...


Only top voted, non community-wiki answers of a minimum length are eligible