[ gpsdrive ] Mapnik , kismet

Joerg Ostertag (gpsdrive Munich/Germany) gpsdrive at ostertag.name
Fri Sep 14 04:15:25 AKDT 2007


On Freitag 14 September 2007, Andreas Putzo wrote:
> Hi,
>
> Am 13.9.2007 schrieb "Joerg Ostertag (gpsdrive Munich/Germany)"
>
> <gpsdrive at ostertag.name>:
> >On Donnerstag 13 September 2007, Andreas Putzo wrote:
> >> It seems that the mapnik osm.xml file in the user's home dir gets
> >> overwritten every time gpsdrive starts.
> >
> >Yes, currently this is on purpose.
>
> Why? 

Because currently the osm.xml file still changes really often. And for the 
first try we didn't have the time to implement something which checks if this 
file is modified by the user and might merge it.
So if you currently want to change the xml file you have two possibilities:
	edit the file in 
		/usr/share
	create your copy of the osm.xml file in a directory
		~/scripts/mapnik/osm.xml (untested, but should work)

> This way the user cannot change anything in this file like rendering 
> styles.

Normally not, but ... see above.
In the long term I think we will have this editable in the GUI. But this will 
take at least another year or two.

> Besides, i see no reason to create exactly the same file over and over
> again.

It was the easiest and fastest to implement ;-)

> What is the rationale for this?

see above .


> Mmh, mapnik stores its files in 'mapdir' which is ~/.gpsdrive/maps/ by
> default?
> At least for me mapnik generated files are saved in
> ~/.gpsdrive/maps/mapnik/
> at the moment.

Well, mapnik is only the library in the background which does the osm 
rendering for us. So all applications using the mapnik library can use the 
same config file, since they all use the same Data sources. The destination 
of the rendered images is completely different depending on the application. 
If you use the old gpsdrive_mapnik_gentiles.py programm to create local tile 
they are stored in the directory above. But if you use generate_tyles.py from 
the mapnik package they are stored in a completely different location. And if 
you have a tile-cache they are stored in your www-directory. So you see the 
destination directory is completely different depending on the application.
But the sources for all those are the same. This was the reason I decided to 
use a central osm.xml file for all those. The only reason I copy the file is 
that the currently used mapnik cannot  handle an empty username. But this 
will change in the future too.


> >> Does the kismet bug still exists?
> >
> >I fixed some of the kismet stuff. But someone who is using kismet more
> > than I do should really test it. I Only had one Accesspoint here. This
> > one Accesspoint was displayed. But I havn't tried driving around or other
> > stuff. So please test this!!!
>
> I lost my gps receiver somehow but i think i can do a little testing with
> replays :)

Would be great !!!


-- 

Jörg (Germany, Munich)

http://www.ostertag.name/
Tel.: +49 89 420950304
Skype: JoergOstertag


More information about the GPSdrive mailing list