navit-project.org

forum for navit navigation tool
It is currently 19 Nov 2017, 21:31
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the development process - coding, creating new features, fixing bugs and custom changes of Navit.

Note: For reporting bugs, use the bug tracker.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: What does the gd graphics plugin (based on libgd) do?
PostPosted: 17 Sep 2015, 23:41 
Offline

Joined: 23 Jun 2013, 20:15
Posts: 65
Location: Essen, Germany
Apart from the commonly used graphics plugins such as "android" and "gtk_drawing_area", Navit also has a graphics plugin called gd, based on the GD Graphics library (libgd).

I recently noted that this driver has not had any real work done since 2010 - currently it does not even build without some tricks.
Looking at the source code ( navit/graphics/gd/graphics_gd.c ) I noticed that the plugin does not even appear to draw to a window; instead it produces image files, or (if I understand correctly) sends image data through a socket or via shared memory (using the API from <sys/shmkey.h>).

Now I am wondering: What is this plugin supposed to be good for? It seems to communicate with some other software via sockets or shared memory, but there is nothing like that in the Navit sources. Is there some external project for that?

I also searched trac and the Navit wiki without success.

Unless we can find out what the plugin is meant for, I will probably delete it - maintaining code is pretty pointless if you do not even know what it is good for...


 Profile  
 
 Post subject: Re: What does the gd graphics plugin (based on libgd) do?
PostPosted: 19 Sep 2015, 05:02 
Offline

Joined: 27 Sep 2013, 21:10
Posts: 50
The only usage i can remember of was embedding in a webpage.

At some point in the past, you were able to try navit live from a webpage. It was really cool :)
The server side code was never published, but I don't remember why. Probably it was a request for a company paying for it.

It would be great if you could share the fixes, as i would actually love to see this feature back!


 Profile  
 
 Post subject: Re: What does the gd graphics plugin (based on libgd) do?
PostPosted: 19 Sep 2015, 20:54 
Offline

Joined: 23 Jun 2013, 20:15
Posts: 65
Location: Essen, Germany
Thanks for the information.

I haven't done any real work on the gd graphics; I just fiddled a bit with CMake to make it build (by adding "-lgd" to the library parameters).

The feature you describe does sound cool, but if half the code is missing, I see no point in keeping the other half. Plus, while embedding Navit in a webpage is cool, I don't think it makes a lot of sense.

There are plenty of web maps available (openstreetmap.org, Bing, the one with the multi-coloured G...), and they do a great job. Navit's main feature (to me) is that it runs on many devices, and off-line - I think we should work on that, instead of turning it into a web server.

So unless some other information shows up, I'll probably delete the code shortly. Of course, if someone wants to work on it later, it will be available - that's the nice thing about version control :-).


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS