Community of MapPoint and Virtual Earth Users and Developers
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++ ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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 |
| |||
|
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 |
| ||||
|
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 See the Geoweb Guru for online mapping |
| |||
| Quote:
|
| |||
| Quote:
|
| ||||
|
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 See the Geoweb Guru for online mapping |
![]() |
| Tags |
| issues, mappoint 2004, performance |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mappoint: Installation & Performance | Transit | MapPoint 2006/2009 Discussion | 0 | 06-13-2005 03:10 AM |
| Poor performance when getting data from MapPoint Recordset | ngeorg | MapPoint 2006/2009 Discussion | 0 | 10-22-2003 04:20 AM |
| Mappoint ActiveX performance | Anonymous | MapPoint 2006/2009 Discussion | 2 | 09-09-2003 05:13 PM |
| MapPoint Add-In performance | rseman | MapPoint 2006/2009 Discussion | 2 | 05-06-2003 08:00 AM |
| Registry issues with MapPoint 2002 | Anonymous | MapPoint 2006/2009 Discussion | 2 | 11-14-2002 07:03 PM |
Algarve Holiday
Portuguese all year round sunshine is some of what awaits you if you choose the Algarve holiday option through UlookUbook!