Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

 Subscribe to receive our newsletter. Subscribe Unsubscribe

## Some concerns about calcpos sub

This is a discussion on Some concerns about calcpos sub within the MapPoint Desktop Discussion forums, part of the Map Forums category; i am new to this forum and I noticed that there is a calpos routine going around . Having looked ...

1. Junior Member White Belt
Join Date
Jul 2006
Posts
6

## Some concerns about calcpos sub

i am new to this forum and I noticed that there is a calpos routine going around . Having looked at the code, I have some concern. It seems that the program is assuming the earth is spherical , ie constant radius. MP is clear about actually using a WGS84 ellipsoid. The error then can easily reach several hundred of meters if using a spherical assumption. Anybody has concerns about that or I am actually wrong? Has anybody checked how MP actually computes distances between 2 points? Thanks.

2. I have heard people talk about this as a potential problem but in practice it has been OK.

Also, take a look at MapPoint 2006, it now has lat/lon as properties you can use and it might take care of any issues?

Eric

3. Junior Member White Belt
Join Date
Jul 2006
Posts
1

## Calcpos Concerns

Hi all, I have used the calcpos routine to calculate hundreds of thousands of map pin positions. I then use the results to recreate the pins later. The accuracy I have found to be within just a few metres so, even though you may be justified in your observation, in practice and using MP2004 this routine works exceptionally well.

Cheers

Chris

4. I can confirm that it works well. MP will be using WGS84 for its distance calculations, and I suspect this results in very small errors.

(you are correct that if you use the wrong geoid for plotting then errors of 100m or so are probable).

About 12 months ago, I had to write some code that performed extensive geometry calculations. I foget the details now, but I did have to make the decision "spherical Earth" or "elliptical Earth". When I got as far as estimating the differences it was a matter of metres within distances of 100km+.

Richard

5. Junior Member White Belt
Join Date
Jul 2006
Posts
6
Thanks for all your comments. I am still amazed about the accuracy. May be MP is actually using the same assumption to calculate distances from lat long which would explain why it's working so well. I will check on a few points and let you know.

6. Junior Member White Belt
Join Date
Jul 2006
Posts
6
Hi again,
I have checked. Actually MP is using the spherical assumption to calculate distances (to make sure just get distances for points at a same longitude and realize that they are proportional to the angle in radian). The radius seems to be 6378200m .This explains why calcpos actually works well. However, as a consequence distance calculations have a certain error. It's about 15 m by tenth of degrees for mid latitudes which I guess is bearable for most needs (around 0.27%). It would be interesting to know what microsoft has to say about this -not much advertised- approximation in the calculation of distances...

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

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