logo separator

[mkgmap-dev] spltter software design question

From WanMil wmgcnfg at web.de on Sun Oct 21 21:14:26 BST 2012

Am 21.10.2012 12:30, schrieb GerdP:
> Hi,
>
> I am still working on the cleanup of the patch for splitter
> (splitter_problem_list.patch)
> I got the impression that the patched code is quite messed up now regarding
> the naming and use of interfaces and abstract classes.
>
> I'd like to change that so that
>
> a)
>   - MapReader defines the interface to the IO routines that read OSM data,
> each format like pbf, o5m, or osm(xml) requires a special MapReader
> implementation. Current r202 defines an empty and more or less unused
> interface
>   - MapProcessor defines the interface to the routines that should process
> the OSM data provided by the IO routines (nodes, ways, relations, etc).
> - OSMWriter defines the interface to the IO routines that write OSM data,
> each format like pbf, o5m, or osm(xml) requires a special OSMWriter
> implementation. Current r202 defines this as an abstract class.
>
>
> - class AbstractMapReader should contain common code in (at least two)
> readers
> - class AbstractMapProcessor should contain common code in  (at least two)
> processors
> - class AbstractOSMWriter should contain common code in  (at least two)
> writers
>
> b) The NodeCollector (used with parm --legacy-mode) seems to be obsolete to
> me, I want to remove it
> c) A few other helper classes are no longer in use (e.g. IntList, IntObjMap,
> SparseInt2ShortMap). I'd like to move them to a folder called obsolete
>
> What do you think about this?
>

Hi Gerd,

I don't have time to have a look into the changes. Only one hint about 
your design ideas: The OSMWriter is used by the mgkmap sea precompiler. 
So if you change that please change the mkgmap sea precompiler too.

WanMil




More information about the mkgmap-dev mailing list