[mkgmap-dev] Commit: r1886: Clarify charset / code-page in help and
Version 1886 was commited by steve on 2011-03-07 13:03:28 + (Mon, 07 Mar 2011) Clarify charset / code-page in help and remove all TODO comments. ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Commit: r1882: MapSource installer improvements
On Mon, 2011-03-07 at 10:48 +0200, Tomas Straupis wrote: 2011-03-07 Marko Mäkelä: Is there a MapSource for dummies for us poor Linux guys? I would like to convert the output of mkgmap --index to the device gmapsupp.img format, and I guess I would need MapSource under WINE for that. How would that work? Me too! Especially the part of transferring the map to device. Because launching MapSource via wine is ok, but later MapSource refuses to see any GPS device attached... -- Tomas Straupis Hi, WINE does not support USB devices, so the GPS connection options will be limited when running MapSource in WINE. I can make a serial connection to my etrex after creating the following link to com1: (ubuntu) sudo ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1 and then load the kernel driver (if not already loaded) sudo modprobe garmin_gps but I recall that I can't get it to work with my Nuvi which appears to require a true USB connections. I don't think you can create a gmapsupp.img file because of the USB-WINE restriction. Also I am not 100% sure my instructions are complete, because I may have modifications to my system that I have forgotten. The best bet might be the non-open-source (but still free) version of virtualbox from Sun which I understand has usb drivers. Garvan ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Commit: r1882: MapSource installer improvements
On 3/7/2011 3:22 AM, Marko Mäkelä wrote: MapSource for dummies Marko, I use MapSource with Wine and it works fine. ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Commit: r1882: MapSource installer improvements
El 07/03/11 14:05, garvanmaew escribió: On Mon, 2011-03-07 at 10:48 +0200, Tomas Straupis wrote: 2011-03-07 Marko Mäkelä: Is there a MapSource for dummies for us poor Linux guys? I would like to convert the output of mkgmap --index to the device gmapsupp.img format, and I guess I would need MapSource under WINE for that. How would that work? Me too! Especially the part of transferring the map to device. Because launching MapSource via wine is ok, but later MapSource refuses to see any GPS device attached... -- Tomas Straupis Hi, WINE does not support USB devices, so the GPS connection options will be limited when running MapSource in WINE. I can make a serial connection to my etrex after creating the following link to com1: (ubuntu) sudo ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1 and then load the kernel driver (if not already loaded) sudo modprobe garmin_gps but I recall that I can't get it to work with my Nuvi which appears to require a true USB connections. I don't think you can create a gmapsupp.img file because of the USB-WINE restriction. Also I am not 100% sure my instructions are complete, because I may have modifications to my system that I have forgotten. The best bet might be the non-open-source (but still free) version of virtualbox from Sun which I understand has usb drivers. I have used MapSource under wine for a long time and I can send my maps to devices (nuvi and etrex legend hcx) without problems. At [1] you have instructions on how to install MapSource in Linux and enable usb (step 5); it worked for me. [1] http://www.malsingmaps.com/wiki/index.php?title=Installing_Mapsource_in_Linux Garvan ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -- Por favor, no me envíe documentos con extensiones .doc, .docx, .xls, .xlsx, .ppt, .pptx, .mdb, mdbx Instale OpenOffice desde http://es.openoffice.org/programa/index.html OpenOffice es libre: se puede copiar, modificar y redistribuir libremente. Gratis y totalmente legal. OpenOffice está en continuo desarrollo y no tendrá que pagar por las nuevas versiones. ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Encoding problems
I expect the latest version to work, but if it doesn't... charsets stopped working (at least for cp1257) after index branch merge. It used to work for at least half a year before that (on stable versions). -- Tomas Straupis ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev Is that using code-page or charset? I would not expect --charset to work. ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Commit: r1877: Allow different smoothing parameters for polygons and lines.
could you please check in this patch to the repository? So the default behaviour is the same as before. Regards, Johann ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev Sure, I'd prefer that the default be a value that creates a better map in most cases rather than the previous behaviour. ..Steve ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Encoding problems
2011-03-07 Steve Ratcliffe: Is that using code-page or charset? I would not expect --charset to work. Yep. Changing to --code-page=1257 fixes Lithuanian letters! Thank you! -- Tomas Straupis ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] [PATCH v5] Automatic location completion
El 06/03/11 19:40, WanMil escribió: I implemented Minkos idea using the style file to set the city, region, zip and country names. How does it work? The new AddressHook adds special tags to each element that is inside a known boundary: mkgmap:admin_level2 mkgmap:admin_level3 mkgmap:admin_level4 .. mkgmap:admin_level11 If an admin_level is not known the relevant tag is not set. The same for the zip tag mkgmap:postalcode. The style file contains a new rule block (in each file): mkgmap:country!=* addr:country=* { set mkgmap:country='${addr:country}' } mkgmap:country!=* is_in:country=* { set mkgmap:country='${is_in:country}' } mkgmap:country!=* mkgmap:admin_level2=* { set mkgmap:country='${mkgmap:admin_level2}' } mkgmap:region!=* is_in:county=* { set mkgmap:region='${is_in:county}' } mkgmap:region!=* mkgmap:admin_level6=* { set mkgmap:region='${mkgmap:admin_level6}' } ... mkgmap:city!=* openGeoDB:name=* { set mkgmap:city='${openGeoDB:name}' } mkgmap:city!=* mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8}' } ... mkgmap:postal_code!=* addr:postcode=* { set mkgmap:postal_code='${addr:postcode}' } mkgmap:postal_code!=* mkgmap:postcode=* { set mkgmap:postal_code='${mkgmap:postalcode}' } These rules set the mkgmap tags: mkgmap:country mkgmap:region mkgmap:city mkgmap:postal_code Only these tags are used to set the country, the region, the city and the zip code. No more rules are applied automatically (there are still some in the Locator class but they will be removed). This enables you to configure which admin_level information you want to use for the city name, the region names etc. Also country specific rules are possible (e.g. add a mkgmap:country=NLD rule). Todo: The country normalization must be performed by the AddressHook so that one can be sure that the Netherlands are always tagged with mkgmap:country=NLD (or mkgmap:country=Nederland?) The rules are not perfect up to now but please feel free to post some good rules for your country. I have changed my styles as follows, mkgmap:region!=* is_in:region=* { set mkgmap:region='${is_in:region}' } mkgmap:region!=* mkgmap:admin_level4=* { set mkgmap:region='${mkgmap:admin_level4}' } mkgmap:region!=* mkgmap:admin_level6=* { set mkgmap:region='${mkgmap:admin_level6}' } mkgmap:region!=* mkgmap:admin_level5=* { set mkgmap:region='${mkgmap:admin_level5}' } mkgmap:region!=* mkgmap:admin_level3=* { set mkgmap:region='${mkgmap:admin_level3}' } to adapt them to what I think is best for Spain, but, if I understood well, something is not working as expected: places tagged as villages that have no is_in:region information and are within admin_level=4 and admin_level=6 polygons take the region from the a_l=6 polygon, instead of a_l=4 as it should be from the style above. WanMil Attached is the next step for the automatic location completion: * Some speed improvements (it's still slow but not as slow as before ;-) * boundary=postal_code is now supported. * The Locator does no longer overwrite already set attributes. This seems to be a better solution. I think the Locator must be rewritten completely. Up to now I have commented some lines only without deep understanding what it is really doing. Some things that don't work: * Lot's of POIs are assigned with the default country although the MapElements are assigned with the correct country. Example: - Spain splitted with --overlap=3000 (more overlap is better for my patch) - Cafe Antxi (http://www.openstreetmap.org/browse/node/629554219) is correctly assigned with country=ESP but in the POI search it is displayed with the default country. I have no idea why. * Zips are only applied to POIs. Streets seems to be not yet supported by the MDR creation. (= Steve?) Things to do: * Speed improvement (At the moment the location search takes as much time as the rest of the map creation) * A better mapping of city, region to the admin-levels * Make use more OSM information (like residential areas, place=city POIs in residential areas etc.) * Clean up of the Locator class WanMil I have improved calculation of the country information. In case no country information is available the most used country in a tile is used for all elements without country tag. The patch now patches the trunk and no longer the index branch. I have observed that lots of POIs are assigned the default country although I they are assigned a different country. I have no clue where this happens. Maybe an index related problem? I was hoping that Steves commit today would fix that problem but it didn't. WanMil I have done some development and want you to share my current findings. 1. The MapElement copy constructor seems to have a bug. The attributes map which contains the city, region and country information is not copied. From my point of view this is an important thing that should be fixed in the trunk also. 2. In the patch the Locator is disabled as
[mkgmap-dev] Commit: r1888: Fix a crash when listing styles in directory format.
Version 1888 was commited by steve on 2011-03-07 20:25:04 + (Mon, 07 Mar 2011) Fix a crash when listing styles in directory format. ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] MapSource installer improvements v5
Hi, On Thu, Mar 03, Nakor wrote: The previous versions had a file name hardcoded and would not work in most cases. Sorry about that. I tested the current version from svn and found out, that the TYP file is not added to the registry. Any chance that we can add that registry entry automatically? I have no idea how to find out the name of the TYP file, else the entry would look like: WriteRegStr HKLM SOFTWARE\Garmin\MapSource\Families\${REG_KEY} TYP $INSTDIR\${MAPNAME}.TYP Thanks, Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Markus Rex, HRB 16746 (AG Nuernberg) ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] custom background polygon in overview map
Hello I have noticed that mkgmap creates rectangles in overview map even if maps contain regions with irregular shapes. These are defined as 0x4b background polygons in .mp files. Background polygons were compiled correctly into individual (numbered) .img files, but 0x4a definition areas in overview map did not follow background shapes. Thanks, this is a useful improvement. gives the rectangle. FileInfo can't read background shape from .img file. I had to find a way for transferring background polygons from MapMaker to TdbBuilder. However this will not work if you are using .img files as input, which is often the case. The background should really be on the FileInfo. There is code that can read from the .img file. It currently only reads lines and points but could be extended to read polygons too. See MapReader and in particular RGNFileReader. I realise this is a much bigger task and probably slower. reader/overview/OverviewMapDataSource.java assigns more detailed levels for overview map I don't think this change would work with most .osm maps. A patch that made the overview map levels configurable (from the .mp file and/or command line) like for the main map would be great though. Best wishes ..Steve ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Commit: r1882: MapSource installer improvements
Hi Nakor, I use MapSource with Wine and it works fine. How do you install and remove (or update) maps? How do you convert them to the device gmapsupp.img format? I guess that you are using the --nsis option to create a map installer? This became urgent since the merge of the index branch, because my Edge 705 no longer can find any streets, even with mkgmap --index. Marko ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Commit: r1882: MapSource installer improvements
On Mon, Mar 07, Marko Mäkelä wrote: Hi Nakor, I use MapSource with Wine and it works fine. How do you install and remove (or update) maps? How do you convert them to the device gmapsupp.img format? I guess that you are using the --nsis option to create a map installer? This became urgent since the merge of the index branch, because my Edge 705 no longer can find any streets, even with mkgmap --index. Are you using mkgmap 1885 or later? With that version, it should work again. Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Markus Rex, HRB 16746 (AG Nuernberg) ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Commit: r1882: MapSource installer improvements
El 07/03/11 22:54, Marko Mäkelä escribió: Hi Nakor, I use MapSource with Wine and it works fine. How do you install and remove (or update) maps? with MapSetToolKit [1] How do you convert them to the device gmapsupp.img format? Sending them with MapSource to an SD card I guess that you are using the --nsis option to create a map installer? No, I don't use --nsis This became urgent since the merge of the index branch, because my Edge 705 no longer can find any streets, even with mkgmap --index. [1] http://cypherman1.googlepages.com/ ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Commit: r1882: MapSource installer improvements
On Mon, Mar 07, 2011 at 10:57:54PM +0100, Thorsten Kukuk wrote: This became urgent since the merge of the index branch, because my Edge 705 no longer can find any streets, even with mkgmap --index. Are you using mkgmap 1885 or later? With that version, it should work again. Yes, I am. The latest try was with r1888, without --index. The device would say None Found and No direction information when I try to enter a street name or a city. Those are the English texts; I changed the menu language to English for this. Marko ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Compiling from source on Mac OS - Warning: Could not find resource file /opt/jars/protobuf-2.3.0/protobuf.jar to copy.
On Tue, 2011-03-08 at 07:57 +0700, garvanmaew wrote: On Tue, 2011-03-01 at 20:14 +, Steve Ratcliffe wrote: Hello BUILD FAILED /Users/railrun/Downloads/osm/mkgmap/build.xml:212: Warning: Could not find resource file /opt/jars/protobuf-2.3.0/protobuf.jar to copy. I don't have a Mac, but that filename does not occur in the latest version of the splitter. So the best solution would be to fetch the latest version. Also make sure that no old file is still around for example a local.properties file that may be supplying that name. Best wishes ..Steve ___ Is installing splitter now a requirement for mkgmap? I get the same error as above on a fresh download (no old files) from svn trunk. I have never used splitter, I do not need it for my maps. Garvan PS. I should have said I am using Ubuntu, not a Mac. Garvan ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] custom background polygon in overview map
There is code that can read from the .img file. It currently only reads lines and points but could be extended to read polygons too. See MapReader and in particular RGNFileReader. I realise this is a much bigger task and probably slower. I have examined RGNFileReader, cloned all needed methods for polygons. Works great, identifies type, label, but not geometry. I can't find code for reading coordinates from .img (RGN) file. Is it available? András ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
[mkgmap-dev] flooded tiles in nuvi 295W
Hi, I have a user with nuvi 295W. He is having issues with flooded tiles using my map. I never encountered this issue on my device and on mapsource/basecamp/roadtrip. The map has a custom typ file to show land polygon. Are there other users having this issue with nuvi 295W? http://esambale.wikispaces.com/message/view/home/35367350 -- cheers, maning -- Freedom is still the most radical idea of all -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ -- ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev