{"id":2378,"date":"2023-07-21T08:12:00","date_gmt":"2023-07-21T06:12:00","guid":{"rendered":"https:\/\/bc5.uber.space\/wordpress\/?page_id=2378"},"modified":"2023-07-21T08:12:36","modified_gmt":"2023-07-21T06:12:36","slug":"create-your-own-map-2","status":"publish","type":"page","link":"https:\/\/bc5.uber.space\/wordpress\/?page_id=2378&lang=en","title":{"rendered":"Create your own map"},"content":{"rendered":"<p>Creating maps has become very easy as long as your desired map is not too large.<\/p>\n<p>Go to <a href=\"http:\/\/extract.bbbike.org\" target=\"_blank\" rel=\"noopener\">extract.bbbike.org<\/a>. Select on the left &#8220;Mapsforge OSM&#8221; as format. Go to your desired area and create a bounding box over it. Check the pre-calculated map size on the left. It must not exceed 400 MB. Enter you email and a name for the file. Push extract. Depending on the file size you will receive a mail containing a link to a zip file within 15 min up to some hours. When downloaded and unzipped you find a .map file named after the locations of the bounding box. Rename it as you like, leaving the extension &#8220;.map&#8221;. Copy it to your phone and select it. You&#8217;re done!<\/p>\n<p>If you need larger files follow the long tutorial :<\/p>\n<p>This is a tutorial how to create your own map. You should have some experience with the terminal and some time<br \/>\nThe Tutorial was originally created by <a href=\"http:\/\/tinkerpete.wordpress.com\/2011\/02\/12\/wie-kann-man-openstreetmap-in-%E2%80%9Amap%E2%80%99-dateien-fur-gpssend-konvertieren\/\"> Tinkerpete. <\/a><br \/>\nThere are two ways to create a map:<br \/>\n1. Clip an area directly from extract.bbbike.org<br \/>\n2. download precompiled raw data from cloudmade, which covers the usual regions and hence is about the same as the maps which are already available<\/p>\n<p>Therefore I describe only the first, if you want the second look at <a href=\"http:\/\/tinkerpete.wordpress.com\/2011\/02\/12\/wie-kann-man-openstreetmap-in-%E2%80%9Amap%E2%80%99-dateien-fur-gpssend-konvertieren\/\">Tinkerpete&#8217;s<\/a> site !<\/p>\n<p>Select on <a href=\"http:\/\/extract.bbbike.org\">extract.bbbike.org<\/a> the wanted area, set an name, a mail adress and note down the box coordinates as they are needed later! Select pbf as file format and click finally on \u201aextract\u2019. You will get a mail with the link to the file after some time !<\/p>\n<p>Now you need the following programs:<br \/>\n1.<a href=\"http:\/\/wiki.openstreetmap.org\/wiki\/Osmosis#Latest_Stable_Version\"> Osmosis <\/a><br \/>\n2.<a href=\"http:\/\/code.google.com\/p\/mapsforge\/downloads\/detail?name=mapsforge-map-writer-0.3.0-jar-with-dependencies.jar&amp;can=2&amp;q=\"> Mapsforge Mapwriter <\/a><br \/>\nInstalled Java is mandatory.<\/p>\n<p>In the osmosis-Root-folder create a folder &#8220;plugins&#8221; and move there the \u201amapsforge-mapfile-writer-0.3.0.jar\u2019 and two folders &#8220;data&#8221; and &#8220;tmp&#8221;<\/p>\n<p>Now place the downloaded osm.pbf file into the \/data folder. Move in the terminal to the osmosis root folder. When done you need only one command for creating the .map file:<\/p>\n<pre>bin\/osmosis --rb file=data\/<strong>map.osm.pbf <\/strong>--mapfile-writer file=tmp\/<strong>mymap.map<\/strong> bbox=<strong>45.8594,10.8402,45.8995,10.8986<\/strong><\/pre>\n<p>Set in bbox your coordinates in the right order! On Windows : replace \/ by \\ !<br \/>\nNow it will take some time, depending on the amount of data and the power of your PC ! For a 1 GB file it will take a whole day! When done the file will be in the &#8220;tmp&#8221; folder.<\/p>\n<p>Some extra advices, thanks to Stephan for these:<\/p>\n<blockquote><p>To make it work out, the JAR files must have the X flag set. Make them executable with chmod + x. If you get an OutOfMemoryError you must enlarge the Java heap size. In the \/bin directory edit the file <em>osmosis<\/em> and add in the first place the following:<\/p>\n<pre>JAVACMD_OPTIONS =-Xmx2048m<\/pre>\n<p>The latitude\/longitude in the extract tool are the other way around as osmosis expects them. So swap the values, otherwise you get only empty files!<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Creating maps has become very easy as long as your desired map is not too large. Go to extract.bbbike.org. Select on the left &#8220;Mapsforge OSM&#8221; as format. Go to your desired area and create a bounding box over it. Check &hellip; <a href=\"https:\/\/bc5.uber.space\/wordpress\/?page_id=2378&#038;lang=en\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-2378","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/bc5.uber.space\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/2378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bc5.uber.space\/wordpress\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bc5.uber.space\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bc5.uber.space\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bc5.uber.space\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2378"}],"version-history":[{"count":2,"href":"https:\/\/bc5.uber.space\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/2378\/revisions"}],"predecessor-version":[{"id":2380,"href":"https:\/\/bc5.uber.space\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/2378\/revisions\/2380"}],"wp:attachment":[{"href":"https:\/\/bc5.uber.space\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}