Re: [talk-au] I feel like such a newbie
On 18/07/12 01:46, SomeoneElse wrote: FWIW recent splitter and mkgmap versions should work OK with pbf files, I think. Thanks for the tip. I'm happy to report that I've updated my splitter and mkgmap, and have created my gmapsupp.img from australia-oceania.osm.pbf without using osmosis at all. I note however that mkgmap spat out this one warning: SEVERE (LineSplitterFilter): 63240017.osm.gz: Way (http://www.openstreetmap.org/browse/way/143243495) has a max dimension of 32767 and is about to be split (routing will be broken) I haven't got to the bottom of what's going on there. John ___ Talk-au mailing list Talk-au@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-au
Re: [talk-au] I feel like such a newbie
FWIW recent splitter and mkgmap versions should work OK with pbf files, I think. (although I still convert to .osm myself, using osmconvert: https://wiki.openstreetmap.org/wiki/Osmconvert ) Cheers, Andy ___ Talk-au mailing list Talk-au@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-au
Re: [talk-au] I feel like such a newbie
Hi Brett, You've made remarkable progress in a very short time! I'm a Linux user rather than Windows, so I can be of limited help there. I can add to Steve's reply. Firstly, you need to convert that pbf file to an osm one. You use the osmosis program to do that. http://wiki.openstreetmap.org/wiki/Osmosis Here's the Linux script I run to turn the pbf file I download into the Garmin gmapsupp.img file. It's a routable "road" map for my Garmin nuvi car GPS unit. I also create a cycling-orientated map for my Garmin 60CSx. #!/bin/sh cd $HOME/OSM/mkgmap/style/work /usr/user/osmosis-0.39/bin/osmosis --read-bin $HOME/OSM/mkgmap/style/australia-oceania.osm.pbf --write-xml australia.osm /usr/bin/java -Xmx1400M -jar /usr/user/splitter-r181/splitter.jar --cache=/tmp --output=xml australia.osm rm australia.osm /usr/bin/java -ea -Xmx1400M -jar /usr/user/mkgmap-r1995/mkgmap.jar --remove-short-arcs --style-file=$HOME/OSM/mkgmap/style/roadrte --route --gmapsupp -c template.args mv gmapsupp.img $HOME/OSM/mkgmap/road rm *.* cd I hope it hasn't wrapped, and still makes "Unix-sense". I've inserted blank lines for readability just in case. Note that I need to use the splitter because my australia.osm file is so large. The splitter creates a series of manageable (smaller) osm files. John On 17/07/12 20:52, Brett Russell wrote: Ok thanks to John I am starting the first baby step to using mkgmap so I have installed Java. It think it works as I am using JOSM and that worked. Downloaded a small sample file of the Walls area using OSM data extract as I could not as yet figure out the other option and "borrowing" Australia from another suggested site was a bit big in file size for me and I was hoping to avoid splitting at this stage working on the KISS principle. This created a Walls_test.OSM file. Now quite chuffed with progress but then came unstuck here with this command line instruction. java -jar mkgmap.jar --route --remove-short-arcs --add-pois-to-areas --index --gmapsupp *.osm.pbf Now this is were my newbie status shows in spades. Am I correct to assume that this is a DOS command line instruction? If it is I then get this error 'Java' is not recognized as an internal or external command, operable program or batch file. Now and ice age of two has passed since I used DOS or Unix in anger and something tells me for "java" to be recognized it needs to be in a path. Ironically I would have a better chance of doing this in Unix than DOS as I once used .profiles extensively in Unix. Now if you have fallen off your chair laughing as this is not a command line instruction then please point me to what I should be doing. Also big hint on scripts would be good. I assume it might be a text file you write/steal/borrow? The idea is to create a MEM (Middle Earth Map for an Ent) just for Tassie at this stage with the zoom levels optimised for bushwalking. By that, big peaks and foot tracks showing up big time. As mentioned I played with the OSM_Australia *.IMG files with good success but they are optimised for motorised wheel machines not the la (or is is le?) ped. The ultimate is to bring contours and wait for it, natural features such as heath which is code for somewhere to pitch a tent. If I get it right then from the satellite imagines I should have a few spots pre-worked out. For those that have walked you can be five metres away from a perfect campsite but never know it. As again any pointers greatly appreciated. ___ Talk-au mailing list Talk-au@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-au
Re: [talk-au] I feel like such a newbie
Brett Russell wrote: 'Java' is not recognized as an internal or external command, operable program or batch file. That just means that Java isn't on your path. Where Java.exe will be will depend on your version of windows, and which version of Java you installed. You'll probably find it somewhere like here: C:\Program Files (x86)\Java\jdk1.6.0_32\bin or here: C:\Windows\SysWOW64 Although (as somebody else mentioned) you can download pre-built Garmin maps of various types, if you want to combine various bits of data you'll need to roll your own at some point, and you might as well start now. There's a bit of useful info on the OSM help site: help.openstreetmap.org/search/?q=mkgmap&Submit=search&t=question If you get stuck, you can also ask a new question there. Cheers, Andy ___ Talk-au mailing list Talk-au@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-au
Re: [talk-au] I feel like such a newbie
On Tue, Jul 17, 2012 at 8:52 PM, Brett Russell wrote: > Ok thanks to John I am starting the first baby step to using mkgmap so I > have installed Java. It think it works as I am using JOSM and that worked. > Downloaded a small sample file of the Walls area using OSM data extract as I > could not as yet figure out the other option and "borrowing" Australia from > another suggested site was a bit big in file size for me and I was hoping to > avoid splitting at this stage working on the KISS principle. This created a > Walls_test.OSM file. Now quite chuffed with progress but then came unstuck > here with this command line instruction. Hi Brett, Could you give us a bit of context what you're trying to achieve? Are you playing around with generating maps for the fun of it - if not, there might be easier ways to get the maps you want using existing online services (like hikebikemap) or whatever. You could also ask on the general mailing lists (t...@openstreetmap.org) if it's not specific to Australia. > > java -jar mkgmap.jar --route --remove-short-arcs --add-pois-to-areas --index > --gmapsupp *.osm.pbf > > Now this is were my newbie status shows in spades. Am I correct to assume > that this is a DOS command line instruction? If it is I then get this error "Windows command prompt" rather than DOS, but yes. (The prompt bears a passing similarity to DOS, but DOS itself hasn't been around for a decade or more.) > 'Java' is not recognized as an internal or external command, > operable program or batch file. You need to install it then. Install the JDK version (Java development kit). > Now and ice age of two has passed since I used DOS or Unix in anger and > something tells me for "java" to be recognized it needs to be in a path. > Ironically I would have a better chance of doing this in Unix than DOS as I > once used .profiles extensively in Unix. Now if you have fallen off your > chair laughing as this is not a command line instruction then please point > me to what I should be doing. Also big hint on scripts would be good. I > assume it might be a text file you write/steal/borrow? What version of Windows are you using? If Java is installed but isn't in the path, do this: 1) Press windows key+Break 2) Advanced tab 3) Environment variables 4) Modify "path" variable to point to the bin directory of your Java installation. > The idea is to create a MEM (Middle Earth Map for an Ent) just for Tassie at > this stage with the zoom levels optimised for bushwalking. By that, big > peaks and foot tracks showing up big time. As mentioned I played with the > OSM_Australia *.IMG files with good success but they are optimised for > motorised wheel machines not the la (or is is le?) ped. There really are lots of other forms of Garmin maps that you can download from other places. Take your pic: http://wiki.openstreetmap.org/wiki/OSM_Map_On_Garmin/Download Steve ___ Talk-au mailing list Talk-au@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-au
[talk-au] I feel like such a newbie
Hi Ok thanks to John I am starting the first baby step to using mkgmap so I have installed Java. It think it works as I am using JOSM and that worked. Downloaded a small sample file of the Walls area using OSM data extract as I could not as yet figure out the other option and "borrowing" Australia from another suggested site was a bit big in file size for me and I was hoping to avoid splitting at this stage working on the KISS principle. This created a Walls_test.OSM file. Now quite chuffed with progress but then came unstuck here with this command line instruction. java -jar mkgmap.jar --route --remove-short-arcs --add-pois-to-areas --index --gmapsupp *.osm.pbf Now this is were my newbie status shows in spades. Am I correct to assume that this is a DOS command line instruction? If it is I then get this error 'Java' is not recognized as an internal or external command, operable program or batch file. Now and ice age of two has passed since I used DOS or Unix in anger and something tells me for "java" to be recognized it needs to be in a path. Ironically I would have a better chance of doing this in Unix than DOS as I once used .profiles extensively in Unix. Now if you have fallen off your chair laughing as this is not a command line instruction then please point me to what I should be doing. Also big hint on scripts would be good. I assume it might be a text file you write/steal/borrow? The idea is to create a MEM (Middle Earth Map for an Ent) just for Tassie at this stage with the zoom levels optimised for bushwalking. By that, big peaks and foot tracks showing up big time. As mentioned I played with the OSM_Australia *.IMG files with good success but they are optimised for motorised wheel machines not the la (or is is le?) ped. The ultimate is to bring contours and wait for it, natural features such as heath which is code for somewhere to pitch a tent. If I get it right then from the satellite imagines I should have a few spots pre-worked out. For those that have walked you can be five metres away from a perfect campsite but never know it. As again any pointers greatly appreciated. Cheers. ___ Talk-au mailing list Talk-au@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-au