On Jun 28 19:31, Guenther Meyer wrote:
> Am Samstag 27 Juni 2009 schrieb Andreas Putzo:
> > i tried to install gpsdrive 2.10pre7 from source and stumbled about
> > the missing geoinfo.db. I figured out that it is either available in the
> > minimal-icons.tgz from sourceforge or in Joergs openstreetmap-map-icons
> > package.
> right, it has been moved into those packages.
>
> > How is this file generated? Is there a script available to generate
> > the file from an existing icon directory?
> the file is generated with create_geoinfo-db.pl
> you can find it in the openstreetmap svn in applications/share/map-
> icons/tools/
>
> > Reading the database schema i guess the file is used to display OSM
> > waypoints with gpsdrive (mapnik). Is this correct? Does that file have
> > any other purpose within gpsdrive?
> >
> it holds all the poi-type data used for displaying all the points and icons in
> gpsdrive. there is also a table, that matches the osm-types with the gpsdrive-
> types when importing poi-data from an osm xml-file.
> it has nothing to do with mapnik.
Thanks for the explanation. That made things clear :)
May i suggest putting the script into the gpsdrive repository? Judging
from the comments in the script, geoinfo.db is solely used by gpsdrive
and thus, in my opinion, should be kept there.
That way, cmake could add the map-icons as a "build-dependency" and
create the geoinfo.db at build time.
I think that would be a much cleaner solution and, by theory, you are
not bound to a particular icon set, but people are allowed to provide
their own.
Another advantage might be, that gpsdrive wouldn't complain about the
missing geoinfo.db after installation but show a meaningful error
message at build time that a dependency is missing.
If you don't oppose my idea i would try to prepare a patch to implement
this.
Andreas
_______________________________________________
GPSdrive mailing list
GPSdrive@...
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive