Results 1 to 2 of 2
- 10-08-2009, 10:24 AM #1
Member
- Join Date
- Oct 2009
- Posts
- 1
- Rep Power
- 0
How to continuously plot GPS data (Lat/Long) ?
Hello
I want to feed the UI with Lat/Long data (from GPS device or file) and plot a line/track ( with a arrow symbol at the end). It should look something like the attached pic (a stripped GPS navigator)
Also I would like to have the possibilities to let user point to the 'track' a select a GPS position
Please advice me how solve this
- Should I plot a x/y graph using the Lat/long as is ( Lat/Long as x/y ) ?
- Is there some ready java package/API that I can use ?
Later I would also move this solution to embedded Java device ( J2ME)
Thanks any input :)
- 10-21-2009, 08:48 PM #2
Senior Member
- Join Date
- Aug 2009
- Location
- Pittsburgh, PA
- Posts
- 282
- Rep Power
- 4
Attached are the sources for two classes I've built for dealing with lat/long values.
A LatLong object itself merely holds a lat/long value and has methods to convert it to various forms.
The PixGrid object is more interesting;
it maps between lat/long space and a pixel grid suitable for display.
Especially interesting is PixGrid's tool to map lat/longs to pixels.
To use this tool, I capture an image from GoogleEarth
and note down the lat/long values for points on the image.
Then I make a table listing for each point its lat/long value
and its x,y position in the image. From this table,
the tool builds a mapping between pixel space and lat/long space.
The least-squares routines I used are from
SourceForge.net Repository - [virtualrisk] Index of /util/lma
Hope this helps,
Zweibieren
Similar Threads
-
ECG plot in a textfile
By samson in forum Java 2DReplies: 13Last Post: 01-28-2012, 04:02 PM -
Plot 2D graph in Java from RS-232 data
By spratana in forum Java 2DReplies: 4Last Post: 02-11-2009, 06:49 PM -
Run applet continuously
By sderrick in forum Java AppletsReplies: 2Last Post: 09-17-2008, 12:21 AM -
[SOLVED] How to Run a .exe file continuously???
By jazz2k8 in forum New To JavaReplies: 11Last Post: 04-22-2008, 06:20 AM -
how to send and receive data from servlet to applet Continuously ??
By jega_ms in forum Java ServletReplies: 1Last Post: 01-28-2008, 10:49 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks