Results 1 to 2 of 2
  1. #1
    JOsbeck is offline Member
    Join Date
    Oct 2009
    Rep Power

    Default How to continuously plot GPS data (Lat/Long) ?


    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 :)
    Attached Thumbnails Attached Thumbnails How to continuously plot GPS data (Lat/Long) ?-add_traps_later_2.jpg  

  2. #2
    zweibieren is offline Senior Member
    Join Date
    Aug 2009
    Pittsburgh, PA
    Rep Power


    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 Repository - [virtualrisk] Index of /util/lma

    Hope this helps,
    Attached Files Attached Files

Similar Threads

  1. ECG plot in a textfile
    By samson in forum Java 2D
    Replies: 13
    Last Post: 01-28-2012, 05:02 PM
  2. Plot 2D graph in Java from RS-232 data
    By spratana in forum Java 2D
    Replies: 4
    Last Post: 02-11-2009, 07:49 PM
  3. Run applet continuously
    By sderrick in forum Java Applets
    Replies: 2
    Last Post: 09-17-2008, 01:21 AM
  4. [SOLVED] How to Run a .exe file continuously???
    By jazz2k8 in forum New To Java
    Replies: 11
    Last Post: 04-22-2008, 07:20 AM
  5. Replies: 1
    Last Post: 01-28-2008, 11:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts