Bulk importing of GPX GPS tracks into QGIS either by interface or Python

623 views
Skip to first unread message

David Crisp

unread,
Feb 7, 2014, 5:41:28 PM2/7/14
to australian-qg...@googlegroups.com
I have 200 GPX tracks I have created over the last year or so that I would like to bulk load into a layer(or layers) in QGIS.    Currently the QGIS GPS plug in only appears to allow me to import one at a time.

A web search doesn't seem to show any native ways of doing this at this point in time.

Is there a way of Bulk importing GPX tracks,  to either a single layer (ALL GPX tracks go on the one layer) OR to individual layers (each GPX gets its own layer).  

I went looking for python examples of how to do this with QGIS and again there doesn't seem to be easily searchable examples. (That is, they may be out there but I found none with my queries)

I'm not in a position to take the GPS plug in and hack it apart at this point in time.

Regards,
David Crisp

Thomas McAdam

unread,
Feb 7, 2014, 5:49:06 PM2/7/14
to australian-qg...@googlegroups.com
Hi David

You can open GPX files without the GPS plugin. So in theory you can select all your GPX files in Windows Explorer and drag and drop them into QGIS. It may not be very happy about the large number of files, and I suspect you may need to select Waypoints,Tacks, Routes etc. for each file. But its worth a shot.

All the best
Tom 

Johanna Botman

unread,
Feb 9, 2014, 10:51:22 PM2/9/14
to australian-qg...@googlegroups.com
The ability to drag an drop files from Windows Explorer to the QGIS window is one of my favourite 'finds' in QGIS.
 
QGIS is happy to import a huge range of file types this way. But you are restricted by the total number of layers you can have open at one time. I think it's about 100.

James Spath

unread,
Feb 9, 2014, 11:03:04 PM2/9/14
to australian-qg...@googlegroups.com

Not QGIS but could you use ogr2ogr and write them all to one shapefile?

 

http://www.gdal.org/ogr/drv_gpx.html

 

You could also give this a shot http://sourceforge.net/projects/gpxmerge/

Also gpsBabel can do it http://www.gpsbabel.org/htmldoc-development/Advanced_Usage.html

 

Cheers

 

James Spath
Business Systems Analyst - GIS
p: (08) 9781 0378       m: 0437 052 470
James...@busselton.wa.gov.au

City of Busselton
Locked Bag 1 - 2 Southern Drive, Busselton WA 6280
p: (08) 9781 0444       f: (08) 9752 4958
www.busselton.wa.gov.au

"Events Capital of Regional WA"

--
You received this message because you are subscribed to the Google Groups "Australian and New Zealand QGIS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to australian-qgis-use...@googlegroups.com.
To post to this group, send an email to australian-qg...@googlegroups.com.
Visit this group at http://groups.google.com/group/australian-qgis-user-group.
To view this discussion on the web, visit https://groups.google.com/d/msgid/australian-qgis-user-group/CAG3JqCu5XLM%3D1A7TEftghS%3DKXuGGY-iHQRhUu_gf7jZLCx1URw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Attention:
This email and any attachments may contain confidential or legally privileged information. If you are not the intended recipient, you may not disclose or use the information contained in it. If you have received this message in error, please notify us immediately, and delete it from your system.

While every care is taken, it is recommended that you scan the attachments for viruses.

Reply all
Reply to author
Forward
0 new messages