{"id":19034,"date":"2020-07-14T08:56:21","date_gmt":"2020-07-14T12:56:21","guid":{"rendered":"https:\/\/nuxx.net\/blog\/?p=19034"},"modified":"2020-12-27T10:08:10","modified_gmt":"2020-12-27T15:08:10","slug":"cramba-trails-outline-poster-from-osm-data","status":"publish","type":"post","link":"https:\/\/nuxx.net\/blog\/2020\/07\/14\/cramba-trails-outline-poster-from-osm-data\/","title":{"rendered":"CRAMBA Trails Outline Poster from OSM Data"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/nuxx.net\/pdf\/CRAMBA%20Trails%20Outlines%20-%20July%202020.pdf\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nuxx.net\/blog\/wp-content\/uploads\/2020\/07\/Artboard-1-1-663x1024.png\" alt=\"\" class=\"wp-image-19036\" width=\"332\" height=\"512\" title=\"CRAMBA Trails (July 2020)\" srcset=\"https:\/\/nuxx.net\/blog\/wp-content\/uploads\/2020\/07\/Artboard-1-1-663x1024.png 663w, https:\/\/nuxx.net\/blog\/wp-content\/uploads\/2020\/07\/Artboard-1-1-194x300.png 194w, https:\/\/nuxx.net\/blog\/wp-content\/uploads\/2020\/07\/Artboard-1-1-768x1187.png 768w, https:\/\/nuxx.net\/blog\/wp-content\/uploads\/2020\/07\/Artboard-1-1-994x1536.png 994w, https:\/\/nuxx.net\/blog\/wp-content\/uploads\/2020\/07\/Artboard-1-1-1325x2048.png 1325w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Finding myself a little bored, I put together a poster (11&#8243; x 17&#8243;) showing outlines of the <a href=\"https:\/\/cramba.org\">CRAMBA<\/a>-supported trails on one overview. (<a href=\"https:\/\/nuxx.net\/pdf\/CRAMBA%20Trails%20Outlines%20-%20July%202020.pdf\">Link<\/a>)<\/p>\n\n\n\n<p>This ended up being more popular than I expected, with a handful of people wanting to know how I did it, so I&#8217;ll detail the steps here:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Ensure that all the trail routes are in <a href=\"https:\/\/www.openstreetmap.org\/\">OpenStreetMap<\/a>.<\/li><li>Using <a href=\"https:\/\/josm.openstreetmap.de\/\">JOSM<\/a> load each trail area one at a time and make an <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/OSM_XML\">OSM XML<\/a> file with just the data you want outlined:<ol><li>Select the ways which comprise the trail you want shown.<\/li><li>Create a new data layer (Command-N).<\/li><li>Make the original data layer active.<\/li><li>Copy the selected data from the first layer to your new layer with <em>Edit<\/em> \u2192 <em>Merge Selection<\/em> (Shift-Command-M).<\/li><li>Hide the original data layer.<\/li><li>Review the new layer to be sure it has everything you want.<\/li><li>Select all nodes and ways (Command-A) and remove all tags to make later processing easier.<\/li><li>Look good? Is everything you want in the new layer? Save it to a <code>.osm<\/code> file and do the next trail.<\/li><\/ol><\/li><li>Once you have an OSM file for each trail, convert them to <a href=\"https:\/\/www.adobe.com\/products\/illustrator.html\">Adobe Illustrator<\/a> format using <a href=\"https:\/\/nuxx.net\/blog\/2013\/02\/05\/osm2ai-pl-w-josm-xml-support\/\">this version of osm2ai.pl<\/a>.<ol><li>Get <code>osm2ai.pl<\/code> working on your computer. I run this on macOS, and it works fine on Linux as well. Since it&#8217;s a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Perl\">Perl<\/a> script there are probably some dependencies; likely resolved by installing a few modules.<\/li><li>Process each OSM file with: <code>osm2ai.pl --input infilename.osm --projection mercator --output outfilename.ai<\/code><\/li><\/ol><\/li><li>Open each file in Illustrator, combine them into a larger document, make it look the way you want, etc.<\/li><li>Done!<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finding myself a little bored, I put together a poster (11&#8243; x 17&#8243;) showing outlines of the CRAMBA-supported trails on one overview. (Link) This ended&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/nuxx.net\/blog\/2020\/07\/14\/cramba-trails-outline-poster-from-osm-data\/\">Continue reading<span class=\"screen-reader-text\">CRAMBA Trails Outline Poster from OSM Data<\/span><\/a><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,11,57],"tags":[],"class_list":["post-19034","post","type-post","status-publish","format-standard","hentry","category-cycling","category-making-things","category-mapping","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/19034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/comments?post=19034"}],"version-history":[{"count":7,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/19034\/revisions"}],"predecessor-version":[{"id":19043,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/19034\/revisions\/19043"}],"wp:attachment":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/media?parent=19034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/categories?post=19034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/tags?post=19034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}