MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




MapPoint 2004 Performance Issues (c++)

This is a discussion on MapPoint 2004 Performance Issues (c++) within the MapPoint 2006/2009 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++ ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-14-2006
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 06-14-2006
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 06-14-2006
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 892
Blog Entries: 9
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
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 06-20-2006
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#)?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 06-20-2006
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 06-20-2006
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 892
Blog Entries: 9
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
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
issues, mappoint 2004, performance


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Mappoint: Installation & Performance Transit MapPoint 2006/2009 Discussion 0 06-13-2005 04:10 AM
Poor performance when getting data from MapPoint Recordset ngeorg MapPoint 2006/2009 Discussion 0 10-22-2003 05:20 AM
Mappoint ActiveX performance Anonymous MapPoint 2006/2009 Discussion 2 09-09-2003 06:13 PM
MapPoint Add-In performance rseman MapPoint 2006/2009 Discussion 2 05-06-2003 09:00 AM
Registry issues with MapPoint 2002 Anonymous MapPoint 2006/2009 Discussion 2 11-14-2002 08:03 PM


All times are GMT -5. The time now is 04:39 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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