![]()
Raspberry Pi OS with Python3 (see installation instructions below) Raspberry Pi (tested with Pi Zero 1.3) and a MicroSD card (I’m using an 8GB SanDisk Ultra Class 10 UHS-1, which has enough space after the OS for 240 days of 5-second-interval data). There’s no reason for a logger to have to worry about the nuances of GPS communication itself. This program relies on gpsd to interact with the GPS itself, as it’s very mature and stable software, exposes a simple JSON-based socket interface, and also has decent Python bindings. Data is written in gpsd’s native format, but a conversion tool is provided. It writes the most recent position data from gpsd to disk at a user-defined interval, flushes IO after each write (so that it’s safe to just pull the power on the Pi), and uses two LEDs to indicate status while in the field. The goal is to package all of this together into a “small” (but not necessarily lightweight, based on the components) package that I can put in the outside pocket of my hiking pack, and record an accurate and detailed GPS track of my hikes. The hardware decision was mainly based on what I had lying around: a Raspberry Pi Zero, a 10,000mAh external battery pack for my cell phone, and a USB GPS (well, I thought I had one, and got far enough into the project when I decided it was missing for good that I bought another). This is a trivial (and not really “supported”) project of mine to couple a Raspberry Pi Zero with a USB GPS receiver and a battery pack to GPS track my hikes. (Settings -> Options, find a check box in "Rendering" tab.Raspberry Pi Zero gpsd logger with status LEDs.Ī longer description of the motivation behind this and the specific hardware that I used is available on my blog: DIY Raspberry Pi Zero GPS Track Logger. Set "Rendering behavior" to use multiple CPU cores.Click "Classify" button to assign random colors. Add a SpatiaLite layer with connection to just created mygpstrack.db and select "tracklines" table.Ĭhange layer style to "Categorized" with "Random colors" based on "Column" "trkseg_id%100".(right click "OpenStreetMap" in the Layers panel, choose "Properties", and in "Style" tab, set "Grayscale" to "By lightness".) Ensure "Project CRS" is set to EPSG:3857, which is so called Web Mercator, and enable "on the fly" CRS transformation.Add a WMS layer, set WMS URL to, and pick "mapnik" layer.I don't think any explanation is needed.Īfter installing, start QGIS Desktop. QGIS version I use is 2.18.22, but 2.18 or newer will be fine for its good support of WMS.ĭownloading and installing QGIS are pretty straight forward. I use QGIS not in virtual machine but on bare metal Windows PC just for better graphical performance, though I have not done any serious benchmark. The technical background can be found here. Note that there are two formats of SpatiaLite binary: "shared library" and "dynamic link library" (loadable module), and you need the latter. #Gps io installation find gpsbabel installSpatiaLite installationįirst, you have to install SpatiaLite. #Gps io installation find gpsbabel updateUPDATE (): Facing retirement of Python2, I wrote Xubuntu20.04 version of the installation process. Since I only use command lines, any variant of Ubuntu 16.04 will work as same. Following steps are confirmed on clean install of Xubuntu 16.04 (light-weight variant of Ubuntu) on VirtualBox. ![]() It is a Python script, but it requires some efforts to run. The second step is done with gpx2spatialite. ![]() ![]() I also wrote small python scripts to merge GPX files and to sort tracks. Which has very convenient "Filter Local Inconsistency" function. The first step can be done with any tool. In terms of hardware, PC specifications are: CPUĪll of these specifications are not special, though may not be low-end, I guess. #Gps io installation find gpsbabel how toIn this article, I will describe how to make it. Watch the video to see how smoothly it moves keeping all the details of tracks. #Gps io installation find gpsbabel softwareThese numbers have been challenging for browsing all log at once on a map.īut thanks to great improvements in computer hardware and software since then, I manage to do it on common desktop PC and open source software. ![]() There are several millions of track points. The total size of the log is about 1GB in more than 1,000 NMEA files. I recorded GPS log almost everyday over 2 years from 2005 to 2007. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |