Hi,
I am trying to plot the track of a vessel that I recieve as a number of latitude/longitude positions. Has anyone tried to use JFreeChart for something similar to this and if so, how was it done?
Any help appreciated.
Regards,
Gavin
Using JFreeChart to plot latitude and longitude
Re: Using JFreeChart to plot latitude and longitude
Hopefully someone will have some info...Bryan Scott (who wrote the servlet demo) might know, but I think he is on holiday right now.
Regards,
DG.
Regards,
DG.
Re: Using JFreeChart to plot latitude and longitude
Gavin
I have not utilised JFreechart to do this type of task. While I am sure that JFreeChart could be extended to do so, there are a number of specfic libraries which deal quite well with the task.
Path of least resistance, basically.
I would post a number of URLs / projects for you to review but I am currently 3000km for my laptop which has the bookmarks. I am at work next week.
Are you after a swing/AWT based solution or a server based one? Is your data dynamic or static? If you let us know I can tell you how we have done it. In the end, I would like to here how you achieve your solution to see if we can improve ours.
thanks
Bryan
I have not utilised JFreechart to do this type of task. While I am sure that JFreeChart could be extended to do so, there are a number of specfic libraries which deal quite well with the task.
Path of least resistance, basically.
I would post a number of URLs / projects for you to review but I am currently 3000km for my laptop which has the bookmarks. I am at work next week.
Are you after a swing/AWT based solution or a server based one? Is your data dynamic or static? If you let us know I can tell you how we have done it. In the end, I would like to here how you achieve your solution to see if we can improve ours.
thanks
Bryan
Re: Using JFreeChart to plot latitude and longitude
Thanks for the input Bryan.
The application in question is based on swing.
Essentially I have a number of yacht instruments that give me position and other data using NMEA strings (just a simple serial text based protocol that certain marine intruments use to communicate) - i.e. the data is dynamic.
I parse the strings and create events that are used to update various outputs on a monitor - I have so far used dynamic bar graphs from jfreechart for elements such as wind direction/speed and comparing boat speed from the GPS to boat speed measured by a transducer.
Anyway, a dynamic chart showing position in lat/long would be usefull. I might also look at overlaying on maps but thats not strictly necessary.
Any help you can send will be greatly appreciated and I am of course happy to share any of my efforts.
Regards,
Gavin
The application in question is based on swing.
Essentially I have a number of yacht instruments that give me position and other data using NMEA strings (just a simple serial text based protocol that certain marine intruments use to communicate) - i.e. the data is dynamic.
I parse the strings and create events that are used to update various outputs on a monitor - I have so far used dynamic bar graphs from jfreechart for elements such as wind direction/speed and comparing boat speed from the GPS to boat speed measured by a transducer.
Anyway, a dynamic chart showing position in lat/long would be usefull. I might also look at overlaying on maps but thats not strictly necessary.
Any help you can send will be greatly appreciated and I am of course happy to share any of my efforts.
Regards,
Gavin
Re: Using JFreeChart to plot latitude and longitude
Gavin
NMEA sentence processing is one of the core things I do for work. So yeah I would be interested in having a look at your code just for a different perspective. (and vise versa if you like). I am slowly lobbing work to open source our project.
We plug most of our serial devices into terminal servers and access via telnet api.
For most of the GIS work we have done we utilised
http://www.geotools.org/
and found it to work quite well. We plot a couple of layers:
1. Main vessel track (realtime)
2. workboat track (realtime)
3. Waypoints.
Geotools can also read from an esri shapefile (or other formats) which useful if you want to display a map as a background.
Some orther URLs (to provide some background)
http://www.freegis.org/index.en.html
http://sourceforge.net/project/showfile ... p_id=38930
http://openmap.bbn.com/
http://mapserver.gis.umn.edu/
http://www.vividsolutions.com/jts/jtshome.htm
NMEA sentence processing is one of the core things I do for work. So yeah I would be interested in having a look at your code just for a different perspective. (and vise versa if you like). I am slowly lobbing work to open source our project.
We plug most of our serial devices into terminal servers and access via telnet api.
For most of the GIS work we have done we utilised
http://www.geotools.org/
and found it to work quite well. We plot a couple of layers:
1. Main vessel track (realtime)
2. workboat track (realtime)
3. Waypoints.
Geotools can also read from an esri shapefile (or other formats) which useful if you want to display a map as a background.
Some orther URLs (to provide some background)
http://www.freegis.org/index.en.html
http://sourceforge.net/project/showfile ... p_id=38930
http://openmap.bbn.com/
http://mapserver.gis.umn.edu/
http://www.vividsolutions.com/jts/jtshome.htm