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 2004 Performance Issues (c++)

This is a discussion on MapPoint 2004 Performance Issues (c++) within the MapPoint Desktop Discussion forums, part of the Map Forums category; ---------------------------------- MapPoint 2004 Performance Issues ---------------------------------- We use the MapPoint 2004 functionality via COM in our Visual Studio 2005 C++ ...

  1. #1
    nicolas is offline Junior Member White Belt
    Join Date
    Jun 2006
    Posts
    3

    MapPoint 2004 Performance Issues (c++)

    ----------------------------------
    MapPoint 2004 Performance Issues
    ----------------------------------

    We use the MapPoint 2004 functionality via COM in our Visual Studio 2005 C++ Project to display and highlight "routes". A single route consists of two locations (addresses) and a line connecting those two points. So basically, we are adding PushPins, change their symbols and then add the lines to the MapPoint control. This works alright if there are only a couple of routes to display at a given time. But it takes long to when there are a lot of tours to display ("a lot" being around 250, in other words 500 locations and 250 lines); drawing these 250 tours takes around 90 seconds.

    Originally, it was even worse. We have tried a couple of things to speed this up. Basically, we reduced calls into the MapPoint control to a minimum by caching locations etc. But even with those optimizations, 90 seconds is a very long time for our users to wait for some locations to be drawn.

    Other optimization topics we looked into:

    1. dataset import via file
    This puts the pushpins quite fast onto the map, but since we do not want the default pushpin symbol for each location, we have to iterate through all the pushpin objects and change the symbol, which slows things down again. Also, we did not find any way to import anything other than locations.

    2. COM Add-In
    In some newsgroups it was suggested to use a COM Add-In to speed up the drawing process of MapPoint. We found a COM Add-In called "MapPoint Graticule COM Add-In" on www.mp2kmag.com . We downloaded and installed this Add-In into MapPoint 2004 and started it, but it wasn't really fast at all! Maybe this was faster in MapPoint 2002, but it took some minutes (3-5) on our computers (Intel 2.77 ghz dual cores) to draw the graticules. Another problem that arised here is that it looks like there's no option to create a MapPoint 2004 COM Add-In from within Visual Studio 2005.

    A big problem while implementing our MapPoint solution was, that there was almost no official documentation about using MapPoint with C++.

    Our Questions:
    - Is there something we overlooked?
    - Are these issues resolved in MapPoint 2006? (we have to wait for the European version)
    - Will MapPoint 2006 work with Visual Studio 2005 (can a COM Add-In be made?)?

    ---
    Nicolas

  2. #2
    rbarthels is offline Member Green Belt
    Join Date
    Nov 2002
    Posts
    52
    I had the same time problems drawing routes and pushpins. So I used a different approach. I copy the map in the clipboard and draw the bitmap on the canvas of my program. Afterwards I am able to draw my own graphic primitives which is much faster (www.free-routing.com). But this is a lot of work

    Rainer

  3. #3
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    You're on the right lines by reducing as much inter-app COM communication as possible. Also, release all COM objects when you have finished them.

    I haven't tried using the graticule add-in, but the idea of an add-in being faster is because it runs in-thread. Hence the COM communication should be quite a bit faster.
    You have dual core PCs, so it is possible (in theory!) that dual-process overhead is much reduced - so you do not see as much of a speedup?


    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  4. #4
    nicolas is offline Junior Member White Belt
    Join Date
    Jun 2006
    Posts
    3
    Quote Originally Posted by rbarthels
    I had the same time problems drawing routes and pushpins. So I used a different approach. I copy the map in the clipboard and draw the bitmap on the canvas of my program. Afterwards I am able to draw my own graphic primitives which is much faster (www.free-routing.com). But this is a lot of work

    Rainer
    is there a sample of getting the mappoint map as bitmap somewhere (c++/c#)?

  5. #5
    nicolas is offline Junior Member White Belt
    Join Date
    Jun 2006
    Posts
    3
    Quote Originally Posted by Winwaed
    You have dual core PCs, so it is possible (in theory!) that dual-process overhead is much reduced - so you do not see as much of a speedup?
    Richard
    well, I got ask to speed things up right after we go our new PCs, so I don't know how slow things were before...

  6. #6
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    You can create a bitmap by using the "Copy to Clipboard" method. Or buy "Exporting to Webpage". The former will put it in the clipboard. The latter will write it to disk as a GIF.


    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mappoint: Installation & Performance
    By Transit in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-13-2005, 04:10 AM
  2. Poor performance when getting data from MapPoint Recordset
    By ngeorg in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-22-2003, 05:20 AM
  3. Mappoint ActiveX performance
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 09-09-2003, 06:13 PM
  4. MapPoint Add-In performance
    By rseman in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 05-06-2003, 09:00 AM
  5. Registry issues with MapPoint 2002
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 11-14-2002, 08:03 PM

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 92 93 94 95 96