Menu

Generate edges from nodes data (GPS)

Help
2016-07-07
2016-07-20
  • Alain L'Hostis

    Alain L'Hostis - 2016-07-07

    Dear Tulipists
    I have a dataset of GPS tracks of bikes (first lines given below). A list of nodes (GPS locations with speed) with a Id by track. Is it possible inside Tulip to generate the edges that are in the point data? Or is it necessary to work on the entry file?
    Ideally I would love an edge Origin-Destination (start and stop), with the layout given by the intermediate nodes (mid).
    Then I plan to do some beautiful edged bundling.
    Thanks for help,
    Alain

    TripID, TimeStamp,Latitude, Longitude, Altitude, Distance, Speed, Type
    574f15e688c537656ba3e153,1462282937,50.5713,2.946465,99.8,0,5.898202,start
    574f15e688c537656ba3e153,1462282942,50.57133,2.94655,27.9,0.0068631412006462285,7.407368,mid
    574f15e688c537656ba3e153,1462282947,50.57102,2.946783,31.8,0.03817546386754432,7.749658,mid
    574f15e688c537656ba3e153,1462282952,50.57064,2.947073,35.6,0.04693024272778714,7.613256,mid
    574f15e688c537656ba3e153,1462282957,50.57047,2.947217,37,0.021453244599016118,7.690979,mid
    574f15e688c537656ba3e153,1462282962,50.57011,2.947503,39.6,0.04481267704531628,7.251407,mid

     
    • brenoust

      brenoust - 2016-07-08

      Hi Alain,

      Not a full answer, but this can help you: you can use viewLayout for edges
      as well and insert control points in there (list of coords), exactly the
      same way as the edge bundling does.
      You can then use any type of curves to draw your edges, such as Bezier to
      get you the nice result you're expecting.

      However, if you want to use edge bundling, then these points will be
      removed and replaced by the bundling.

      Cheers,

      --
      Benjamin

      On 7 July 2016 at 19:14, Alain L'Hostis lhostis@users.sf.net wrote:

      Dear Tulipists
      I have a dataset of GPS tracks of bikes (first lines given below). A list
      of nodes (GPS locations with speed) with a Id by track. Is it possible
      inside Tulip to generate the edges that are in the point data? Or is it
      necessary to work on the entry file?
      Ideally I would love an edge Origin-Destination (start and stop), with the
      layout given by the intermediate nodes (mid).
      Then I plan to do some beautiful edged bundling.
      Thanks for help,
      Alain

      TripID, TimeStamp,Latitude, Longitude, Altitude, Distance, Speed, Type
      574f15e688c537656ba3e153,1462282937,50.5713,2.946465,99.8,0,5.898202,start

      574f15e688c537656ba3e153,1462282942,50.57133,2.94655,27.9,0.0068631412006462285,7.407368,mid

      574f15e688c537656ba3e153,1462282947,50.57102,2.946783,31.8,0.03817546386754432,7.749658,mid

      574f15e688c537656ba3e153,1462282952,50.57064,2.947073,35.6,0.04693024272778714,7.613256,mid

      574f15e688c537656ba3e153,1462282957,50.57047,2.947217,37,0.021453244599016118,7.690979,mid

      574f15e688c537656ba3e153,1462282962,50.57011,2.947503,39.6,0.04481267704531628,7.251407,mid

      Generate edges from nodes data (GPS)
      https://sourceforge.net/p/auber/discussion/206283/thread/f69ad025/?limit=25#d76d


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/auber/discussion/206283/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Alain L'Hostis

    Alain L'Hostis - 2016-07-11

    Ok Benjamin, this what I want to achieve, have edges with layout given by GPS points on the track, but I understand from your message that this must be done outside of Tulip, right?

     
    • brenoust

      brenoust - 2016-07-12

      I'm not sure of what you mean by "outside of Tulip".
      So far, we don't gave a default GPS import plugin, so you must load your
      data yourself, python would be my preferred mean.
      I would suggest in a first time to load all GPS points in a separate node,
      with all their properties (especially latitude, longitude and type), and
      linking them alongside.
      You can then open the Geographic View and generate the layout by latitude
      and longitude.
      Then, you should write a script that follows a path from node type 'start'
      to 'end', creates a link from the 'start' node to the 'end' node, for which
      you will store in 'viewLayout' a list of tlp.Coord() corresponding to the
      viewLayout of each intermediary node - that you may delete as well.
      You will finally obtain what you want.

      Note that you can include altitude information afterwards in the
      z-coordinate of tlp.Coord(x,y,z) points

      I hope it helps,

      --
      Benjamin

      On 12 July 2016 at 05:31, Alain L'Hostis lhostis@users.sf.net wrote:

      Ok Benjamin, this what I want to achieve, have edges with layout given by
      GPS points on the track, but I understand from your message that this must
      be done outside of Tulip, right?


      Generate edges from nodes data (GPS)
      https://sourceforge.net/p/auber/discussion/206283/thread/f69ad025/?limit=25#7e52


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/auber/discussion/206283/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Alain L'Hostis

    Alain L'Hostis - 2016-07-20

    Dear Benjamin,
    valuable suggestion, but I am not at ease with scripts in Tulip. I am currently writing in R (this is what I mean by outside Tulip) a script to generate directly the tlp file, I prefer this way.
    The nodes are very heavy at the moment, I hope that the generated tlp file will be more easily handled by Tulip (version 4.8 in Ubuntu)
    Alain

     

Log in to post a comment.