Showing posts with label cartography. Show all posts
Showing posts with label cartography. Show all posts

Wednesday, December 4, 2013

Ubuntu Precise, QGIS, GRASS and r.denoise

If you are interested in making your own shaded relief in QGIS, you may want to know about a GRASS module called r.denoise.

r.denoise (as explained more at length here), removes the random noise from a digital elevation model. As a result, when you generate a shaded relief image from the DEM it doesn't show as many small texture features.

Shaded relief of a portion of Canadian topographic map 093L14 (Smithers) generated with GRASS's module r.shaded.relief. At left, shaded relief from regular CDED DEM, and, at right, from CDED DEM denoised with r.denoise. Denoising parameters in this case were 5 iterations at a tolerance of 0.93.
The trick is that, although under Ubuntu Precise it's easy to install QGIS and GRASS (packages qgis and qgis-plugin-grass), r.denoise is not a standard module in GRASS. It's an addon. There are many wonderful GRASS addons (see a list here), but installing a GRASS addon when you did not compile GRASS yourself (i.e., you installed it through a precompiled package, as one tends to do under Ubuntu), requires a few extra steps. It can be done, however!

I recently struggled through installing r.denoise, and I was unable to find complete instructions on the web, so I thought I would explain here how I did it.

I'll assume that you are running Ubuntu Precise, and that you already have QGIS 2 and the GRASS plugin installed, and that you know how to use them.

Preparation

There are four things you will need before you can install r.denoise:
  • package grass-dev (which will in turn require package grass)
  • package subversion
  • the mdenoise utility
  • a patch in a makefile that comes as part of grass-dev (apparently you will not need this if you have grass version >=6.4.2, but at this point Ubuntu has 6.4.1)
Phase 1: The packages grass-dev and subversion you can install through the synaptic package manager.

Phase 2: To install mdenoise,
  1. go to the Cardiff University site on the Filtering and Processing of Irregular Meshes with Uncertainties  and downlaod mdsource.zip
  2. unzip it into a temporary folder, e.g., on your desktop
  3. open a terminal in that folder and compile mdenoise with:
  4. $ g++ -o mdenoise mdenoise.cpp triangle.c
  5. move (as root or using sudo)  the new file that appears, "mdenoise," into /usr/bin:
$ sudo mv mdenoise /usr/bin/

Phase 3: to patch Platform.make file in /usr/lib/grass64/include/Make, run the following command:

$ sudo sed -i -e 's+^\(GRASS_HOME[ ]*=\) /build/.*+\1 ${INST_DIR}+' \
-e 's+^\(RUN_GISBASE[ ]*=\) /build/.*+\1 ${INST_DIR}+' \
/usr/lib/grass64/include/Make/Platform.make
 
OK, now you're ready to install the addon r.denoise.

Installing r.denoise itself

1. Start QGIS and make sure the GRASS plugin in loaded. If you haven't already discovered it, the GRASS menu is under the "Plugins" menu.

2. Open a GRASS mapset, so that the GRASS toolbox will be available: Plugins>GRASS>Open mapset, or the corresponding button on the GRASS toolbar. (If you need to create a GRASS mapset first, a set of getting-started-with-GRASS instructions are here.)

3. Open the GRASS Tools: Plugins>GRASS>Open GRASS Tools, or the corresponding button on the GRASS toolbar.

4. Open a GRASS shell. You can find this at the top of the Modules Tree ("Modules Tree " tab), or search for it ("shell") on the Modules List tab. A GRASS shell opens as a fourth tab in the GRASS window. In this shell window, Ctrl-Shift-C and Ctrl-Shft-V act as Copy and Paste, just as in a regular terminal window.

5. In the GRASS shell, type:
$ g.extension extension=r.denoise svnurl=http://svn.osgeo.org/grass/grass-addons/grass6/
This will launch a process of downloading the source code for the addon via subversion, compiling it, and then installing the executable.

Unfortunately, if you're like me, you will get this:

Fetching from GRASS-Addons SVN (be patient)...
A    r.denoise/description.html
A    r.denoise/r.denoise
A    r.denoise/Makefile
 U   r.denoise
Checked out revision 58345.
Compiling ...
mkdir -p /usr/lib/grass64/bin.x86_64-pc-linux-gnu
mkdir: cannot create directory `/usr/lib/grass64/bin.x86_64-pc-linux-gnu': Permission denied
make: *** [/usr/lib/grass64/bin.x86_64-pc-linux-gnu] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.

In short, GRASS does not have permission to create this directory it wants (/usr/lib/grass64/bin.x86_64-pc-linux-gnu). I tried a number of workarounds. Running GRASS as root does not help. Attempting to 'sudo' this g.extension command does not work. Finally, I simply created the directory myself from within the GRASS shell by typing:

 $ sudo mkdir /usr/lib/grass64/bin.x86_64-pc-linux-gnu

I know this looks an ugly and desperate act, but it leads to success just down the road, so bear with me.


Note that all I had to do was copy the mkdir line from the output above (with Ctrl-Shift-C), paste it in as the next command (Ctrl-Shift-V), hit the Home key to jump to the front of the command line, type 'sudo' and hit Enter.

Now run the g.extension command again (tap up-arrow until it reappears as you entered it before), and get a similar error for another directory it can't create:

Fetching from GRASS-Addons SVN (be patient)...
A    r.denoise/description.html
A    r.denoise/r.denoise
A    r.denoise/Makefile
 U   r.denoise
Checked out revision 58345.
Compiling ...
mkdir -p /usr/lib/grass64/dist.x86_64-pc-linux-gnu/include/grass
mkdir: cannot create directory `/usr/lib/grass64/dist.x86_64-pc-linux-gnu': Permission denied
make: *** [/usr/lib/grass64/dist.x86_64-pc-linux-gnu/include/grass] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.

Repeat the process of creating the new subdir by hand.

$ sudo mkdir -p /usr/lib/grass64/dist.x86_64-pc-linux-gnu/include/grass

However, this time change the permissions to world-writeable on this new subdir. g.extension is going to want to create six more sub-directories under it, so this will save you significant time:
$ sudo chmod -R 777 /usr/lib/grass64/dist.x86_64-pc-linux-gnu/

Running the g.extension command a third time you will now get a long output:

Fetching from GRASS-Addons SVN (be patient)...
A    r.denoise/description.html
A    r.denoise/r.denoise
A    r.denoise/Makefile
 U   r.denoise
Checked out revision 58345.
Compiling ...
mkdir -p /usr/lib/grass64/dist.x86_64-pc-linux-gnu/lib
mkdir -p /usr/lib/grass64/dist.x86_64-pc-linux-gnu/bin
mkdir -p /usr/lib/grass64/dist.x86_64-pc-linux-gnu/etc
mkdir -p /usr/lib/grass64/dist.x86_64-pc-linux-gnu/driver
mkdir -p /usr/lib/grass64/dist.x86_64-pc-linux-gnu/driver/db
mkdir -p /usr/lib/grass64/dist.x86_64-pc-linux-gnu/fonts
if [ ! -d /usr/lib/grass64/dist.x86_64-pc-linux-gnu/scripts ]; then mkdir -p /usr/lib/grass64/dist.x86_64-pc-linux-gnu/scripts; fi
/usr/bin/install -c  r.denoise /usr/lib/grass64/dist.x86_64-pc-linux-gnu/scripts/r.denoise
make htmlscript scriptstrings
[...and a whole lot of other stuff, including errors...]

This is good news: your script has been created and it's at /usr/lib/grass64/dist.x86_64-pc-linux-gnu/scripts/r.denoise. (Note: we're not going to get the documentation for the module. That's what all the final errors are about. Haven't been able to solve this part yet.)


As a final step, it's up to you (using sudo) to move it to /usr/lib/grass64/scripts:

$ sudo mv /usr/lib/grass64/dist.x86_64-pc-linux-gnu/scripts/r.denoise /usr/lib/grass64/scripts/

Make sure it's executable, and if it's not you can make it that way with

$ sudo chmod +x /usr/lib/grass64/scripts/r.denoise

r.denoise is now accessible to you through the GRASS shell by typing:
$ r.denoise

It'll open a nice little GUI and let you get started denoising.


One final note, probably unnecessary to seasoned GRASS users. When r.denoise asks you for a raster input map, you can pick from the current mapset using the dropdown. It'll insert the name of the map with an @ sign and then the mapset name, something like "mymap@mymapset". But when it asks for "Denoised raster output map," put in a new filename without the "@mymapset".

Happy denoising!





Wednesday, September 18, 2013

Quick and Dirty Mapping with Geographic Data

Barely a day goes by without seeing a map on the web. And the more eye-catching maps are usually fairly involved productions. Consider, for example, Bomb Sight, or the World Water Risk Atlas.  These maps can be quite beautiful, and offer all sorts of capabilities to explore data. But they aren't the kind of mapping I want to talk about here.

I'm interested in a much lower-end question: what can a person do to quickly post his or her geographic data onto a map? Let's say I have a couple of KML files (or GPX, or shapefiles... we'll get to discussing formats in a bit): if I just need to visualize them, what's my best place to go? Let's say that I'm not making a presentation and I don't need to be able to share the data, or let others edit it. Nor do I need visitors to be able to draw on the map.

For the moment I'll also assume that I don't even want to be able to customize how the data looks, or be able to direct others to this quick and dirty map. I'll cover that in a later post.

The user should not have to know anything about the world of GIS. He or she should not have to re-project the data, or convert formats. There shouldn't be a need to understand map projections. There is a broad range of people who receive data -- maybe it's downloaded from the web, handed over by a collaborator, sent by a friend or produced by the company -- and they just want to see it.

GPSVisualizer

GPSVisualizer is probably your best single bet for a quick and dirty map, whether your geographic data is KML, KMZ, CSV or XLS.



On the home page, where it says "Get started now," browse for your data file and click "Go!"
You'll get a small inset map of your data over a Google maps background. If your data included lines, these are summarized in the box in the upper right side of the map.

There are several nice features available to you now:
  • With one click you can go to a full page view of your map. (Click on "view" in the fine print at the top where it says your map is "also temporarily available to view.")
  • You can click on your points or lines and see the data embedded within them.
  • You can change the background of your map, with over 20 backgrounds to choose from. These include Yahoo maps, OpenStreet map, and topographic maps for the US and Canada
  • You can copy that address for the full-page view of your map and send it to others to visit -- at least for a few hours. (GPSVisualizer says the map is there "temporarily". It's probably good for the rest of the day unless use of the site is heavy.)
If you go back a page, back to that "Get started now" box, you can re-generate the map and, instead of getting a Google maps mash-up, receive:
  • a Google Earth (KMZ) version of your data
  • a JPEG image
  • a PNG image
  • an SVG image
  • an elevation profile
  • a GPX version of your data
  • a plain-text
Nice. Simple. Effective.

Hillmap

If the data you have is in the GPX format, GPSVisualizer will still work just fine. (GPX is a format that usually comes out of GPS devices, or software people use to manage their GPSs.) However if you have GPX data, in many ways Hillmap is a more delightful site, and even easier to use.



With Hillmap, you can drag and drop that GPX file right onto either of their double maps. It will upload the file and move the map to view your data. By default the maps a show "map" and "satellite" views, but there are 14 different backgrounds to choose from.
Now you can:
  • Switch to the Input and Output tab, and use the Link To button to get a link to this map, or an iframe tag to paste into a blog post (example below). (Note: set you preferred background before you get the link or iframe code.)
  • Also on the Input and Output tab, you can print your map. 
Hillmap is very clever: they've thought about how awkward most things printed out of web browsers look, and they've created an interface where you can get a decent looking map. You choose the dimensions of the printed map you want, and the dpi. It will then tell you what scaling to apply when sending it to the printer, and open a new tab with just the map image on it.
In Firefox, for example, you go File - Print Preview, set the scale to the given percentage, and hit Print. Very nice results, and, as a real bonus, it has a scale bar on it!


A short digression on formats

There are six common formats that geographic data comes in:
  • KML This is the original Google Earth data format. (KML stands for "Keyhole Markup Language".) You might have a KML file if you drew some points, lines or areas in Google Earth. Or you might have downloaded a KML file from the web. KML files can contain points, lines and areas.
  • KMZ This is a zipped version of KML.
  • GPX  A format for sharing data among GPSs, as discussed above. GPX files can contain points (which they call "waypoints") and lines (which they call "tracks").
  • shapefile This is a format originally created by a company called ESRI, but now used by most GIS software. It's common in academic and scientific circles. Note that a "shapefile" is actually a set of four files. These files all share the same name but have different extensions, like trail.shp, trail.dbx, trail.shx, and trail.prj. When sites ask you to upload a shapefile, they usually want you to zip the four files together into a .ZIP file first. A shapefile can only contain one kind of data: points, lines OR areas.
  • CSV or "Comma Separated Values." This is a plain text file with columns of data separated by, well, commas. Other variants of this format use tabs or semicolons to separate the fields. These files are generated by spreadsheet programs like Excel or OpenOffice Calc, and they can be displayed by those programs. When a CSV file contains geographic data it typically has columns named latitude and longitude. (It's also possible that instead the columns are northing and easting. This means the data is in a UTM projection, which I won't go into that here.) CSV data is usually just the locations of points.
  • XLS Microsoft Excel's spreadsheet format. Like CSV data, it will have latitude and longitude columns, and represent the locations of points.
There are also more obscure ones, like GeoRSS, GeoJSON, and GML, but if you have data in one of those formats you're probably beyond the scope of this post already.

CartoDB 

The format we haven't covered yet is shapefile. If you have this kind of data, neither of the two sites above will work, but CartoDB will. 

Like other sites that can accept shapefiles (such as ArcGIS Online and GeoCommons), CartoDB requires you to get a free account and insists that data you upload be publicly discoverable by other users. But it is simpler and more intuitive than those other services.  

Do note the limitations of the free CartoDB account. It will only let you have five uploaded shapefiles (which it calls "tables") at once, 5 MB of data total, and ten thousand views of your map. For our purposes this is not particularly onerous, but note that because a single shapefile can only hold a single kind of geographic data (points, lines or areas), you will be uploading more than one shapefile if, for example, you have both line and points to view.

Once you have your free account, log in and upload your shapefile by clicking on the large "New Table" button with the plus sign on it. Click select a file, locate your zipped shapefile, and when the progress bar finishes you're looking at a table of data for the geographic objects in your shapefile. Click on Map View. and you see the map. From upload to map is pretty fast.


Notice that you can change among the seven background maps (Nokia Day;  Google terrain, roads, satellite, hybrid, grey roadmap, or dark).

If you click on one of your features  you don't see the data yet, but a select fields link is offered, which pulls a set of toggle switches out from the right side of the map. Toggle "on" all the fields you want to see displayed.

To add a second shapefile to the map, you have to first convert it to a "Visualization." (Use the "Visualize" button in the upper right.) Once you give your visualization a name, the Visualize button becomes a "Publish" button. Right below it is a small "+" button which will allow you to add another shapefile (that you've already uploaded) to the map.

Next post: websites of choice for quick styling and sharing of maps.

 

Friday, May 3, 2013

The bounds of Oregon Country

Recently, I made a a series of maps of the historical Oregon Country. This was for an online exhibit at the Osoyoos & District Museum, which can be seen here: http://www.osoyoosmuseum.ca/1812/1812.html

The Oregon Country was jointly occupied by the U.S. and Great Britain from 1818, when the two countries signed a treaty formalizing relations after the War of 1812, until 1846, when they divided the Oregon Country along the 49th parallel. In the course of producing these maps, the museum's curator, Ken Favrholdt, and I determined that there was no clear idea of where the Oregon Country ended to the north, and that today Oregon Country is often misrepresented as having ending at 54° 40' north.

What would the actual north bound of Oregon Country have been?

The lands the U.S. and Britain were negotiating over had large regions that were poorly explored (that is, poorly explored by Europeans and by those from back east). Representatives of both countries relied on maps that, the farther north one went, were less and less accurate, as well as being essentially unchecked. When diplomats defined the Oregon Country, they were assuming the maps reflected something more or less accurate.
Hooker and Brown from US Ex. Ex. map of Oregon Country, 1841
One nice illustration of how little knowledge there was is the case of Mounts Hooker and Brown. These two 16,000' peaks were said to lie on either side of Athabasca Pass, the route through the Rockies pioneered by David Thompson in 1811. They appear authoritatively presented on the 1841 map of Oregon Territory by the U.S. Exploratory Expedition, the 1844 map of the Oregon Territory by the French diplomat Eugene Duflot de Mofras, and the 1844 map of North American by John Arrowsmith in London.

And this was only at 52° north. What other unchecked assumptions lay further north?

Even though there were strong sentiments in both Britain and the U.S. that as little as possible of the Oregon Country should be ceded to the other party, the exact bounds of Oregon Country were never well defined. The Treaty text (the Anglo-American Convention of 1818) stipulates that it is the "North West Coast of America, Westward of the Stony Mountains." Let's look at what these words might mean.

Watersheds, latitudes and the crest of the Rockies in Oregon Country
The West bound is pretty clear: it's the Pacific Ocean.

The South bound is pretty clear: it's the 42ndparallel, agreed to be the northern limit of Spanish claims in the 1818 Adams–Onís Treaty.

The East bound relies on there being a feature called the Stony Mountains. Most maps of the period  show the Stony Mountains as a thin band of peaks running north-south, which would have made a precise boundary.

The Arrowsmith map from 1844, showing the Rockies as a single chain
But the reality is that the Rockies are a fairly fat range. In practice, we generally look to the watershed divide to define where "Westward of the Stony Mountains" might begin. But the farther north one goes, the more the watershed divide begins to play with your mind.

South of 52°, it's a simple choice of the Atlantic watershed on one side, and the Pacific watershed on the other. But north of 52° one has to choose between the Atlantic-Arctic divide, which wanders off across the high plains to the northeast, or the Pacific-Arctic divide, which continues to follow the core of the range. Assuming you choose the latter, your next conundrum occurs at about 54° 30', where the Pacific-Arctic divide diverges from the Rockies and heads northwest. At this point, large rivers of the Peace River system are rising west of the crest of the range and flowing through it. Here the range has no meaning as a watershed divide at all.

If we stick by the words of the treaty, we are bound to continue following the crest of the Rockies. So Oregon Country north of 54° 30'  includes some eastward flowing rivers. And indeed, cartographers of the time, if they ever mapped Oregon Country this far north, drew there line as we have, along the crest of the Rockies.

The North bound is the big mystery. The Treaty did not address it, and here we get into territory that was little travelled and little reported.

Nowadays it's not uncommon for a history map to show Oregon Country as ending at  54° 40' north. They either show this as a line drawn from the Pacific Ocean to the Rocky Mountains by the 1824 treaty between the U.S. and Russia, which is wrong, or they show it as the northern limit of American claims, which is right, but in neither case does this mean that Oregon Country ended here.

54° 40' was not a number that meant anything when the Oregon Country was set up in 1818. It arises for the first time six years later when the Americans and the Russians sign the St. Petersburg Convention of 1824. This treaty mentions 54° 40' as a latitude to separate their respective spheres of influence regarding coastal establishments. The wording of the treaty is “there shall not be formed by the citizens of the United States ... any establishment upon the Northwest Coast of America, nor in any of the Islands adjacent, to the north of fifty-four degrees and forty minutes of north latitude ; and that, in the same manner, there shall be none formed by Russian subjects... south of the same parallel.”   

Eugene Duflot de Mofras's map, 1844
Line at 54° 40' on the Duflot de Mofras map
Nonetheless, this begins the practice of cartographers drawing a line at 54° 40' all the way from the coast to the crest of the Stony Mountains, a distance of about 700 km. Some, like Duflot de Mofras in 1844, claim this line merely represents something defined in the treaty, and leave either side of it the same colour.  In other words, there's no implication that this was the end of Oregon.

Map of Oregon Territory, 1841, Wilkes Expedition
Detail of 54° 40' line on Wilkes Expedition map










Others are more ambiguous. The American "Wilkes Expedition" of 1841 produced an authoritative-looking "Map of the Oregon Territory" on which the Oregon Country ended, at 54° 40', with an unlabelled line in the same style as other international boundaries on the map.

Jeremiah Greenleaf, 1840, Brattleboro







American commercial map-makers go further: they colour the land differently on either side of  54° 40', and label the line as  "Boundary of Russian Possessions Settled by Convention in 1824" (Jeremiah Greenleaf, Brattleboro, in 1840) or "Boundary of 1824" (Henry Tanner, Philadelphia, in 1833).
Henry's Tanner's 1833 map of Oregon



From Lawrence J. Burpee, editor, AN HISTORICAL ATLAS OF CANADA, Toronto, Thomas Nelson and Sons, 1927








So the myth grows that the disputed Oregon Country somehow stopped at 54° 40', and in the 20th century you have maps like one from Burpee's Historical Atlas of Canada, 1927, that shows the Oregon boundary running along 54° 40', or this
Denoyer-Geppert 1941 Historical Oregon Country
Denoyer-Geppert 1941 school room map of the Historic Oregon Country, where  54° 40' is labelled both as the treaty line of 1824 and as the limit of American claims. But the yellow colour says something else: that north of 54° 40' is not Oregon Country.
Our question was, how did people on the ground on this side of the Rockies, think of Oregon Country? We decided to resolve this problem by looking to the Hudson's Bay Company. They had an administrative unit here, called the Columbia Department, which represented the scope of fur-trading activities throughout the Oregon Territory. It began at the crest of the Rockies, and it went as far south as the Spanish border; what did they take to be the northern limit of this Department?

Oregon Country as we mapped it
These lands had fallen under HBC control in 1827 when they bought the North West Company and its operations. The north half of what the HBC eventually called the Columbia Department had been called New Caledonia by the NWC. and its northern limits were basically as far north as its northernmost posts, Fort McLeod and Stuart's Lake Fort, could trade. Practically, this was the headwaters of the Nass and Skeena Rivers (which closely parallel each other west of the divide) and the headwaters of the Finlay River (east of the divide; effectively the headwaters of the Peace). These areas, incidentally, are north of 54° 40'.

This being the practical limits of Oregon Country for the fur traders at the time, we decided to use the Nass and Finlay Rivers as our boundary.  Note that these two rivers do not meet at the divide. Their respective headwaters are about 50 km apart, and occur in close proximity to the headwaters of the Stikine, another Pacific river that reaches the coast farther north. A connecting line had to be drawn using the watershed boundaries, first the Finlay-Skeena, then the Stikine-Skeena, then the Nass-Stikine.

Tuesday, May 10, 2011

Passby Creek 1


I gave the Passby Creek Trail a try yesterday. This trail is pretty weak on references: all I had was a recommendation from S---, who had snowshoed it, and a verbal description from the bcnorth.ca website dated was pre-2005. There was no entry in the original Trails To Timberline, and no entry on followyourpath.ca. I set out to follow the verbal description and see if I could just find the roadhead. I took snowshoes because on north-facing sloes the snowline seems to be still down around 2000'

I've been thinking about mapping trails without a GPS—a sort of variant on “Games Climbers Play” that I'm calling “Games Map-makers Play.” It's about going back to the technology of 1990: no computer, no Google Earth, no GPS. Just map and compass. So I took a compass, and the 1971 topo map.

Here was the verbal description:

Drive north from Smithers on Highway 16 for 24.4 kms and turn left on the Kitseguecla Lake Road. Turn left again after .7 km and cross the railway tracks on the 6000 Forest Service Road. About 1/2 km past the 6008 sign, turn left on the small Forestry Road. After driving 2.3 km past some fields, bear right at the "Y" onto the 608 Road, drive across a small bridge and turn left at the 4 km sign on a small road behind a corral to an overgrown landing in the cut block. The trail starts from the southwest corner of the landing and follows the creek bank south to the edge of the timber. After about an 1-1/2 hours hike, turn left on the beaten track. The old main trail goes straight ahead down the hill to Passby Lake.
You'll notice it sounds like you somehow get from the Kitseguecla Lake Road to the 6000 Forest Service Road, but in fact they're the same thing. It's marked with the little yellow kilometre signs: “6001,” “6002,” etc. Four tenths of a km past the 6008 signs (yes, this road seems to have been posted twice, and there are two signs in slightly different places for many of the kilometres) was the left turn described, but it turned out also to be the turn posted “Hankin-Evelyn Backcountry Trails Parking, 9km.” I'd noticed this last fall and wanted to check it out: it's the gladed, skins-only, backcountry ski area developed over the past few years by the Bulkley Backcountry Ski Society.
45 minutes from the house at this point.
This turn-off was already signed from here as the 608 Road, and right off it had one of those scary yellow signs giving a radio frequency: “608 Road; Call Empty; 159.42”. At if that wasn't going to give me enough of a pause--picturing a head-on collision with a a logging truck because I have no such radio--there was also another sign close to the ground on the same post, red one, saying “Road Temporarily Closed To Recreation Traffic.” Oh, Geez.
I went down there anyway, slowly, watching and listening for logging trucks. (Some doubt if this actually works.) Partly it was me being indignant that recreation sites should not be limited to people with forestry radios; partly it was me impatient to know what was down there. I met no one. I crossed Trout Creek, passed through some fields, and ascended through snowy forest. Snowline is at something like 2000' on these north-facing slopes. It was unclear where the “Y” was, but I did pass a turn-off to the left for a “602 Road” and that might have been it.
At 4 km there was the mentioned bridge and small corral. Leading up behind the corral, which was mired in snow, was what was probably an old road between young (maybe 20 year old) pine and spruce. It was unplowed and certainly undrivable. (The snow was about two feet deep here.) I decided that, for today, this was the roadhead, and parked on the road margin, leaving plenty of room for the hurtling logging trucks of my imagination. I donned snowshoes, shouldered pack, and set out to explore “a small road behind a corral to an overgrown landing in the cut block.”
There was an old track of snowshoes going up there, perhaps from a week before, and I followed these. I passed a yellow “deactivated road” sign, and after about ½ km I came to what might have been, seven years ago, a “overgrown landing:” it was full of aspen rather than coniferous trees. Here I shot a bearing to the Nipples and to the highest point on the ridge across the valley, so I could figure out later where the “landing” was.
From here, “the trail starts from the southwest corner of the landing and follows the creek bank south to the edge of the timber.” I poked around in the far southwest corner, but the place was only about the size of a small parking lot, and the snowshoe tracks continued confidently up a narrower corridor between trees a bit more at what I would call the “mid-point” in the south side of the landing. Oh well. I followed the tracks, and found myself in a distinct corridor between trees, narrower than a road but about the right size for what would have been a pack trail 70 years ago. I looked for blazes but found none. The trees were still “recently” planted, but a little bigger now, maybe 30 years old. There was no creek in evidence, but I thought I could hear one off to my left.
One piece of evidence that would help in figuring this all out would be a map showing cut blocks and the years they were cut.
Varied thrushes and some kind of warbler were calling. I saw a hare ahead, already gone brown. After a while the snowshoe prints left the corridor between trees and forked through denser pine right up a little ridge nose. I followed them for a hundred metres or so and got a view out over the basin I was walking through. I could see I had indeed been following a stream, and that I was in a big area of light green (a warm green) trees, but on the edges there were taller, dark green trees: “the edge of timber.” I'm pretty sure that in the local lingo of forestry, “timber” specifically means the uncut, mature trees, rather than trees period.
It looked like a long way to the edge of timber. I'd accomplished what I came for, and I'd forgot my gaiters, ski poles, and dark glasses, so I turned around. But first I went a bit further up what appeared to be the trail corridor and found I did come out on the creek itself. It was melted open and made a lovely, inspiring Spring sound.
Descending, I was struck by how much the place was like the canyonlands at that moment. Across from me to the north, the ridge seemed sere, bare and melted out, like something you might see above White Canyon, or the Escalante Road. The whole area was unnaturally quiet, as if I was a long way from civilization. I was standing on two feet of snow, but life was surging up all around. My hands smelled of pine and cottonwood where they'd brushed branches, and it was just about enough to make me feel good about having survived Winter.
At home I called the BC Rec guys, Kevin and Ben, and found out the 608 road is temporarily closed for the melt (they call it “break-up” ), so vehicles don't tear up the steep section near the Hankin-Evelyn Parking lot, which was 5 km beyond where I went. They don't know of any logging planned on the 608 Road in the next few years, so that's good news.
The triangulation proved totally inaccurate to locate the “landing.” I was off by kilometres. Instead I located it using (embarrassed!) a GPS track of this trail I found on my server, perhaps donated originally by a colleague at BC Parks. Do I need a better compass? A plane table? A sextant? Must work on this.
Here's what I knew at the end of this first day: 




Wednesday, September 29, 2010

The North Circumpolar Maps

NRCan, 1990 "North Circumpolar Region" MCR 198
An interesting pair of maps that recently came to my attention (through an article in Cartographica) are the 1990 and 2008 versions of the Canadian government's "North Circumpolar Region." High-resolution images for both are available online free from Natural Resource Canada (NRCan), so I'll just post some thumbnails here and details.

NRCan, 2008 "North Circumpolar Region" MCR 0001
The original map, MCR 198, was a tremendous success in 1990, and MCR 0001 (2008) is an attempt to revise, update, and of course improve it. It is at a slightly smaller scale (1:9,000,000 instead of 1:7,500,000) but many things have been added: international date line, additional arctic ocean floor detail, current pack ice limits, and so on.

But, which would I rather have hanging on my wall? Hands down it's the older version. It looks better. So what can we learn here?

What's striking about the more recent version is the difference in the shaded relief. The first map was done with conventional cartographic tools, and an artist rendered the shaded relief. The second map was done with current GIS technology, the shaded relief being computed.

According to the article by the authors (Mapping The North, R. Eric Kramers and Andrew Murray, Cartographica, vol 45, No. 3,  p.201), the new  shaded relief was generated from a DEM using GIS software. However, it didn't look right until it was "tempered  with the less-detailed, manually-drawn, 1990 relief." The two were blended in Photoshop to give the right balance of the high-resolution (computer generated) and low-resolution (hand-painted) components.

It's not the first time I've read this: computer-generated shaded relief is too accurate for the big view: although each peak and ridge is there, the overall impression of a mountain chain is lacking something. Tom Patterson (DEM Manipulation and 3-D Terrain Visualization, Catographica vol. 38, # 1&2 Spring/Summer 2001, p.92) wrote that high-resolution DEMs give the wrong effect at small scales.
Especially problematic are glaciated northern mountains comprising tightly packed ridges and valleys...which often appear as an irregular texture rather than a recognizable topography.
And here are Anna Leonowicz, Bernhard Jenny and Lorenz Hurni (Automated Reduction of Visual Complexity In Small-Scale Relief Shading, Cartographica vol. 45, No. 1, Spring 2010, p.73) pointing out that, at present, hand-painted relief is simply better:
Cartographers currently lack advanced methods for using [DEMs] to produce relief visualizations at a level of quality comparable to traditional, manually-executed relief representations.
Patterson recommended that you could at least get closer to a hand-painted  result by manufacturing a low-resolution DEM (i.e., down-sampling the original), and merging a shaded relief version of that with the  shaded relief from the high-resolution data. In a sense this is just what the authors of the 2008 map did.

Nonetheless the hand-painted relief, for my money, on the original 1990 map still looks better. A circumpolar map is a very grand overview. No one is going to refer to it for details, and it is designed to hang on a wall or adorn a floor. It gives an overall impression of planetary scale; so here I prefer the old style of shaded relief, where the mountain ranges stand out so strongly.

Western Canada, 2008-style
Western Canada, 1990-style
Compare Western Canada: the bold and well-muscled 1990 version, and the wrinkly (and pink!) 2008 version.

Yes, I'm not fond of the colour fill introduced on the more recent version to show national boundaries. It just seems distracting to me and I have a sense that they added it because the GIS software made it easy to do so. I want this to be a map of the physical landscape, not political landscape. The brightly coloured Scandinavian countries are like confetti over in the corner of the map, whereas in the former verison they were deliciously dark and complex entity.

Scandinavia, 1990-style
Scandinavia,  2008-style
I do appreciate the extension, below the 55 degrees north, of basemap features in the 2008 edition. On the 1990 edition nothing was shown south of that latitude but the water/land division. Now, the highway I live near, at 54º 40', is actually there, on the map.

However, something was thrown away! Kamchatka, the Sakhalin Islands and the Aleutian Islands, which the artist gave shaded relief to in 1990 throughout their full extents, now have it cut off! Russia needs the full extent of Kamchatka, to emphasize Siberia's size and the way it overhangs the Pacific Ocean. Rendered this way, it just looks silly.

Kamchatka, 1990-style
Kamchatka, 2008-style
And, as you can see in these details, the blues that represent ocean depth were deeper and darker in 1990, which also provided a better overall effect.

I don't want to go on ranting here, because I'm not that great a map designer myself. But for GIS people designing maps, the 2008 map is a good lesson. Sometimes it's harder to achieve the effect you want using the latest tools.

Friday, July 30, 2010

Searching for Lareipel

This is an image of a portion of the 1550 Desceliers map, courtesy of the Library and Archives Canada through the Historical Atlas of Canada site.

Pretty quickly you can recognize what's being depicted: with Florida and the Gulf of Mexico at the top, and “Canada” at the bottom, this is an upside down map of North America, drawn to the best of their knowledge mid-sixteenth century. Various places are recognizable. There's Newfoundland out at the mouth of the Gulf of St. Lawrence, labelled something like Terre Nevfve, and the St. Lawrence River itself coming from a big lake inland.


It's intriguing to see if you can find, on old maps, landmarks with recognizable place names that we use today. For example, Cape Race, at the southeast corner of Newfoundland, is there in the Desceliers map as C: de Raz. Just west of it along Newfoundland's south shore is Cape St. Mary, as C: St Me.


But some of the place names on this map are different. For example Prince Edward Island, the bright red island west of Newfoundland in the Gulf of St. Lawrence, easily recognizable by its crescent shape, is Ye des avenes (Île des avenes, meaning Isle of the Birds?). It's a common story in eastern Canada that names given by the French when it was Nouvelle France were overwritten later by the British when they expelled the French in the eighteenth century. So seeing these early French names is like peeling back the wallpaper to uncover how the room was decorated by the previous owners.



However, this replacement of names is generally not the case in Quebec, which retains most of the original French names. And in fact, looking over at the area up the St. Lawrence, you can see a red island where the river narrows, labelled Ye dorle, probably today's Île d'Orleans, next to the city of Quebec. The big river flowing into the St. Lawrence just downstream, labelled R. de saqnay, and coming from a region labelled Sagne must be the Saguenay River. These are easy connections to make, but they are satisfying.

What really sticks out like a sore thumb here is that big gold island at the mouth of the St. Lawrence. That can only be the Île d'Anticosti, but it's labelled Ye de Taveipel, or Laveipel. What is that? And the lake upstream , perhaps Lake Ontario, or even the smaller Lac de St. Pierre (which his halfway between Montreal and Quebec City) seems to be labelled Le Lac daugonlusme. What is that?


As I started to look further afield for some record of these old names, my interest was sharpened by the discovery that Google returns no results for Taveipel, Laveipel or daugonlusme. I have still not found the answers of what these names meant, but I have learned more.


The Desceliers map, in the St. Lawrence area, had to have been based on information gathered during the voyages of Jacques Cartier. Cartier travelled to New France in 1534, 1535 and 1536. Although he was a successor to Columbus, Cabot, Verrazano, Gomez and others, he was the first European explorer to push up a big river in North America. All of the others had noted rivers, and named them, but had sailed past them, looking only for the large sea passage that would lead to the Orient. Cartier's exploration around the Gulf of St. Lawrence (the water between Newfoundland and the mouth of the St. Lawrence) and up the St. Lawrence River itself marks, in effect, Europeans finally letting go of the dream of a shortcut to China, and taking a closer look at the new world they had on their hands. Exploration of the St. Lawrence, then, predates exploration up the Hudson, or into Chesapeake Bay.


When Cartier went up the St. Lawrence he found two native Iroquois communities: the Stadaconans, who lived near present day Quebec (the narrowing of the river above the red island) , and the Hochlagans, who lived on the island where today's city of Montreal sits. He wintered with the Stadaconans. Both Stadacona and Hochelaga appear on the map repeatedly around the St. Lawrence as ochelaga and estadacone, but not in any one specific place. What seems to read Totunagi, deep inland where another big river joins the St. Lawrence, could be Tutonaguy, which was one of two villages Cartier mentions at Hochelaga. (The Ottawa River joins the St. Lawrence at Montreal.)


A couple days after I began studying this map, I noticed that, on the Desceliers map, on the north shore of the St. Lawrence, across from the gold island, there is a R: de Lareipel. This has to be the same name as the island, but being printed more clearly reveals that I had been reading the island's name wrong: it is Île de Lareipel. Still no Google results though.


The lake up the St. Lawrence (Le Lac daugonlusme) is most likely Lac Saint-Pierre for several reasons. Cartier never made it to Lake Ontario. The splitting of the river at Totunagi corresponds to the way the Ottawa river comes in from the northwest at Montreal. Lac Saint-Pierre is the only lake along the river downstream from Montreal, and, just as on the Desceliers map, there is a major river entering the lake from the south: we call it now the Saint Francois.


Other named features along the St. Lawrence to Saguenay include R[ivier]: de toues and B[aie]: de Lisler. R: de toues must be today's Rivier Saint Maurice. (Toues appear to be a kind of boat.) But Lisler, like Lareipel, does not show up on an internet search.

In the end, this map gives up some names, but others it withholds. It's an intriguing and ongoing puzzle.

Thursday, August 20, 2009

Banff

It’s identified as “Banff National Park” on my old, 1998 Alberta highway map. But on my new, two dollar (Alberta is the only province that charges for its highway map), 2009 Alberta highway map it is clearly labelled "Banff National Park of Canada."

Jasper National Park has likewise been changed to the arguably redundant "Jasper National Park of Canada." What can this mean? Were tourists overheard thinking they were in the United States? Were people confused about whether a "National Park" was provincial or federal? Is Alberta making a statement about Quebec, the province that aspires to be its own country and calls each of its provincial parks a "Parc National?” Who controls the names on the Alberta highway map? Unfortunately the marginalia on the map itself offers us no clues to the answers.

But this is just the beginning.

We drove into Banff park on the Trans-Canada highway from Calgary, which is probably the way that the vast majority of the park’s visitors arrive. You will assume, dear reader, as I did, that an information centre will be easy to find near this entrance: there will be a place to stop and get a map, and find out where you can camp, where the trailheads are, and so on. It’s probably going to be a big building, with a big question mark sign, just inside the park. Within the building will be all sorts of displays and friendly staff. Unless you enter the park at, say, midnight, you can count on this sort of thing. Come on: it’s Canada ‘s oldest and most famous National Park.

Now, what does the traveller want from a map? He wants to be able to locate himself on the road, and see what’s ahead. He wants to know where trails go, and where they are in relation to campgrounds. He wants to be able to recognize the landmarks that he’s going to pass: campgrounds, road junctions, information centres, trailheads, viewpoints, hostels, and so on. He wants contour lines on the map, so he can see peaks and ridges and understand what kind of terrain he might go through. But at the park gate, the man who collected our fee had only a newspaper-like brochure for us. On one page, between the stuff about bears and the history of the park, with a small map of the park. It had a table explaining the facilities at each campground, which was good. But it was basically just a small road map.

We were sure the ideal map must exist; after all this was Banff. There must be this big, lovely map we could buy with everything on it. The One Map, the holy grail of Banff travellers. Where was that big visitor’s centre, anyway?

Banff National Park has the odd situation of having a town actually inside the park, a situation that, I think, we can argue has gotten out of Parks Canada’s control. The visitor’s centre turns out to be located within the town of Banff, in the heart of downtown, where the traffic and holidaymakers are thickest and the parking the most scarce. Parks Canada has apparently never removed the visitor centre to a more accessible place. This was the story I told myself, anyway, as we stalled in bumper-to-bumper traffic, looking for a parking place, goggling at the myriads of holidaymakers shopping both sides of Banff Avenue.

Sadly, we did not emerge from the visitor centre with the One Map. We came out with the Three. The One Map, a series of Gem Trek maps with all the details, was out of stock. But the Three, between them, in theory, would provide us with all the information we needed. Here is the odd trio:

  • The Gem Trek Banff and Jasper map, 1:400,000. It’s essentially a road map. Terrain appears flat. Campgrounds, roads and hostels are all well marked, but no contours, viewpoints, or trails. On the plus side, it does have selected “points of interest,” which are numbered, with little summary text descriptions. Most of these are viewpoints, but sometimes trails are mentioned. We called this one the “Big Map.”
  • Parks Canada’s The Icefields Parkway brochure. It’s a little linear map, meant to guide you along the Icefields Parksway. Handily, it shows every campground, hostel, trailhead and viewpoint; but it shows neither trails nor contours. It’s like a diagram of the roadside signage you’ll pass. There’s no sense of the terrain on either side of the road; peaks are roughly shown with triangle icons, which is really just a cartoon of what’s there. And, to make things a little more interesting, none of the campground, trailhead, etc. icons on the map is labelled; you have to look at the “Points of Interest” table that spills down the left side of the brochure, with the kilometre mark and name of each, and figure out the order, and thereby which is which. Also, this map is only for the Icefields Parkway, which means that until you’re north of Lake Louise, you can just leave it in the glove compartment.
  • Parks Canada’s Day Hikes In Banff National Park brochure. It shows roads, and the trailheads, with trails branching off alongside. It looks like a good way to assess the trails: there’s a nice profile and description for each trail. But, perversely, it lacks campgrounds, viewpoints, hostels and contours! So it’s very difficult to relate it to the other maps. Also (wouldn’t you know?), it has its own numbering scheme for the trails, unrelated to the other two maps. As well, the map is broken into four sub-maps to fit it on the paper, so every time you unfold it, you have to re-orient yourself to whether you’re on map A, B, C or D.

So, a typical front-seat conversation between me and my navigator went like this:

What’s between here and Waterfowl Lakes campground?

[Rustling of maps to get Icefields Parkway on top] It looks like we pass a trailhead and a bunch of viewpoints. They’re called [lots of looking back and forth between the map and the Points of Interest” table] Helen and Katherine Lakes trailhead, Crowfoot Glacier viewpoint, Bow Lake viewpoint…

Where does that ‘Helen and Katherine Lakes’ trail go?

Well, hang on. [rustle over to Day Hikes] Where the hell are we? It must be this trail number 50, but here it’s only called “Helen Lake.” It says 6 km, 455 metres, 4-5 hours round trip.

What does the big map say?

Uh, [rustle, rustle] nothing here about a trailhead in this part of the highway. The next one they show is at Bow Summit, a ‘0.6km asphalt interpretive trail’ to Peyto Lake. But, [rustle back to Icefields Parkway] on this map there’s no ‘Bow Summit,’ just ‘Bow Pass’ and the trailhead is called ‘Peyto Lake.’ [Rustle over to Day Hikes] On this one that trail’s not even mentioned.

But this is not yet the complete picture of the “broken” nature of Banff park. There’s also a mysterious signage problem. As we were driving along we would pass signs with the trailhead icon on them and no name. Were we just supposed to pull off in good faith that it would be an interesting trail?

The next morning, at Waterfowl Lakes campground, we read in Day Hikes that, to find the Chephren Lakes trailhead, one should “Enter the campground and stay right, skirting around the northern edge of the facility to the trail kiosk.” We’d been in the campground all night, so we had a fair idea of its layout. We went down to the north end, and indeed there was a trailhead sign and small gravely trail along the river.

But this trail was supposed to cross the river; at least that’s what Day Hikes showed. If we had been in the backcountry I’d have assumed we were to wade it; but there, at a campground on the highway I’d assumed there’d be a bridge. But where’s the bridge? No bridge.

On the off chance that our directions were wrong, we walked along the path upstream, and five minutes later, in the middle of the west side of the campground, we found another trailhead, and a bridge!

It’s like the right hand doesn’t know what the left hand is doing.

Banff Park: great place to visit. Just remember, you’ll have to think for yourself.

Monday, April 20, 2009

Finding A Map

I’m intrigued by this problem: you find a book about someone travelling in Nepal, or about a certain forest in Poland, or about the highlands of Costa Rica, and you want a good map of the area.

You want, it turns out, a topographic map, usually at 1:50,000 or 1:100,000, a map you could use to follow a route. It has all the landmarks local people and travellers use: the rivers are labelled, the peaks are labelled, and towns and hamlets are labelled.

So where do you turn? Specifically, I’m interested in where you turn on-line, and this is for two reasons which more or less define this particular game I’m playing. First, it should be free. Second, it should be automatically generated.

In a sense, I’m posing a challenge here: who can make an automatic map-generator that works at any scale and is map-based, rather than imagery-based.

Within certain countries, excellent local solutions exist. For example, if your area of interest in in the US, WorldWind and the USGS topo-map server give you an awesome abilty to pan around on topo maps of various scales draped over a digital elevation model. In Canada you can use toporama, or EarthDetails, or you can download the CanMatrix images of scanned topo maps. In Norway you can visit a lovely site whose name I forget where you are panning over topo maps at many scales.

Note that I’m not looking for free data; images of maps is fine.

To the extent that the solutions are going to be provided on a country-by-country basis, what’s missing is a central clearinghouse of links to topo maps for various countries.

Friday, October 17, 2008

Thoughts On Google Earth

Today I observed Kate and Galen solving a geography puzzle using Google Earth. It brought to mind a couple ideas about Google Earth and how it is changing the way we see things.

The problem that Kate and Galen were working on was to go from Isfahan, Iran, “northeast, and find a capital city below the Hindu Kush, on the banks of a river of the same name, west of the Khyber Pass.” They were using Google Earth and they were having trouble doing it.

fig. 1: National Geographic's map of Central Afghanistan

This is first because Google Earth, contrary to popular impression, is not a map. It is a photograph. A map contains interpretation whereas a photograph is raw data. On a map, certain things are pulled forward, such a capital cities, and other things are pushed back (small villages). Collective features are named, such as mountain ranges and deserts. Linear features that are actually very thin, such as rivers, are named and marked. The interpretation offers you a reading of the landscape where some things are important, and others are not. A detail of National Geographic’s Asia map (fig. 1) illustrates map-making.

Google Earth in contrast offers everything in equal weight. There is little interpretation-–pretty much limited to whether there are GE icons there. Note that a GE “map” of Afghanistan (fig. 2)

Fig. 2: Google Earth, Afghanistan

is strong on point and polygon features (towns, countries) because its easy to give the computer automated ways to place labels for these. It’s correspondingly weak on linear features such as rivers, and features that don’t really have boundaries, such as passes and mountain ranges.

The reason is that there’s no easy way to tell a computer how to label such features–where do you put the river’s name along the river, and how many times? How do you arc words to suggest the imprecise yet very real bounds of the mountain range? It’s this kind of labelling that human cartographers do well: each label is put on with love (which is why it’s unwise to rush a cartographer, or the love disappears).

The answer is Kabul, Afghanistan. It’s so easy to see this on the Nat Geo map, which identifies the Kyber Pass and the Hindu Kush, and so hard on the GE photo, which does not. At first it’s tempting to say that the Nat Geo map is therefore better. However, I’d suggest that the reason the quiz question was phrased the way it was is because we are used to looking at maps, not photos.

GE photos are strong on point features and coordinates, so you wouldn’t describe a place as “below the Hindu Kush, on the banks of a river of the same name, west of the Khyber Pass.” You’d say it was at latitude 34.5541N, longitude 69.1594E, elevation 1890m above sea level. Also, fFrom a quiz point of view there’s not much fun in that.