Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3434374
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:41:27+00:00 2026-05-18T07:41:27+00:00

Suppose I’ve got a set of results from a study into the behaviour of

  • 0

Suppose I’ve got a set of results from a study into the behaviour of a particular migratory bird. The bird has been tagged, and a GPS receiver records the migration path it follows each year over a five year period.
The results are stored in a SQL Server table that contains one geography linestring for each year’s path.

How would you go about defining the linestring representing the “average” path followed over the five year period?

Note that each sample linestring may contain a different number of points. They also don’t start and end at exactly the same points.

The best approach I’ve got so far is to use interpolation to determine the points at certain set proportions along each linestring. So, for example, the start point, a quarter of the way along, halfway along each route etc.
Then calculate the mean average lat/long of those positions across all routes, and construct a new geography linestring from those averaged points.

I’ve looked in a few computational geometry books to see if there’s a better known algorithm or technique to do this, but there doesn’t seem to be anything relevant. I can’t believe that it isn’t something that somebody else hasn’t done before though…

I don’t need exact code – just suggestions for any better general approaches. I don’t need “super-accuracy” either. As a sidenote, I’d ideally like the approach to be applicable to two or more polygons too.

Thanks for any suggestions!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T07:41:28+00:00Added an answer on May 18, 2026 at 7:41 am

    I can’t really post any sample code as I am working from my iPhone right now, but I do have a suggestion (don’t know if it’s good or bad) …

    For each line, determine each vertex’s position (percentage) along the line.

    After getting those values, per line, compute new vertices along each line using all of the OTHER lines’ percentage values.

    At this point, each line should contain the same number of vertices and the Nth vertex of each line corresponds directly with the Nth vertex of every other line.

    Now just average vertex 0 for every line to get vertex 0 of the “averaged” line. Repeat for vertex1 of each line, etc.

    This should work for lines as well as polygons.

    Note that you could also employ a weighted averaging algorithm if you could determine an accuracy value for each line. In the past I have used this approach when trying to average two lines. We had the ability to allow each line to be weighted, typically 50:50, but could go all the way to 100:0 or 0:100, depending on the accuracy if the sources.

    I went back and reread your question and saw that you already talked about interpolation. The way you talked about doing it seems like it could smooth or generalize the lines before computing the averages of the interpolated points (the fixed interval points). With my approach you would be densifying each line first and then computing the averages. It seems like that might be more accurate, but maybe not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I've got a set of textboxes of the form: <input class=member type=text name=integrantes[]
Suppose I have a class Baz that inherits from classes Foo and Bar ,
Suppose I have a custom object set up in a class similar to this.
Suppose application has multiple apks for different countries. If US user with international roaming
Suppose a scenario like below : Class User {} // User has Admin Role
Suppose I have two pages: - page 1 uses jquery mobile and has a
Suppose the following: >>> s = set([1, 2, 3]) How do I get a
Suppose you're developing a software product that has periodic releases. What are the best
Suppose I have three tables (Patients Doctors and Medicines). The Patients table has a
Suppose you have got a list of items along with their Weights[] and Price[]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.