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 2 of 2

problem exporting a route

This is a discussion on problem exporting a route within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi! I have a big problem.. When I load a route (database of Lat/Long positions) and insert it into mappoint, ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    problem exporting a route

    Hi!

    I have a big problem..

    When I load a route (database of Lat/Long positions) and insert it into mappoint, it's very slow (I can understand it) but when I GetLocations of this points, the findresults method returns me a general position. For Example, if I have a position in Av. Diagonal (Barcelona) mappoint returns me "Barcelona", when I need "Av. Diagonal".

    A solution can be like this (in vbasic):


    '************************************************* ******
    Set Coordenadas = Frmprincipal.MPC.ActiveMap.GetLocation(Latitud, Longitud, 0)

    Coordenadas.GoTo

    Frmprincipal.MPC.ActiveMap.ZoomIn
    Frmprincipal.MPC.ActiveMap.ZoomIn

    Set Resultado = Frmprincipal.MPC.ActiveMap.ObjectsFromPoint(Frmpri ncipal.MPC.ActiveMap.LocationToX(Coordenadas), Frmprincipal.MPC.ActiveMap.LocationToY(Coordenadas ))

    If Resultado.Count > 0 Then
    Locate_String = Resultado(1).Name
    Else
    Locate_String = "???"
    End If

    Frmprincipal.MPC.ActiveMap.ZoomOut
    Frmprincipal.MPC.ActiveMap.ZoomOut
    '************************************************* ******

    This Process of make/unmake 2 zooms and a Location.Goto takes 3 minutes with a 250 positions routes in a p3 1000 Mhz :(

    Is there any solution to get more accuracy positions within this technique?


    Thanks,

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Pepero,

    I have to admit I don't understand all of your post but I will try my best to help if I can.

    One thing I think I see is rather than zooming in two times, just set the Altitude to what you need: the Zero after the last comma is where you could set the Altitude

    "Set Coordenadas = Frmprincipal.MPC.ActiveMap.GetLocation(Latitud, Longitud, 0) "

    'the Zero after the last comma is where you could set the Altitude . Here I've changed it to 100

    "Set Coordenadas = Frmprincipal.MPC.ActiveMap.GetLocation(Latitud, Longitud, 100) "

    You can also set the Altitude of the current map anytime:
    objApp.ActiveMap.Altitude = 10

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Exporting Help
    By Circpro in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-19-2005, 07:10 PM
  2. please help exporting !
    By ToddF in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 04-26-2004, 11:12 AM
  3. How do I calculate a route distance without displaying route
    By spideybud in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 09-09-2003, 10:14 AM
  4. Exporting Route Schedule to Outlook Calendar
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 07-18-2003, 12:52 PM
  5. Exporting map/route image
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-10-2002, 08:29 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