Hello Gerd,
 
many thanks for your answer.
I think you described a bit more than that what I'm looking for.
As far as I understand your answer, you described a statistic for a map. At this time I'm just looking for the matchings between style files and typ file and not how often a specific type is used in a map. Of course that could be very helpful and it would match my needs.
 
But I see that there is no known tool out there which does what I'm looking for. So I have to think about writing my own tool. I agree that it seems not very difficult, at least for the smaller part. May be that becomes my "Learning Java" project :-) because till now C++ is my favourite language.
 
And many thanks to you and all the other developers of mkgmap. You're doing a really good job.
 
Best regards,
Gert
 
 
 
 
 
Gesendet: Donnerstag, 02. April 2015 um 08:00 Uhr
Von: "Gerd Petermann" <gpetermann_muenchen@hotmail.com>
An: "mkgmap-dev@lists.mkgmap.org.uk" <mkgmap-dev@lists.mkgmap.org.uk>
Betreff: Re: [mkgmap-dev] how to check style files vs. typfile
Hi Gert,

I think GPSMapEdit may help for this (File -> Map Properties -> select tab Statistics),
but it doesn't load TYP files.

AFAIK mkgmap doesn't write any stats regarding the number of written types,
but it seems easy to do something like the style statistics.
I guess you think about something like a table showing 4 columns

Point/Line/Shape    Type/Subtype       Count     Desc from TYP
----------------------------------------------------------
point               0x2806             8         place of worship
point               0x2807             0         Megalithic monument
line                0x00               1211      cycling route
line                0x2F               4         ?  



where a count of 0 means the  type is defined in the TYP file but was not written
and a question mark in Desc means the type is not defined in the TYP file.

I have no idea how much work it would be to write such a table, because
I don't know the mkgmap data structures for the typ file.
It should be easy enough when the typ compiler has the needed infos.

Gerd



 

From: thesurveyor@wolke7.net
To: mkgmap-dev@lists.mkgmap.org.uk
Date: Wed, 1 Apr 2015 16:01:28 +0200
Subject: [mkgmap-dev] how to check style files vs. typfile
 
Hi, just a simple question to the experts.
 
How do you check if a used type in the style files (lines, points, ...) is available in the typ-file (e.g. basemap.typ or basemap.txt) ?  And maybe in the other direction too?
Many thanks in advance.
 
Regards,
Gert
 
 

_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev