logo separator

[mkgmap-dev] Land flooded

From Gary Bamford garybamford at hotmail.com on Wed May 11 10:05:36 BST 2016

I use TYPViewer to do the conversion. v4.5.35

if I convert the .typ file to a .txt file, it produces a different map, if I then convert that .txt file to a .typ file, the map produced is correct.

How can I spot any errors the conversion produces ? I have written software in C# that validates the .txt file it it finds no errors.

But I can't find any documentation on the format of the .typ file so I can check the contents of match.

________________________________________
From: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> on behalf of Thorsten Kukuk <kukuk at suse.de>
Sent: 11 May 2016 09:01
To: mkgmap-dev at lists.mkgmap.org.uk
Subject: Re: [mkgmap-dev] Land flooded

On Wed, May 11, Gary Bamford wrote:

> HI, That is what I have done, I produced a gmapsupp.img file using a .txt file ( the typ info ) and it produces a different map than the same command but using the same style info but specified as a .typ file.

Most likely: your *.txt file is not in sync with your *typ file
or contains errors. After creating the *.txt file from my *.typ file,
I had to fix a lot of mistakes in it.

  Thorsten

>
> ________________________________________
> From: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> on behalf of Thorsten Kukuk <kukuk at suse.de>
> Sent: 11 May 2016 08:54
> To: mkgmap-dev at lists.mkgmap.org.uk
> Subject: Re: [mkgmap-dev] Land flooded
>
> On Wed, May 11, Gary Bamford wrote:
>
> > HI Gerd.
> >
> >
> > Okay, that leaves just one question, does the conversion from the txt file to the typ file have to happen as a separate command, or can i specify the txt file as part of a command to make the gmapsupp.img file.
>
> Instead of specifying the TYP file (file.TYP) you specify the txt
> file on the commandline (file.TXT).
>
>   Thorsten
>
> >
> >
> > Gary
> >
> >
> > ________________________________
> > From: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> on behalf of Gerd Petermann <GPetermann_muenchen at hotmail.com>
> > Sent: 11 May 2016 08:49
> > To: Development list for mkgmap
> > Subject: Re: [mkgmap-dev] Land flooded
> >
> >
> > Hi Gary,
> >
> >
> > just to make sure:
> >
> > mkgmap can compile a gmapsupp with both formats, when you use the *.typ file as input it will copy it into to gmapsupp.img,
> >
> > maybe after adjusting values like product id, I am not sure about that.
> >
> > When you specify the text file format it will use its typ file compiler to create the *.typ file and use that for the gmapsupp.img.
> >
> > So, when you see differences using these two different ways you may have found a problem in the mkgmap typ file compiler.
> >
> >
> > @Steve: I hope that I got this right?
> >
> >
> > Gerd
> >
> >
> > ________________________________
> > Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gary Bamford <garybamford at hotmail.com>
> > Gesendet: Mittwoch, 11. Mai 2016 10:05
> > An: Development list for mkgmap
> > Betreff: Re: [mkgmap-dev] Land flooded
> >
> >
> > Hi Gerd
> >
> > That's where I was going wrong then, I was speciying the typefile as a txt file, and not a typ file.
> >
> >
> > http://www.mkgmap.org.uk/news/2012/02/17/typ-file-compiler
> >
> >
> >
> > I assumed that also meant that the map complier would also allow for a txt file input of styles
> >
> > [http://www.mkgmap.org.uk/static/img/logo.png]<http://www.mkgmap.org.uk/news/2012/02/17/typ-file-compiler>
> >
> > TYP file compiler - mkgmap<http://www.mkgmap.org.uk/news/2012/02/17/typ-file-compiler>
> > www.mkgmap.org.uk
> > Another recent feature added is the ability to compile TYP file from the .txt format. There is no special option needed, just place the .txt file on the command line ...
> >
> >
> >
> >
> > ________________________________
> > From: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> on behalf of Gerd Petermann <GPetermann_muenchen at hotmail.com>
> > Sent: 11 May 2016 07:58
> > To: Development list for mkgmap
> > Subject: Re: [mkgmap-dev] Land flooded
> >
> >
> > Hi Gary,
> >
> >
> > not sure what you mean with "when I use the text file output" here. The device needs the *.typ format, it
> >
> > doesn't understand the text file format. Or do you mean that you feed mkgmap with the text file format
> >
> > and the resulting *.typ file doesn't work ?
> >
> >
> > Gerd
> >
> >
> > ________________________________
> > Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gary Bamford <garybamford at hotmail.com>
> > Gesendet: Mittwoch, 11. Mai 2016 09:51
> > An: Development list for mkgmap
> > Betreff: Re: [mkgmap-dev] Land flooded
> >
> >
> > Hi Gerd.
> >
> >
> > Thanks for the information. The problem gets a little stranger, I use a software package called TYPViewer ( v4.5.35 ) to edit the type files, it has two outputs, one produces a typ file the other produces a txt file. If I use the typ file output I get the map I expect ( without having to specify --transparent or --generate-sea=land-tag=natural=background ) the sea is where it should be, if I use the text file output from TYPViewer then I have problems.
> >
> >
> > Lessen to learn, use the typ file output.
> >
> >
> > Regards
> >
> >
> > Gary
> >
>
> > _______________________________________________
> > mkgmap-dev mailing list
> > mkgmap-dev at lists.mkgmap.org.uk
> > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>
>
> --
> Thorsten Kukuk, Senior Architect SLES & Common Code Base
> SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
> GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

--
Thorsten Kukuk, Senior Architect SLES & Common Code Base
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list