Hi Ticker,
with CodePage=65001 mkgmap will not build a typ file.
SCHWERWIEGEND (MapFailedException): .\Daten\Speiche_schmal.txt: (thrown in TypCompiler.makeMap()) Compiling TYP txt file: Error: (.\Daten\Speiche_schmal.txt:3): Bad character in input, file probably not in UTF-8
When i convert the .txt file to UTF-8 it works, but when i open the typfile with TYPViewer, codepage is set to 1252 and the same error messages appaer. I try --code-page=65001 as a option with mkgmap and as a line in the typfile.
I can open the .txt wit TYPViewer without errors. When i convert the .txt to .typ with TYPViewer all is OK. Converting the .txt to .typ with mkgmap r-4428 its OK too. Something happend since r-4437, so that the TYP is incompatible to TYPViewer. BaseCamp and my Oregon600 have no problems with the typ.
Greets
Arndt
Ticker Berkin < rwb-mkg...@jagit.co.uk> hat am 15. Februar 2020 um 12:00 geschrieben:
Hi
Is this using something based on resources/typ-files/mapnik.txt
My guessing of a translation of the error messages you are getting isthat TYPviewer defaults the output code-page to 1252 and then doesn'tlike various strings that can't be represented in that code page.Try uncommenting the line: CodePage=65001
Having this line will cause harmless warnings from mkgmap when yougenerate a non-unicode map
Ticker
On Sat, 2020-02-15 at 08:44 +0100, Arndt Röhrig wrote:Good morning,
i use TYPViewer for my typ files. This program reports some errors,when i open a type file.
My typs are .txt files. So far they are ok. In a first step i usemkgmap to create .typ files. It runs without error messages. The mapseems to be OK. But when i open a typ file with TYPViewer the errormessages appear. When i edit an element, TYPViewer pop up an errormessage and close.
i guess the changes in r-4437 do that? Is there something wrong in mytyps?For example the polygone 0x0e:
[_polygon]Type=0x0e;GRMN_TYPE: Large Manmade Areas/AIRPORT_RUNWAYS/Airport runwayarea/Non NTString1=0x02,BürogewerbeExtendedLabels=YFontStyle=NoLabel (invisible)CustomColor=NoXpm="0 0 1 0""1 c #F2D9D8"[end]
Greets
Arndt
P.S. The error message from TYPViewer:
******************************************************************************************************************************************************Fehler in der Datei :C:\ProgramData\GARMIN\Maps\Speiche_Fabrik_Gravel.gmap\Speiche.typ******************************************************************************************************************************************************
Unbekannte CodePage-Nummer: 0TYPViewer ersetzte die CodePage mit 1252Wenn dies nicht paßt, wähle eine andere CodePage-Nummer in derAuswahlbox "CodePage"Problem beim Lesen der Strings des Polygons Type=0x004 SubTypes =0x00Problem beim Lesen der Strings des Polygons Type=0x00e SubTypes =0x00Problem beim Lesen der Strings des Polygons Type=0x010 SubTypes =0x00Problem beim Lesen der Strings des Polygons Type=0x014 SubTypes =0x00Problem beim Lesen der Strings des Polygons Type=0x01c SubTypes =0x00Problem beim Lesen der Strings des Polygons Type=0x04e SubTypes =0x00Problem beim Lesen der Strings des Polygons Type=0x054 SubTypes =0x00Problem beim Lesen der Strings der Polylinie Type=0x015 SubTypes =0x00Problem beim Lesen der Strings des POI Type=0x001 SubTypes = 0x00
_______________________________________________mkgmap-dev mailing list_______________________________________________mkgmap-dev mailing list
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev