Announcement

Collapse
No announcement yet.

[Solved] Position.interpolate how to use correctly

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Solved] Position.interpolate how to use correctly

    Hi all.
    who use Position.interpolate? the use is:
    Position.interpolate(percent, position1, position2)
    where percent is from 0 to 1. right?

    so, if i i've a position (only latlon, not elevation) between position1 and position2 how can i calculate the correct percent?
    Last edited by patmurris; 02-25-2009, 03:47 PM. Reason: Solved

  • #2
    Use LatLon.greatCircleDistance() and compare distances from your LatLon to pos1 and pos2. Note that interpolate does not follow great circle lines though.
    My World Wind Java Blog & WW.net Plugins page

    Comment


    • #3
      latp = lat1 + perc*(lat2-lat1)
      Works good.
      Last edited by nlneilson; 02-24-2009, 11:09 PM.
      Neil
      http://www.nlneilson.com

      Comment


      • #4
        Originally posted by nlneilson View Post
        latp = lat1 + perc1*(lat2-lat1)
        Works good.

        what's that formula?

        latp stay for? perc1?

        i use the interpolation to discover the elevation of some point.

        Comment


        • #5
          To find the latlon 20% (or any percent) between latlon1 and latlon2 do this for lat and lon.
          Checking with the Vincenty Inverse and Direct formula it's OK.
          Last edited by nlneilson; 02-24-2009, 11:28 PM.
          Neil
          http://www.nlneilson.com

          Comment


          • #6
            Using two GPS loggers, one as base and roaming, from the Gov. survey markers, often referred to as brass caps, which is a brass cap on a concrete monument, the positions are stored on the loggers.

            Processed by Python code with the concept provided here
            latp = lat1 + perc*(lat2-lat1)
            to divide a section (approx. one square mile) into 1/2, 1/4, 1/8 and 1/16 the resulting latlon positions are reasonably close (within the accuracy of the GPS receivers with DGPS) and the Roaming corrected to the Base I can get to about 1 foot of positions obtained by a Total Station Survey Laser Transit.

            This is the way GPS surveying is done to an accuracy of about 1 cm with systems starting at about $20,000.

            WWJ is a good app to display this data.
            Last edited by nlneilson; 02-25-2009, 09:36 AM.
            Neil
            http://www.nlneilson.com

            Comment


            • #7
              Originally posted by patmurris View Post
              Use LatLon.greatCircleDistance() and compare distances from your LatLon to pos1 and pos2. Note that interpolate does not follow great circle lines though.
              thanks, it's works as i expected.

              Comment


              • #8
                Interpolation does not follow great circle lines though. Chicago Popcorn Ceiling Removal

                Comment


                • #9
                  Be aware, however, that interpolate does not adhere to great circle paths. demolition contractors

                  Comment


                  • #10

                    undefined
                    undefined
                    undefined
                    undefined
                    undefined
                    undefined
                    undefined
                    undefined
                    undefined
                    undefined
                    undefined
                    undefined
                    undefined
                    undefined

                    Comment

                    Working...
                    X