[mkgmap-dev] How to create a map covering Fiji & Samoa?From GerdP gpetermann_muenchen at hotmail.com on Sun Mar 4 14:05:32 GMT 2012
Ooops, should be if (lon > maxLon) ... Gerd GerdP wrote > > Hi Colin, > > your are right, it's not the IDL, but the 180-degree longitude. > > splitter and mkgmap are internally using integer values to represent the > latitude and longitude values. > Longitude -180 is represented by -8388608, and +180 is reprensented by > 8388608. > So, the integer values are very different, but -180 and +180 are - afaik - > exactly the same. > A lot of comparison are done with something like > if (lat > maxlat)... > and I think a lot of them will fail. > > Gerd > > > > Colin Smale-2 wrote >> >> Gerd, >> >> I have no idea how to answer your question, but I was wondering if it is >> really connected to the IDL or the 180-degree longitude? Of course >> 179.99 East is separated from 179.99 West by only 0.02 degrees, not >> 359.98. I can imagine how this would need some special handling. The IDL >> wanders around quite a bit, roughly centred on 180. If the issue really >> is connected to the IDL, I would love to learn how! >> >> Colin >> >> On 04/03/2012 11:09, GerdP wrote: >>> Hi, >>> >>> while optimizing splitter and mkgmap I did never see special code to >>> handle bounding boxes that cover the date limit. >>> I wonder if I have to test that case? >>> >>> In other words: What are the steps to create >>> a map covering e.g. Fiji and Samoa? >>> Are features like routing expected to work? >>> >>> Gerd >>> >>> >>> -- >>> View this message in context: >>> http://gis.19327.n5.nabble.com/How-to-create-a-map-covering-Fiji-Samoa-tp5535019p5535019.html >>> Sent from the Mkgmap Development mailing list archive at Nabble.com. >>> _______________________________________________ >>> mkgmap-dev mailing list >>> mkgmap-dev at .org >>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev >> >> _______________________________________________ >> mkgmap-dev mailing list >> mkgmap-dev at .org >> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev >> > -- View this message in context: http://gis.19327.n5.nabble.com/How-to-create-a-map-covering-Fiji-Samoa-tp5535019p5535263.html Sent from the Mkgmap Development mailing list archive at Nabble.com.
- Previous message: [mkgmap-dev] How to create a map covering Fiji & Samoa?
- Next message: [mkgmap-dev] Merging back the performance branch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list