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

## MapPoint error 4-40028-1 : Solution

This is a discussion on MapPoint error 4-40028-1 : Solution within the MapPoint Desktop Discussion forums, part of the Map Forums category; Just for information about MapPoint Error 4-40028-1 : this error is not documented in MapPoint online help nor KB nor ...

1. Junior Member White Belt
Join Date
Nov 2004
Posts
1

## MapPoint error 4-40028-1 : Solution

Just for information about MapPoint Error 4-40028-1 : this error is not documented in MapPoint online help nor KB nor formum, so I spent a few time to find the reason : it occurs when you try to draw a line between two locations (objMap>>Shapes>>AddLine(objLoc1,objLoc2)) and whend the distance between these two points is 0.
Have a nice day !
Etienne NEUVILLE
48.87744N-2.28782E

2. Senior Member Black Belt
Join Date
Jul 2002
Posts
5,137
Hi

I have exactly this error.

I think it's probably an error about 2 identical coordinates...

But I get this error when i use the ZoomOut() function ??? (in debug mode of VS.NET C# 2003)...

3. Senior Member Black Belt
Join Date
Jul 2002
Posts
5,137
Hi

I have just found that this error is thrown also when :

I have 2 coordinates :
p1(lat1,long1)
p2(lat2,long2)

When we add the 2 points on a map, here are the possible errors :

(E1) IF lat1==lat2 AND long1==long2 THEN ERROR 4-40028-1
(E2) IF lat1==lat2 AND long1<>long2 THEN ERROR 4-40028-1

The second case (E2) is very problematic to me because we have an application tracking vehicles and sometimes between 2 coordinates the latitude is the same but not the longitude...

To me it's a bug... What do you think of this ?

4. Senior Member Black Belt
Join Date
Jul 2002
Posts
5,137
Hi,

I just have the same error when i'm trying to remove some relationships...

5. Senior Member Black Belt
Join Date
Nov 2004
Location
Belgium
Posts
2,433
Hi,

Same error is reported a short while ago. Also it hade to do with lat1 == lat2 if my volatile memory is right

a workaround could be to check the latitude, and if it is same then increase one of them with a small value, eg 0.00001 whitch is a little more than 1 meter.

maybe it is better to catch the exception and if exception occure the change the value.

6. Junior Member White Belt
Join Date
Aug 2007
Posts
3

## Re: MapPoint error 4-40028-1 : Solution

Hi,

I tried it with MapPoint 2002, it looks like at least one coordinate in adjacent locations in line must differ at least by 0.00001.

##### 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
•