MapPoint error 4-40028-1 : Solution

Etienne
11-18-2004, 01:31 PM
:idea: 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

Anonymous
01-05-2005, 03:07 AM
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)...

Anonymous
01-07-2005, 08:54 AM
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 ?

Anonymous
02-15-2005, 11:30 AM
Hi,

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

Wilfried
02-15-2005, 02:08 PM
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.

Juozas
01-11-2008, 05:23 AM
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.

 
Web mp2kmag.com
mapforums.com