QGIS Unfinished unproofed Quantum GIS tutorial for viewing a map, reading a track, & editing that track

newgisuser

gO Newbie
Joined
Aug 10, 2018
Messages
4
Here's a step-by-step pictorial tutorial I wrote last night on how to use existing free United States Geological Survey map databases to view topographic maps, view tracks on those maps, & to edit routes - using only Windows canonical Quantum GIS freeware.
<http://www.bild.me/bild.php?file=7004647qgis50.jpg>
Please improve this tutorial so that everyone can do in minutes what took me far too many hours to figure out.
============================================================================
. Download the text GPX track for Mount Umunhum used in this walkthru
<https://ufile.io/4yk0h> <=== this is automatically deleted in 30 days
============================================================================
. Obtain and install Quantum GIS 3.2.1 freeware for Windows
<https://www.qgis.org/en/site/forusers/download.html>
NOTE: It wants to install into: "C:\Program Files\QGIS 3.2"
Instead, I installed it into: "C:\app\database\map\qgis"
============================================================================
. On Windows, start QGIS from the shortcut titled "QGIS Desktop 3.2.1"
[C:\app\database\map\qgis\bin\qgis-bin.exe]
<http://www.bild.me/bild.php?file=7153673qgis00.jpg>
. Check the version using QGIS:Help > Check QGIS Version
<http://www.bild.me/bild.php?file=9838659qgis01.jpg>
. Load in the USGS map database for Mount Umunhum
QGIS:Layer > Add Layer > Add WMS/WMTS Layer
<http://www.bild.me/bild.php?file=5567310qgis02.jpg>
<http://www.bild.me/bild.php?file=6441506qgis03.jpg>
. Data Source Manager | WMS/WMTS: Layers > New
<http://www.bild.me/bild.php?file=8375690qgis04.jpg>
. Create a New WMS/WMTS Connection: Connection details >
Name = US Topo
URL = https://basemap.nationalmap.gov/arcgis/services/USGSTopo/MapServer/WmsServer?
<http://www.bild.me/bild.php?file=4419440qgis05.jpg>
NOTE: Because "request=GetCapabilities&service=WMS" is the default,
this also works: https://viewer.nationalmap.gov/services
. Press [OK]
<http://www.bild.me/bild.php?file=5964258qgis06.jpg>
. Press [Connect]
<http://www.bild.me/bild.php?file=7185012qgis07.jpg>
. Select the lowest entry in the list, which is:
ID = 1, Name = 0, Title = Layers, Abstract = blank
. At the bottom of the form is a "Layer name" field that says "Layers"
<http://www.bild.me/bild.php?file=3747539qgis08.jpg>
. Change that "Layer name" field from "Layers" to "Topo"
<http://www.bild.me/bild.php?file=5911324qgis09.jpg>
. Click [Add]
<http://www.bild.me/bild.php?file=8988786qgis10.jpg>
. Close the "Data Source Manager | WMS/WMTS" form so you can see below it.
<http://www.bild.me/bild.php?file=2708931qgis11.jpg>
. Zoom into the San Francisco Bay Area of California on that world map
<http://www.bild.me/bild.php?file=4420818qgis12.jpg>
. In my case I have a GPX trackfile named C:\tmp\umunhum.gpx
. QGIS:Layer > Add Layer > Add Vector Layer > C:\tmp\umunhum.gpx
<http://www.bild.me/bild.php?file=7658659qgis13.jpg>
<http://www.bild.me/bild.php?file=2999436qgis14.jpg>
. Click [Add]
<http://www.bild.me/bild.php?file=6303169qgis15.jpg>
. I chose to hit "Select All" because I wasn't sure which detail matter
<http://www.bild.me/bild.php?file=9189292qgis16.jpg>
. Click [OK]
<http://www.bild.me/bild.php?file=8923746qgis17.jpg>
. Click [Close] and notice that the track shows up on the map
<http://www.bild.me/bild.php?file=3437513qgis18.jpg>
. On the QGIS left-side "Layers" pane, rightclick on "umunhum track_points"
<http://www.bild.me/bild.php?file=1208912qgis19.jpg>
. Select [Zoom to Layer] (which should zoom to the entire track)
<http://www.bild.me/bild.php?file=1780048qgis20.jpg>
. Zoom as desired to visualize portions of that track
<http://www.bild.me/bild.php?file=4268242qgis21.jpg>
============================================================================
. To edit the track to create a desired route...
. Right-click on "umunhum track_points" > Export > Save Features As
<http://www.bild.me/bild.php?file=4251110qgis22.jpg>
. In the "Save Vector Layer as..." form, notice Format = GeoPackage
<http://www.bild.me/bild.php?file=4718890qgis23.jpg>
. Click the "Format" pulldown arrow to view & select "ESRI shapefile"
<http://www.bild.me/bild.php?file=1670863qgis24.jpg>
. Select a "File Name" of "umunhum_route" & click [OK]
<http://www.bild.me/bild.php?file=5680734qgis25.jpg>
. To locate those results, simply run the Windows find-string command:
c:\> dir /s/a/l/on/b c:\* | findstr umunhum
c:\tmp\umunhum.gpx
c:\app\database\map\qgis\bin\umunhum_route.cpg
c:\app\database\map\qgis\bin\umunhum_route.dbf
c:\app\database\map\qgis\bin\umunhum_route.prj
c:\app\database\map\qgis\bin\umunhum_route.qpj
c:\app\database\map\qgis\bin\umunhum_route.shp <=== the shapefile
c:\app\database\map\qgis\bin\umunhum_route.shx
. Right-click on "umunhum track_points" > Toggle editing
<http://www.bild.me/bild.php?file=1509654qgis26.jpg>
. QGIS:Edit > Select > Select Features
<http://www.bild.me/bild.php?file=4812814qgis27.jpg>
. Draw a selection bounding box around the points you wish to delete
<http://www.bild.me/bild.php?file=5292862qgis28.jpg>
. QGIS:Edit > Cut Features
<http://www.bild.me/bild.php?file=7115319qgis29.jpg>
. Right-click on "umunhum track_points" > Toggle editing
<http://www.bild.me/bild.php?file=7697018qgis30.jpg>
. Click [Save] when asked:
Stop Editing: Do you want to save the changes to layer umunhum_route?
<http://www.bild.me/bild.php?file=8199406qgis31.jpg>
. Right-click on "umunhum track_points" > Export > Save Features As
ESRI shapefile, umunhum_route_edited, [OK]
<http://www.bild.me/bild.php?file=8434183qgis32.jpg>
============================================================================
. QGIS:View > Zoom to layer
<http://www.bild.me/bild.php?file=2357420qgis33.jpg>
. QGIS:project > Import/Export > Export Map to PDF
<http://www.bild.me/bild.php?file=7951952qgis34.jpg>
. In the "Save Map as PDF" form, click the [Save] button
<http://www.bild.me/bild.php?file=2918023qgis35.jpg>
. And give it a name, such as "c:\tmp\umunhum_hike.pdf" which you can
open in any PDF viewer
<http://www.bild.me/bild.php?file=9152603qgis36.jpg>
============================================================================
. QGIS:project > Save > umunhum_project.qgz
<http://www.bild.me/bild.php?file=6423196qgis37.jpg>
. QGIS:project > Exit QGIS
<http://www.bild.me/bild.php?file=4477916qgis38.jpg>
. When you re-open QGIS, you'll see "umunhum_project" in "Recent Projects"
<http://www.bild.me/bild.php?file=5984185qgis39.jpg>
. Doubleclicking on that "umunhum_project" brings you back where you were
<http://www.bild.me/bild.php?file=5473937qgis40.jpg>
. Right-click on "umunhum track_points" > Export > Save Features As
Format = GPS eXchange Format [GPX]
<http://www.bild.me/bild.php?file=7926860qgis41.jpg>
. Select a "File Name" of "umunhum_edited" & click [OK]
<http://www.bild.me/bild.php?file=2985650qgis42.jpg>
. In my case, that gave an error message of:
"Export to vector file failed.
Error: Creation of field track_fid failed (OGR error: Field of name
'track_fid' is not supported in GPX schema. Use GPX_USE_EXTENSIONS
creation option to allow use of the <extensions> element.)"
<http://www.bild.me/bild.php?file=9028313qgis43.jpg>
. Right-click on "umunhum track_points" > Export > Save Features As
Format = GPS eXchange Format [GPX]
In the "Save Vector Layer as..." form, notice the "Datasource Options"
pulldown section, which has "GPX_USE_EXTENSTIONS" set to "NO"
Set "GPX_USE_EXTENSTIONS" set to "YES" & click [OK]
. Select a "File Name" of "umunhum_edited" & click [OK]
<http://www.bild.me/bild.php?file=3859822qgis44.jpg>
. If the file exists, it will ask to overwrite (click [Yes])
. Then it will pop up a "Select Vector Layers to Add.." selection form
<http://www.bild.me/bild.php?file=2104715qgis45.jpg>
. Click [Select All] and then [OK] to create the file "umunhum_edited.gpx"
<http://www.bild.me/bild.php?file=4263537qgis46.jpg>
. QGIS:project > Exit QGIS
****************************************************************************
Please improve this tutorial so that everyone can do in minutes what took me far too many hours to figure out.
 

Philip

geospatial Online
Staff Member
gO Business
Business Rep
Founding Member
Joined
Jan 26, 2018
Messages
283
This is great information! It may take me a few days, but I'm hoping to look at it.
 
< Previous | Next >

Top