Clifford Snow bio photo

Clifford Snow

Clifford is described as an OpenStreetMap Supper Mapper. He started contributing to OSM in May 2011. Hosts OpenStreetMap-Central-Salish-Sea Meetup Group located in Mount Vernon, WA. He help organize the 2016 State of the Map US in Seattle. His prior endeavors include glassblowing, managing an art center facility and telecom management.

Twitter LinkedIn Github

JOSM Background Layer

Now that we can find missing roads with the plan developed in Finding Errors it is time to move on to aligning the roads.

Up until now, the easiest way was to convert the roads shapefile into an .osm layer for JOSM. As the image below shows, aligning roads using Bing Imagery and the .osm layer works just fine. Until you want to check road name. The .osm layer doesn’t display the name or any other attribute for that matter.

JOSM with OSM Background

Using a tile background solves that problem. Looking at the image below, the road name is displayed along side for easy comparison to OSM data.

JOSM using Tiles in the Background

Here is what is needed to create your own backgrounds for JOSM.

  • TileMill for creating tiles
  • TileStream for serving up the tiles
  • POSTGIS connection to road data

Check out TileMill documentation for help installing and creating tiles.

#skagitroads {
  		line-width:5;
  		line-color:#00ff00;
  		line-cap: round;
 	*/
::labels[zoom > 13]{ text-name: [fullname]; text-face-name: ‘Helvetica Bold’; text-fill: #fff; text-placement: line; text-dy: 12; text-size:14;
	}
  	}

Tilestream was easy to install. My only hangup was to update Homebrew before starting.

TileMill’s default is to save the tiles in my ~/Documents/MapBox/export folder. Move the tiles.mbtiles file to ~/Documents/MapBox/tiles. You could create a symbolic link but I just moved the files.

Start Tilestream ./index.js

Open localhost:8888 in your browser to verify that everything is working. Select your new tiles. Once open, click on Info to get the tile URL to paste into JOSM.

Tilestream URL

In this case the url is http://localhost:8888/v2/SkagitCountyRoads/{z}/{x}/{y}.png

Finally, enter the tile url into JOSM. Select the TMS icon to add your new tiles to JOSM.

JOSM add TMS


comments powered by Disqus