[mkgmap-dev] Re: name in style file

2009-06-27 Thread Toby Speight
0 In article 4a464d60.6090...@free.fr, 0 frmas URL:mailto:fr...@free.fr (Frmas) wrote: Frmas I use the following line in my points style file : Frmas natural=peak {name '${name}'} [0x661d resolution 20] Frmas Frmas I have the appropriate 0x661d icon in my .TYP file. Frmas Frmas The icon is well

[mkgmap-dev] Re: ASTER elevation data

2009-06-30 Thread Toby Speight
0 In article 4a4a84bd.2090...@gmx.de, 0 Christian Gawron URL:mailto:christian.gaw...@gmx.de (CG) wrote: CG I already wrote a class to read SRTM data directly with mkgmap, CG i.e. without having to create the contours as separate (huge) files. 0 In article

[mkgmap-dev] Re: Questions related to practical usage of MKGMAP

2009-07-01 Thread Toby Speight
0 In article 4dda9d8f0907010913v4578a365g2b00b53839347...@mail.gmail.com, 0 Clinton Gladstone URL:mailto:clinton.gladst...@googlemail.com (Clinton) wrote: Clinton I believe there was a patch by Toby Speight posted to this Clinton list, and also patches and information from me with regard

[mkgmap-dev] Re: [mkgmap-svn] Commit: r1073: Add highway shields and other ways of modifying values in the style files.

2009-07-02 Thread Toby Speight
0 In article 20090702110711.ga13...@parabola.demon.co.uk, 0 Steve Ratcliffe URL:mailto:st...@parabola.demon.co.uk (Steve) wrote: Steve So I think that perhaps just using the '8-bit' codes everywhere Steve except in the final translation in Format6Encoder would just Steve work. Oh yes, that's

Re: [mkgmap-dev] Commit: r1265: Added --drive-on-left, --drive-on-right and --check-roundabouts options.

2009-10-21 Thread Toby Speight
0 In article 20091020141739.184f9...@crow, 0 Mark Burton URL:mailto:ma...@ordern.com (Mark) wrote: Mark For the GB data, enabling that test gives over 2000 warnings, the Mark vast majority of which are real problems that either break the Mark routing completely or at least give odd routes. I am

Re: [mkgmap-dev] [PATCH v5] - drive on left + roundabout direction checking

2009-10-21 Thread Toby Speight
0 In article 20091021152223.19ac5...@crow, 0 Mark Burton URL:mailto:ma...@ordern.com (Mark) wrote: Mark Hi Toby, It might be an idea to report the erroneous ways using the 'browse' URL of that way. For example: URL: http://www.openstreetmap.org/browse/way/34875101 Mark It already reports

[mkgmap-dev] Different representations according to resolution

2009-10-21 Thread Toby Speight
Is it possible to use different types at different resolutions? Example - I'd like a motorway to be a thin line when I'm zoomed out to 50km scale, but quite a thick line at the 120m scale. Also, it would be nice to have roundabouts rendered in the correct colour (motorway, trunk, primary, ...)

Re: [mkgmap-dev] highway-symbol and name

2009-10-25 Thread Toby Speight
0 In article 925e75ca0910250131m661f550qbf04efc18e312...@mail.gmail.com, 0 Ralf Reimann URL:mailto:ral...@gmx.de (Ralf) wrote: Ralf Toby Speight wrote: If you want that (ref but no name), then it's easy to change your lines style thus: / | highway=motorway {name '${ref|highway

[mkgmap-dev] Sea tiles problem

2009-10-25 Thread Toby Speight
I've just started using the --generate-sea option, and it almost works. The problem is that of the UK, the whole of northern Scotland (north of a line through Stirling) is inverted - i.e. the land is blue and the sea is light yellow (black at night). This is inconvenient, as that's where I live.

Re: [mkgmap-dev] Sea tiles problem

2009-10-26 Thread Toby Speight
0 In article 5175aa64-611c-44bb-aa72-dc87dbb3e...@googlemail.com, 0 Clinton Gladstone URL:mailto:clinton.gladst...@googlemail.com (Clinton) wrote: Clinton I think this option [--generate-sea] still needs to be refined. Clinton I have downloaded coastline extracts and specially processed Clinton

Re: [mkgmap-dev] Sea tiles problem

2009-10-27 Thread Toby Speight
0 In article 4ae592a2.7060...@gmx.de, 0 Christian Gawron URL:mailto:christian.gaw...@googlemail.com (CG) wrote: CG Could you provide me a download link for the offending tile? I don't have a server I can put it on, but I'm using Geofabrik's Great Britain extract[1], and this is the relevant line

Re: [mkgmap-dev] Sea tiles problem

2009-10-28 Thread Toby Speight
0 In article 4ae75888.8060...@gmx.de, 0 Christian Gawron URL:mailto:christian.gaw...@gmx.de (CG) wrote: CG Toby Speight schrieb: I don't have a server I can put it on, but I'm using Geofabrik's Great Britain extract[1], and this is the relevant line from the splitter: / | 63240015

Re: [mkgmap-dev] Sea tiles problem

2009-10-28 Thread Toby Speight
0 In article 20091028090135.5xnc2gt9ytc0w...@webmail.cferrero.net, 0 charlie URL:mailto:char...@cferrero.net (Charlie) wrote: Charlie Interesting that you got this to work - I tried on a file which Charlie just contained the UK coastline and nothing happened for four Charlie hours, so I killed

Re: [mkgmap-dev] NSIS patch

2009-10-28 Thread Toby Speight
0 In article 264ecb9d0910281351j20df494ar217a14afa3a2e...@mail.gmail.com, 0 Nakor URL:mailto:nakor...@gmail.com (Nakor) wrote: Nakor Please find attached a patch that will generate a .nsi file if --nsis is Nakor provided on the command line. One thing I noticed: Nakor + * @author Steve

Re: [mkgmap-dev] [PATCH] Display road name instead of ref in routing directions

2009-11-12 Thread Toby Speight
0 In article 234cd3b7-375c-4dab-873f-84002b874...@googlemail.com, 0 Clinton Gladstone URL:mailto:clinton.gladst...@googlemail.com (Clinton) wrote: Clinton That is, when you are outside and looking at the physical signs Clinton on the road, the 'ref' number of secondary roads does not usually

Re: [mkgmap-dev] access=no on a cycleway doesn't work?

2009-11-12 Thread Toby Speight
0 In article 7b06bd660910301407g284eeea4ibe39f3b60b268...@mail.gmail.com, 0 Federico Cozzi URL:mailto:f.co...@gmail.com (Federico) wrote: Federico access = no {add motorcar = no; add taxi = no; add bicycle = Federico no; ...} Or possibly / | access=* { add vehicle='${access}'; add

Re: [mkgmap-dev] access=no on a cycleway doesn't work?

2009-11-13 Thread Toby Speight
0 In article 7b06bd660910301407g284eeea4ibe39f3b60b268...@mail.gmail.com, 0 Federico Cozzi URL:mailto:f.co...@gmail.com (Federico) wrote: Federico access = no {add motorcar = no; add taxi = no; add bicycle = Federico no; ...} 0 In article 87iqdfqwpx@balti.ashgrove, 0 Toby Speight

Re: [mkgmap-dev] access=no on a cycleway doesn't work?

2009-11-23 Thread Toby Speight
I've had a look at assigning access values and now have the following at the head of my lines file: / | # Don't route over unsuitable roads | smoothness=horrible | smoothness=very_horrible | smoothness=impassable | { set motorcar=no; set hgv=no; set bicycle=no; } | smoothness=very_bad

Re: [mkgmap-dev] access=no on a cycleway doesn't work?

2009-11-24 Thread Toby Speight
0 In article 4b0b98cf.9070...@gmail.com, 0 Felix Hartmann URL:mailto:extremecar...@googlemail.com (Felix) wrote: Felix If there is a footway with smoothness=very_bad Felix Felix Only one of the above rules will be enacted. Felix Felix If you want that both happens, you have to put a rule: Felix

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-05 Thread Toby Speight
0 In article 20100205175428.33046...@crow, 0 Mark Burton URL:mailto:ma...@ordern.com (Mark) wrote: Mark ... a junction when that cannot be reliably inferred from the ways' Mark refs and/or names. Can we also try to infer through-routes from the presence of a 'route' relation containing the ways?

Re: [mkgmap-dev] Name .... once again

2010-02-06 Thread Toby Speight
0 In article 4b68344d.4080...@gmail.com, 0 Felix Hartmann URL:mailto:extremecar...@googlemail.com (Felix) wrote: Felix b) Does anyone know, if there is a possibility to shorten names? Felix e.g. I would like to cut: Felix /Big Street/ into /BigStr/ Felix Or /anotherstreet/ into /anotherstr/ If

Re: [mkgmap-dev] Preprocessing OSM for mkgmap

2010-02-07 Thread Toby Speight
0 In article 45a1381e1002061641v667a55a1xd61dd0fa084a7...@mail.gmail.com, 0 Apollinaris Schoell URL:mailto:ascho...@gmail.com (AS) wrote: AS I recommend to add a wiki page on the main osm wiki server to reach AS non mkgmap users too. Good idea - I'll do that. I also need to make it more

Re: [mkgmap-dev] [PATCH] Bug in label encoding

2010-02-08 Thread Toby Speight
0 In article 20100208071528.ga11...@x60s, 0 Marko Mäkelä URL:mailto:marko.mak...@iki.fi (Marko) wrote: Marko An integer version of your formula would also work in this case: Marko Marko int len = (off * 6 + 7) / 8 = 43/8 = 5.375 = 5 Marko Marko This formula is clear to me: it will

Re: [mkgmap-dev] [PATCH v1] Reduce memory footprint of tags

2010-02-08 Thread Toby Speight
Interning all the key names could also be useful for speed by allowing a '==' comparison instead of calling String.equals(). Though I suspect the latter tests object identity as its first move, so perhaps your patch improves this enough as a side-effect (and it's safer to not have to think which

Re: [mkgmap-dev] BUG: riverbank drawing error

2010-02-09 Thread Toby Speight
0 In article 4b7175d1.3000...@madasafish.com, 0 Dave F. URL:mailto:dave...@madasafish.com (Dave) wrote: Dave Does mkgmap make use of the layer tag? As far as we know (correct me if I'm wrong), the Garmin units (and thus their maps) don't have a concept of layer in the data - only in the

[mkgmap-dev] SVN 1598 gives flooded tiles

2010-03-07 Thread Toby Speight
Everything works fine with revision 1597. But with 1598, every tile that has any coastline in it becomes completely flooded. This is for a Great Britain map, using multipolygon sea generation (I dislike having to choose between sea, land, and the actual feature I'm trying to select!). My

[mkgmap-dev] Using multiple TYP files

2010-03-22 Thread Toby Speight
I'm having trouble combining IMG files with different product and family IDs into a single gmapsupp.img. I can create single-family images with no problem, but trying to create a multiple-family image thusly: / | $(MKGMAP) --gmapsupp \ |--family-id=1672 --product-id=1672 1672*.img

Re: [mkgmap-dev] Using multiple TYP files

2010-03-22 Thread Toby Speight
0 In article 61af4ce51003220852q2e3efcccta68324526a77...@mail.gmail.com, 0 Christoph Wagner URL:mailto:freemaps@googlemail.com (CW) wrote: CW Do it sequentially. CW CW $(MKGMAP) --gmapsupp --family-id=1672 --product-id=1672 1672*.img 1672.TYP CW mv gmapsupp.img gmapsupp1.img CW $(MKGMAP)

Re: [mkgmap-dev] Using multiple TYP files

2010-03-22 Thread Toby Speight
0 In article 87mxy0e691@balti.ashgrove, 0 Toby Speight URL:mailto:t.m.speight...@cantab.net (Toby) wrote: Toby / Toby | $(MKGMAP) --gmapsupp \ Toby |--family-id=1672 --product-id=1672 1672*.img 1672.TYP \ Toby |--family-id=6324 --product-id=6324 6324*.img 6324.TYP Toby

Re: [mkgmap-dev] Using multiple TYP files

2010-03-23 Thread Toby Speight
0 In article 4ba7d179.7030...@kleineisel.de, 0 Ralf Kleineisel URL:mailto:r...@kleineisel.de (Ralf) wrote: Ralf Creating a gmapsupp.img with several family-IDs does work for me Ralf when I use an options file with the -c option. That's a bit more difficult for me - I'd have to generate it on the

[mkgmap-dev] Generate coastline - can we keep the coastline way?

2010-03-24 Thread Toby Speight
When --generate-coastline=multipolygon fails, I'm left with a map that has no distinction between land and sea. However, if I don't use --generate-coastline, I at least get a line (from my style/lines). Is there any good reason why generating coastline prevents the line rules from being applied

Re: [mkgmap-dev] Generate coastline - can we keep the coastline way?

2010-03-24 Thread Toby Speight
0 In article 20100324151212.64808...@crow, 0 Mark Burton URL:mailto:ma...@ordern.com (Mark) wrote: Mark Perhaps this does what you want? Mark Mark diff --git a/src/uk/me/parabola/mkgmap/reader/osm/xml/Osm5XmlHandler.java b/src/uk/me/parabola/mkgmap/reader/osm/xml/Osm5XmlHandler.java That solves

Re: [mkgmap-dev] Shuttle-Train

2010-03-25 Thread Toby Speight
0 In article hog644$i5...@dough.gmane.org, 0 Chris-Hein Lunkhusen URL:mailto:chris66...@gmx.de (CL) wrote: CL Map this beast with a new way (railway=shuttle or something like CL that). That first solution is probably simpler than CL Or implement a mkgmap option to unglue railway_crossings. I

Re: [mkgmap-dev] Generate coastline - can we keep the coastline way?

2010-03-31 Thread Toby Speight
0 In article honhsq$ak...@dough.gmane.org, 0 Chris-Hein Lunkhusen URL:mailto:chris66...@gmx.de (CL) wrote: CL I'm a little confused, are you talking about the --generate-sea CL option? Yes - sorry for my little brainfart. :-) ___ mkgmap-dev mailing

Re: [mkgmap-dev] a FIXME map style

2010-03-31 Thread Toby Speight
0 In article f902f9841003282341m501ff578g68213926fdca9...@mail.gmail.com, 0 maning sambale URL:mailto:emmanuel.samb...@gmail.com (Maning) wrote: Maning Just got this idea of creating Garmin maps designed for fixing Maning the data (I use Garmin primarily to collect and fix OSM). I haven't done

Re: [mkgmap-dev] a FIXME map style

2010-03-31 Thread Toby Speight
0 In article 4bb0e0b4.9090...@web.de, 0 WanMil URL:mailto:wmgc...@web.de (Wanmil) wrote: Wanmil sometimes I create a map that colours the streets depending on Wanmil their maxspeed tag. I have attached the mkgmap style files and Wanmil the typ file. Thanks - I've been intending to do that; I'll

[mkgmap-dev] Roundabout processing suggestion

2010-03-31 Thread Toby Speight
Sometimes I see roundabouts where the mapper has used the same node for an exit as for an entry. This means that exit counting is off by one when approaching by that entry. Is it possible for mkgmap to warn when this is the case? Even better if it could minimally separate the two, at least in

Re: [mkgmap-dev] Problems with Russian landuse multipolygons

2010-05-02 Thread Toby Speight
0 In article 20100501203241.ga3...@x60s, 0 Marko Mäkelä URL:mailto:marko.mak...@iki.fi (Marko) wrote: Marko Here is one example that is drawn over an existing island multipolygon: Marko Marko http://www.openstreetmap.org/browse/relation/598998 Marko Marko If you download this multipolygon and

Re: [mkgmap-dev] Family-name trouble when combining *.img to gmapsupp.img

2010-05-08 Thread Toby Speight
0 In article 20100506093307.ga7...@x60s, 0 Marko Mäkelä URL:mailto:marko.mak...@iki.fi (Marko) wrote: Marko Thanks, this almost did the trick. Now I see transport and Marko ways in my map menu (yes, in reverse order). That's not reverse order - that's alphabetical order. At least that's how it

Re: [mkgmap-dev] UK Contours

2011-06-02 Thread Toby Speight
0 In article 1be1dc8a-93b8-48bb-857a-7598d2f85...@gmail.com, 0 Stuart Poulton URL:mailto:webw...@gmail.com (Stuart) wrote: Stuart Has anyone got a quick recipe for STRM contours to garmin for Stuart the UK, preferably on Linux ? You might prefer Ordnance Survey OpenData contours (if you're happy

[mkgmap-dev] Computing area (was: length () in relations file)

2013-02-26 Thread Toby Speight
0 In article 51194252.7080...@web.de, 0 WanMil URL:mailto:wmgc...@web.de (Wanmil) wrote: Wanmil It might be possible. The problem to be solved is that the Wanmil garmin map geometry is not rectangular. So at the moment I Wanmil don't know how the area size of a polygon can be calculated in Wanmil

Re: [mkgmap-dev] Computing area

2013-02-26 Thread Toby Speight
Oops - old version. Here's the correct one: #include osmium.hpp #include osmium/storage/byid.hpp #include osmium/handler/coordinates_for_ways.hpp #include osmium/handler/multipolygon.hpp #include osmium/geometry/multipolygon.hpp #include geos/geom/Geometry.h #include

Re: [mkgmap-dev] Support for through_route relations?

2013-04-03 Thread Toby Speight
0 In article 515c8e7f.4000...@web.de, 0 WanMil URL:mailto:wmgc...@web.de (Wanmil) wrote: Wanmil mkgmap contains some code to support through_route relations. [...] Wanmil Shall we still support this type of relation? Wanmil Can anybody explain what this relation does? I think the best

Re: [mkgmap-dev] [PATCH v2] Move maxspeed calculations to style file

2013-08-29 Thread Toby Speight
Just to confirm - this affects only the *max* speed, correct? So if my defaults for single-track unclassified roads suggest 40mph, but tags say we're allowed to do up to 60mph (both quite reasonable here in Scotland, where the National Speed Limit is unattainable on many roads), then the map

Re: [mkgmap-dev] [PATCH v2] Move maxspeed calculations to style file

2013-08-30 Thread Toby Speight
0 In article 522050a9.5010...@gmail.com, 0 Felix Hartmann URL:mailto:extremecar...@gmail.com (Felix) wrote: Felix only downwards, is what everyone expects, but not what mkgmap did Felix so far. I critisized this quite often in the past Thanks Felix - that's what I wanted to know. I