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
Results 1 to 6 of 6

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. #1
    Etienne is offline 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. #2
    Anonymous is offline 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. #3
    Anonymous is offline 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. #4
    Anonymous is offline 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. #5
    Wilfried is offline 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. #6
    Juozas is offline 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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Web based Mapping Solution
    By sar70 in forum Bing Maps and MapPoint Web Service
    Replies: 0
    Last Post: 04-27-2006, 01:28 AM
  2. About ERROR 4-40028-1. Error or Bug ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 12
    Last Post: 01-11-2005, 09:32 AM
  3. New to MapPoint, Advice on this solution . . .
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-04-2004, 07:49 AM
  4. [VB6 + MP2K] : How to know that... I found the solution !
    By Vincent BENNER in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-21-2003, 04:18 AM
  5. Ambigous results : MapPoint doesn't take the right solution?
    By Vincent BENNER in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-22-2003, 02:57 AM

Tags for this Thread

Posting Permissions

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91