Filed under: tips
One of Potlatch’s least-known, but most powerful, features is the ability to directly import a GPS track.
Everyone knows that you can click the little eTrex-like GPS icon in the bottom left and show GPS points for the current area. But what if you want to import a whole day’s tracklog at once?
Upload your track as usual. Then, on the ‘GPS Traces’ tab on the site, click the ‘edit’ link to the right of your track – not the one at the top of the screen. Potlatch will open, and after a few seconds, your track will appear in the usual light blue… and you can trace over it as usual.
Extra features
That’s the summary. Here are the fun bits.
First of all, this way, you don’t have to wait for the track to be imported into the database – you can work with it as soon as it’s uploaded. This is hugely useful on Sunday evenings when everyone is uploading their weekend’s mapping and the upload queue stretches to the next continent and back.
Secondly, the waypoints are brought in, too. So you can use your GPS to mark up things you saw while mapping – a gate across a road, perhaps, or the point where a road becomes a track – and get these notes directly into Potlatch. Waypoints are imported as POIs (points of interest), but are “locked”, so they don’t get automatically uploaded to the database. (If you do want to upload them, then just tag them up properly, then click the little padlock by the POI number, and deselect as per usual.)
Automatic conversion
The really, really good bit is that you can automatically convert your tracks to ways. This is no use when you’ve been mapping a housing estate, of course, because you’ll have doubled back on yourself at every cul-de-sac, gone up and down the same road several times, and so on. So you should still trace manually then.
But if you’ve driven along a winding 50-mile rural road, this feature can save you an awful lot of tracing.
To take advantage of this, wait until the GPS track has loaded (light blue line), and then click the ‘Track’ button at the bottom of the page. After a few seconds, a new, bright red way will appear.
Like the waypoints, this way is “locked”, so it’s not uploaded to the database. What you should do is split it, join it to existing ways, and tag it properly – basically, make it a proper part of the map. Then, when you’ve finished, click the little padlock by the way number. The way will turn from red to its proper colour. As usual, deselect to upload.
Converting GPX tracks directly to ways can have a pitfall: if you’ve recorded a trackpoint every second, that’s a lot of unnecessary points on long, straight journeys. So Potlatch does a couple of things to avoid this. When you click ‘Track’, it “simplifies” the track to remove all the unnecessary points on straight lines. (For the curious, this is done using the Douglas-Peucker algorithm.) And it won’t let you unlock a way if there’s more than 200 points, so you should split it into smaller ways first.
Advanced features
As part of Potlatch 0.8b, I’ve added a couple of power-user refinements to the GPS track import. Most users won’t need them, but if you find yourself using this feature a lot, you may appreciate them.
If you find the tracklog-to-way simplification too coarse, and think it makes curves too jagged, you can now hold Shift when clicking ‘Track’. This will run a finer simplification over the track.
(Should Flash ever give you a warning like “A script is causing Flash Player to run slowly”, just continue – don’t abort it. Processing a 20,000-point track can be fairly intensive work. :) )
You can now also edit the query string (the part of the URL after the ‘?’). Usually you’d just have something like ‘?gpx=97019′ – i.e. edit track 97019. But you might want to start editing at a particular latitude and longitude, so you can supply those too: ‘?gpx=97019&lat=51.5&lon=-2.1′. You can also load more than one track at once, by separating the numbers with commas: ‘?gpx=97019,97021&lat=51.5&lon=-2.1′. This is useful if your waypoints are all in one file and your tracklogs in another.
All of Wales and the Marches are now available at 1in-to-the-mile in Potlatch’s out-of-copyright map layer. The scans are from the New Popular Edition, published by the Ordnance Survey in the 1940s, and are great for tracing rivers and rural roads.
It’s only visible at zoom level 14, so you’ll need to zoom in/out until you’re at the right level – hover over the ‘Edit’ tab and look at the URL to find which level you’re in. (Eventually, I hope to add overview scales lower than 14.)
Birmingham and the Chilterns are also on there, by request. If you’d like to request an England and Wales sheet to be added sooner rather than later, please add it to the wiki page.
A few tips:
- When tracing from an NPE (or any other) background, you can drag the background while holding Space to realign it. Try to align a GPS-derived road with the corresponding feature in the background.
- With NPE, bear in mind that the layer is compiled from many individual map sheets, and the misalignment will vary from sheet to sheet – so try to align it with a feature on the current sheet. Realign often!
- Most of the roads in a rural area will be in the same place 50 years ago, but classifications often change, particularly in very remote areas. Many of the “tracks” on the Wales sheets are now proper tarmaced roads.
- It’s good practice to add a “source=NPE” tag to indicate where you traced the road from.
Misaligned tiles
Occasionally you’ll find a tile that’s clearly in the wrong place. As I write, that’s true of a bit on the coast near Criccieth, and a whole chunk around South-East Wales and the Wye Valley. This is usually the result of me accidentally missing out an anchor point when “rectifying” the scans. If you find a mistake like this, please add it to the wiki page.
Filed under: tips
You can choose from several different background layers using the preferences/options window (the tick icon). But if you’d like to quickly switch between them, you can also use the function keys. The keys are in the same order as the menu, so:
f1: none
f2: OpenAerialMap
f3: Yahoo
f4: Mapnik
f5: Osmarender
f6: Maplint (errors)
f7: cycle map
f8: out-of-copyright map (as of Potlatch 0.8)
If you hold down Shift while pressing any of these keys, it will dim the layer (show it at just 50%), so that ways and points stand out more clearly.
Remember that Potlatch will automatically hide the Yahoo layer in the event that there’s no imagery for the zoom level you’re at. In that case, switching to OpenAerialMap will give you magnified aerial imagery (Landsat).
Filed under: tips
One of the quickest ways to speed up your Potlatch editing is to turn off the ‘custom pointers’ – the little pen and hand pointers.These provide useful feedback as to what clicking on a given spot will do, but if you’re an experienced Potlatch user, you probably don’t need the help.
To turn off the pointers, just click the options window (the ‘tick’ icon) and uncheck ‘Use pen and hand pointers’. From then on, you’ll just have Flash’s standard arrow and finger pointers.
Potlatch remembers your preference, so you don’t need to do this every time you open it.