In <news:p9f4gj$vbd$
1...@gioia.aioe.org>, Bob J Jones
<bobj...@startMail.com> wrote:
> I'll let you know more when I find out more.
This is my first attempt today at getting offline freeware USGS map apps to
work on Windows, so this is just the rough draft tutorial that others can
follow to:
a. Load USGS topographic maps online & stitch them & calibrate them
b. Create and import and export tracks and routes on that calibrated map
c. Doing everything offline, using freeware, on a Windows computer
Main URLS:
1. OziExplorer Trial (Map & Track & Elevation Profile Viewer):
http://www.oziexplorer.com/
http://www.oziexplorer3.com/eng/downloads/395/oziexp_setup.exe
2. OziExplorer conversion of map PDF to OziExplorer compatible TIF files:
http://www.oziexplorer3.com/utils/image_convert.zip.
3. GPSbabel (track conversion):
https://www.gpsbabel.org/download.html
4. USGS topo maps:
https://viewer.nationalmap.gov/launch/
============================================================================
Summary of key steps:
a. Download and install OziExplorer Trial version software.
b. Download and install OziExplorer PDF-to-TIF Conversion software.
c. Download and install GPSbabel track-conversion software.
d. Download extremely detailed USGS PDF maps of the desired quadrangles.
--------
e. Convert the USGS geocalibrated PDF maps to geocalibrated TIF files.
f. Stitch contiguous TIF maps together to create a composite map (if
desired):
g. Load and calibrate the USGS topographic map for your area of interest.
--------
h. Convert your mobile-device tracks into OziExplorer "plt" tracks.
i. Load and display the mobile-phone track overlayed on that USGS map.
j. Display the elevation/speed profile by distance/time.
--------
k. Create routes & save as GPX tracks for import into a mobile device
l. Test results online (just as a doublecheck of the accuracy)
============================================================================
A. Download and install OziExplorer Trial version software.
1. Download oziexp_setup.exe version 3.95 from
http://www.oziexplorer.com/
2. Doubleclick oziexp_setup.exe and follow installation prompts.
3. Move the resulting desktop OziExplorer.lnk & OziExplorer Trial.lnk
shortcuts into your start menu.
4. Start the trial version (OziExpTrial.exe).
The installer defaults to c:\OziExplorer
I put it in C:\app\database\oziexplorer
I did not check any additional language files.
It will create 2 desktop icons, one is "shareware" & the other "trial".
OziExplorerTrial.lnk
Target: C:\app\database\oziexplorer\OziExpTrial.exe
OziExplorer.lnk
Target: C:\app\database\oziexplorer\OziExp.exe
============================================================================
B. Download and install OziExplorer PDF-to-TIF Conversion software.
1. Download the OziExplorer PDF-to-TIFF converter:
http://www.oziexplorer3.com/utils/image_convert.zip.
2. Extract this zip file (it will create .\image_convert\).
3. Move the "image_convert" directory to your previously installed
oziExplorer hierarchy.
4. Put a shorcut in your start menu pointing to
./image_convert/ImageConvertOzi.exe
I moved the image_convert directory to:
C:\app\database\oziexplorer\image_convert
ImageConvertOzi.lnk
Target: C:\app\database\oziexplorer\image_convert\ImageConvertOzi.exe
============================================================================
C. Download and install GPSbabel track-conversion software.
1. Download and install GPSbabel freeware to convert track formats
https://www.gpsbabel.org/download.html
2. It wants to go in C:\Program Files (x86)\GPSBabel
I put it in C:\app\database\gpsbabel
You can check the box to create a desktop icon.
GPSBabel.lnk
Target: C:\app\database\gpsbabel\gpsbabelfe.exe
============================================================================
D. Download USGS PDF maps of the desired quadrangles.
1. Create a directory to store your downloaded USGS topographic maps.
mkdir C:\app\database\usgs_map\
2. Go to the USGS map site
https://viewer.nationalmap.gov/launch/
3. At top left, press "Download Maps".
4. That will take you to this view of the United States
https://viewer.nationalmap.gov/basic/?basemap=b1&category=histtopo,ustopo&title=Map%20View
5. Note the right pane contains a map of the United States.
6. Left mouse drag your desired location to the center of that map.
7. Click the + (zoom) 7 times (re-center as needed) to see quadrangles.
8. It's simplest if you zoom until you have only 1 or 2 quadrangles in
view.
9. In the left sidebar, click the blue "Find Products" button.
10. In the left sidebar "US Topo Available Products" section, click
"results".
11. In the left sidebar, scroll until you see the desired quadrangle.
12. Once you find the desired quadrangle, right click its "Download"
button.
13. Choose to "Save Link As" so as to download the ~30MB PDF file.
14. Save the ~30MB PDF as the name of the quadrangle.pdf
Read this document for instructions on how to read the USGS map margins:
http://education.usgs.gov/lessons/mapmargin.pdf (details)
http://education.usgs.gov/lessons/map_margins_2p.pdf (summary)
============================================================================
E. Convert the USGS geocalibrated PDF maps to geocalibrated TIF files.
1. You must put your PDFs in a folder all by themselves for the next steps!
c:\tmp\usgs_01.pdf
c:\tmp\usgs_02.pdf
That folder can't have a space (e.g., this will fail "New Folder").
So stick with short folder names.
2. Start ./image_convert/ImageConvertOzi.exe & point it to that map folder:
c:\tmp\
or
C:\app\database\usgs_map\
3. Wait (minutes) for the converter to actually finish!
Do not do anything else as the converter may pop to the fore.
There will be a cmd window for each PDF file converted.
That command window may give the error message:
ERROR 1: Could not find a OCG with Ref (86:0)
ERROR 1: Couldn't find group for reference to set OFF.
(You can ignore those errors, apparently.)
Only when the successive cmd windows disappear, is the conversion done!
When the cmd windows disappear, close the original conversion window.
4. You'll notice the command that was run was the following syntax:
c:\> .\gdal_translate -of GTiff -co COMPRESS=LZW -co "TFW=YES"
"C:\tmp\usgs_01.pdf" "C:\tmp\ozi_converted\usgs_01.tif"
c:\> .\gdal_translate -of GTiff -co COMPRESS=LZW -co "TFW=YES"
"C:\tmp\usgs_02.pdf" "C:\tmp\ozi_converted\usgs_02.tif"
5. You now have a compatible TIF file for each of your USGS topo maps.
C:\tmp\ozi_converted\usgs_01.tif
C:\tmp\ozi_converted\usgs_02.tif
or
C:\app\database\usgs_map\ozi_converted\filename.tfw (contains
coordinates)
C:\app\database\usgs_map\ozi_converted\filename.tif (the USGS topo map)
============================================================================
F. If necessary, stitch multiple TIF maps together for a composite map:
Note that you can leave the outside margins with white space.
It's only the edges that touch each other that must be cropped.
In my case, I downloaded four aligned quadrangles (two by two).
1. Test that a TIF file opens in your editor of choice.
2. If desired, make a copy of each TIF quadrangle, e.g.,
c:\> copy usgs_01.tif usgs_01_cropped.tif
c:\> copy usgs_02.tif usgs_02_cropped.tif
3. I used Irfanview to crop but you can use any editor you like.
4. Open each file in your editor & crop to the 4 corners & save.
usgs_01_cropped.tif
usgs_02_cropped.tif
I created bot_left.tif & bot_right.tif & top_left.tif & top_right.tif.
Then I created a horizontal panorama of the top.tif and bot.tif.
Then I created the final vertical panorama of usgsmap.tif.
5. Slap the files together using any photo editor you like:
Irfanview: File > Open > usgs_01_cropped.tif
Irfanview: Image > Create Panorama Image > Horizontal (if desired)
Irfanview: Image > Create Panorama Image > Add current file
Irfanview: Image > Create Panorama Image > Add images
Irfanview: Image > Create Panorama Image > Create image
6. Save the file noting that it is a composite tiled map.
usgs_01-02_cropped.tif
============================================================================
Unfortunately OziExplorer expects degrees decimal minutes (DdM).
DMS = "degrees minutes seconds"; DdM = "degrees decimal minutes"
These are equivalent latitude & longitude coordinates:
DMS latitude 25d 15m, 0s longitude 110d 07m 30s
D.d latitude 25.25d, longitude 110.125d
DM.m latitude 25d 15.0000m, longitude 110d 7.5000m
Here are web sites that will convert from DMS to DdM.
http://www.directionsmag.com/site/latlong-converter/
http://jeeep.com/details/coord
http://rumkin.com/tools/gps/degrees.php
https://www.pgc.umn.edu/apps/convert/
Sites like these don't convert to DdM:
https://www.fcc.gov/media/radio/dms-decimal
When stitching four maps together into a checkerboard, by taking the
corners of the four maps, you'll get 3 longitude & 3 latitude values
for 9 corners (which is a good number of points to calibrate).
============================================================================
G. Load and calibrate the USGS topographic map for your area of interest.
0. Read the help for calibrating maps & creating *.map calibration files:
http://www.oziexplorer3.com/eng/help/creating_maps.html
http://www.oziexplorer3.com/eng/help/spkeys.html
http://what-when-how.com/gps/moving-from-paper-to-digital-maps-gps/
Generally choose points near or at opposite corners.
Do not place two points on the same horizontal or vertical line.
Spread out the points as much as possible.
Note that the USGS topo maps are in degrees,minute,seconds (DMS) format.
25d 15m 25d 15m 25d 15m
110d 07m 30s 110d 00m 108d 45m 30s
+----------------------++----------------------+
| || |
| || |
| QUADRANGLE 1 || QUADRANGLE 2 |
| || |
| || |
| || |
| || |
| || |
| || |
| || |
| || |
+----------------------++----------------------+
25d 07m 30" 25d 07m 30" 25d 07m 30"
110d 07m 30s 110d 00m 108d 45m 30s
============================================================================
Here is the conversion of DMS to DdM.
25 15.0000 25 15.0000 25 15.0000
110 7.5000 110 0.0000 108 45.5000
+----------------------++----------------------+
| || |
| || |
| QUADRANGLE 1 || QUADRANGLE 2 |
| || |
| || |
| || |
| || |
| || |
| || |
| || |
| || |
+----------------------++----------------------+
25 7.5000 25 7.5000 25 7.5000
110 7.5000 110 0.0000 108 45.5000
1. Copy the USGS TIF converted map to .\OziExplorer\Maps\usgs_01.tif
(The GUI will default to C:\app\database\oziexplorer\Maps\)
2. Note that USGS topographic maps are easy to calibrate because each
corner is marked with the latitude and longitude, so write down the
coordinates for each corner below for your USGS map:
TopLeft: 25deg 15min 00sec N, 110deg 07min 30sec W
BotRight: 25deg 07min 30sec N, 110deg 00min 00sec W
-----
TopRight: 25deg 15min 00sec N, 110deg 00min 00sec W
BotLeft: 25deg 07min 30sec N, 110deg 07min 30sec W
Note that my USGS map said it was both DATUM WGS84 & NAD83.
3. Manually convert the USGS corner DMS coordinates to DdM:
http://www.directionsmag.com/site/latlong-converter/
TopLeft: 25.250 N, 110.125 W (25 15.00 N, 110 7.50 W)
BotRight: 25.125 N, 110.000 W (25 7.50 N, 110 0.00 W)
-----
TopRight: 25.250 N, 110.000 W (25 15.00 N, 110 0.00 W)
BotLeft: 25.125 N, 110.125 W (25 7.50 N, 110 7.50 W)
4. Start the trial version (OziExpTrial.exe).
5. Click OziExpTrial: File > Load & Calibrate Map Image
The GUI will default to C:\app\database\oziexplorer\Maps\
where you can select your single map tile or you can select
your stitched contiguous map tiles
6. On the right pane, click the "Point 1" tab.
7. Left click on the top left corner of the USGS map to mark "Point 1"
where you should see a red "bullseye" placed on that top-left corner.
8. Manually type the top left DdM coordinates into the Point 1 tab
Lat and Long DdM boxes in the right pane.
9. Do the same for the other 3 corners of the USGS map (point 2, 3, & 4).
(If desired, do the same for any desired stitch point 1 through 9.)
Point 1 = lat N, lon W (top left)
Point 2 = lat N, lon W (top right)
Point 3 = lat N, lon W (bottom left)
Point 4 = lat N, lon W (bottom right)
------
Point 5 = lat N, lon W (top middle)
Point 6 = lat N, lon W (middle middle)
Point 7 = lat N, lon W (bottom middle)
------
Point 8 = lat 37 15N, lon W (middle left)
Point 9 = lat 37 15N, lon W (middle right)
10. Then press Save in the calibration popup window.
It will ask for a name, which will default to name.map.
For example, if the map loaded was topomap.tif,
then the new name will be topomap.map
And the default location will be
C:\app\database\oziexplorer\Maps\topomap.map
11. Check calibration by comparing measurements to the USGS printed ruler.
OziExplorerTrial: View > Distance Display >
(Click on the left edge of the rule & then on the right end of the
ruler)
(For example, it should display 3km for the standard USGS 3km ruler.)
12. Optionally, when you're done, zoom to the area you like & save:
OziExpTrial: Map > Map Open Position > Save Map Open Position > Yes
============================================================================
Note: Here is a table I used for the 9 points of 4 map tiles:
Point 1 = lat ____N, lon ____W (top left corner)
Point 2 = lat ____N, lon ____W (top right corner)
Point 3 = lat ____N, lon ____W (bottom left corner)
Point 4 = lat ____N, lon ____W (bottom right corner)
Point 5 = lat ____N, lon ____W (top middle edge)
Point 6 = lat ____N, lon ____W (middle middle - center of 4 map tiles)
Point 7 = lat ____N, lon ____W (bottom middle)
Point 8 = lat ____N, lon ____W (middle left edge)
Point 9 = lat ____N, lon ____W (middle right edge)
============================================================================
H. Convert your mobile-device tracks into OziExplorer "plt" tracks.
1. Start gpsbabel
2. In the "Input" section, set the Format = GPX XML
3. In the "Input" section, press the "Filenames" button
and locate your GPX file "C:\path\file.gpx"
(Notice the automatic quotes around the file spec.)
4. In the "output" section, select the "OziExplorer" format
5. Choose a desired file path and name (e.g., C:\path\file.plt).
6. Press the "OK" button and look to see whether it was successful:
C:\> gpsbabel -w -r -t -i gpx -f C:/tmp/file.gpx -o ozi -F
C:/tmp/trackfile_001.plt
Translation successful
7. You can close GPS Babel by pressing the "Close" button.
NOTE: The input file name can have quotes but not the output file name.
============================================================================
I. Load and display the mobile-phone track overlayed on that USGS map.
1. Put the newly created PLT file in the default location:
C:\app\database\map\oziexplorer\Data\trackfile_001.plt
2. Start the trial version (OziExpTrial.exe).
3. If the map isn't automatically loaded, then load the desired USGS map.
4. Load any number of PLT tracks that you want to view on the map:
(if needed) OziExpTrial: Map > Clear All Tracks on Map
(if needed) OziExpTrial: View > Show tracks on Map
OziExpTrial: File > Load from file > Load Track From File >
trackfile_001.plt
5. That displays your track on the USGS calibrated map.
NOTE: To load a track into OziExplorer over a blank map:
1. Start the trial version (OziExpTrial.exe).
2. OziExpTrial: Map > Blank Map
3. OziExpTrial: Load > Load Track From File > file.plt
4. That displays the track on the blank map.
============================================================================
J. Display the elevation/speed profile by distance/time.
1. Start the trial version (OziExpTrial.exe).
2. OziExpTrial: Load > Load Track From File > trackfile.plt
3. That displays the track on the underlying map.
4. OziExpTrial: View > Track > Track Profile
5. That track profile chart has choices of:
x-axis: Distance or time
y-axis: Altitude or speed
============================================================================
K. Create routes & save as GPX tracks for import into a mobile device
1. Start the trial version (OziExpTrial.exe).
2. If the map isn't automatically loaded, then load the desired USGS map.
3. Add a desired track
OziExpTrial: Map > Add or Drag Map Object > Track Point
4. Keep left-mouse button clicking to create a track out of track points.
5. When done defining the track, then save it using
OziExpTrial: File > Save to File > Save Track to File > fname.plt
Then convert that PLT file to a GPX file with GPS Babel:
1. Start gpsbabel
2. In the "Input" section, set the Format = OziExplorer
3. In the "Input" section, press the "Filenames" button
and locate your PLT file "C:\path\file.plt"
(Notice the automatic quotes around the file spec.)
4. In the "output" section, select the "GPX XML" format
5. Choose a desired file path and name (e.g., C:\path\file.gpx).
6. Press the "OK" button and look to see whether it was successful:
gpsbabel -w -r -t -i ozi -f C:/path/testtrack.plt -o gpx -F
testtrack.gpx
Translation successful
7. You can close GPS Babel by pressing the "Close" button.
============================================================================
L. Test results online
1. To test online point a web browser to
http://caltopo.com
2. Import your GPX track by pressing the "Import" button & hitting OK.
3. Zoom to the area where your track should be displaying
4. Check that the track is as you expected it to be
============================================================================