<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Brian,<br><br>I see.<br>I fear the meanings of the --country-xxx options are not well documented.<br>If I got it right, they have an influence on the address search indexes, but they have no <br>meaning for the rules in the style.<br><br>Maybe your problem could be solved with an<br>additional line in the address rule. Something like this<br>mkgmap:admin_level5='New York City' & mkgmap:admin_level2!=* { set mkgmap:admin_level2='USA' }<br>as a first line in inc/address.<br><br>Another option would be to change the LocationHook to optionally use the <br>values given with --country-xxx to fill the mkgmap:admin_level2 tag.<br><br>Gerd<br><br><div><hr id="stopSpelling">From: brianegge@gmail.com<br>Date: Thu, 30 Oct 2014 02:38:17 +0000<br>To: mkgmap-dev@lists.mkgmap.org.uk<br>Subject: Re: [mkgmap-dev] Building northeast map<br><br>Thanks Gerd,<br><br><div>I've been adding/fixing city boundaries in my area, so I'm trying to create my own bounds file. If an admin_level2 can't be found, does it use the <b style="color:rgb(0,0,0);font-family:sans-serif;line-height:19.2000007629395px;">--country-abbr </b><span style="color:rgb(0,0,0);font-family:sans-serif;line-height:19.2000007629395px;">option?</span></div><div><span style="color:rgb(0,0,0);font-family:sans-serif;line-height:19.2000007629395px;"><br></span></div><div><span style="color:rgb(0,0,0);font-family:sans-serif;line-height:19.2000007629395px;">Brian</span></div><br><div class="ecxgmail_quote">On Wed Oct 29 2014 at 3:28:37 AM Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_muenchen@hotmail.com</a>> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Hi Brian,<br><br>I think your problem is caused by the fact that your input file doesn't contain the boundary for the USA.<br>That's the reason for the --bounds option, the typical use is to download the boundaries for planet<br>from e.g. <br><a href="http://www.mkgmap.org.uk/download/mkgmap.html" target="_blank">http://www.mkgmap.org.uk/download/mkgmap.html</a><br><br>If you want to create your own bounds file, you should make sure to have complete continents.<br><br>The style rules in the inc/address file expect that mkgmap:admin_level2=USA<br>but this will not happen if the bounds file doesn't contain enough of the boundary.<br><br>Gerd<br><br><div><hr>From: <a href="mailto:brianegge@gmail.com" target="_blank">brianegge@gmail.com</a><br>Date: Wed, 29 Oct 2014 01:53:28 +0000<br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>Subject: [mkgmap-dev] Building northeast map</div></div></div><div><div dir="ltr"><div><br><br>I've built my own gmappsup for the US Northeast and loaded it into my Garmin. My script for doing so is roughly as follows:<div><br><div><div>[[ us-northeast-latest.osm.bz2 -nt northeast.om5 ]] && bzcat us-northeast-latest.osm.bz2 | ../osmconvert/osmconvert - -o=northeast.om5</div><div>[[ northeast.om5 -nt northeast-boundaries.o5m ]] && ../osmfilter/osmfilter northeast.om5 --keep-nodes= --keep-ways-relations="boundary=administrative =postal_code postal_code=" -o=northeast-boundaries.o5m</div><div>java -cp ../mkgmap/dist/mkgmap.jar uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryPreprocessor northeast-boundaries.o5m bounds/</div><div><br></div><div>java -jar ../mkgmap/dist/mkgmap.jar \</div><div> --gmapsupp \</div><div> --mapname=20355490 \</div><div> --description="Northeast United States" \</div><div> --country-name="United States" \</div><div> --country-abbr=US \</div><div> --region-name="Northeast" \</div><div> --region-abbr=NE \</div><div> --index \</div><div> --location-autofill=nearest \</div><div> --housenumbers \</div><div> --route \</div><div> --add-pois-to-areas \</div><div> --bounds=bounds \</div><div> --add-pois-to-areas \</div><div> --process-destination \</div><div> --process-exits \</div><div> *.osm.pbf</div></div></div><div><br></div><div>I've loaded the result onto my Garmin Nuvi. When I attempt to do an address search, it first asks me for the City, but the cities I'm looking for don't show up in the search. Oddly, when it shows the closest cities I can see some of them, but when I do a text search it shows distant oddballs. For example, with 'New York', I see:</div><div>New York, FL</div><div>New York, TX</div><div>New York Mills, MN</div><div><br></div><div>None of these are the New York I'm looking for. I don't even think they are in my input file, but are perhaps coming from the internal memory on my GPS.</div><div><br></div><div>It does appear the NYC addresses are working better - I can see the Bronx Zoo is in The Bronx and Carnegie Hall is in New York, however, I can't key in an address to see if it works because of the address search issue.</div><div><br></div><div>Another thing which has me puzzled is why some POIs are not showing the city/state. For example <a href="http://www.openstreetmap.org/node/3139391561" target="_blank">Desert Moon Grille</a> is in <a href="http://www.openstreetmap.org/way/33271879" target="_blank">Danbury</a>, Connecticut. I can find it doing a Food POI search. That works fine. But, when I select it, it shows "Not_set, Fairfield County". Nomination gets the address perfect: <a href="http://www.openstreetmap.org/node/3139391561" style="color:rgb(34,68,221);text-decoration:none;font-family:'Helvetica Neue',Arial,sans-serif;font-size:12px;line-height:19.9992008209229px;" target="_blank">Desert Moon Fresh Mexican Grille, 113, Mill Plain Road, Danbury, Fairfield County, Connecticut, United States of America</a> . I'm compiling my own bounds file, so I'm surprised it hasn't worked. </div><div><br></div><div>Brian</div><div><br></div><div><br></div><div><br></div>
<br></div></div></div><div><div dir="ltr"><div>_______________________________________________
mkgmap-dev mailing list
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>                                            </div></div>
______________________________<u></u>_________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/<u></u>mailman/listinfo/mkgmap-dev</a></blockquote></div>
<br>_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</div>                                            </div></body>
</html>