MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Performance with many pushpins

This is a discussion on Performance with many pushpins within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm using MapPoint 2006 in VS2008/C#. I want to plot many points on the map, typically many thousands, to get ...


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

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



Click here to register

Reply

 

LinkBack (4) Thread Tools Display Modes
  4 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 01-02-2009
Junior Member
White Belt
 
Join Date: Jan 2009
Posts: 2
Performance with many pushpins

I'm using MapPoint 2006 in VS2008/C#.
I want to plot many points on the map,
typically many thousands, to get a density
type graph.
I'm using something like this,


for (int loopCounter = 0; loopCounter < 1000; loopCounter++)
{
theLocation = axMappointControl1.ActiveMap.GetLocation(lat, longitude, 0);
axMappointControl1.ActiveMap.AddPushpin(theLocatio n, "");
lat += 0.0005;
longitude += 0.0005;
}


to test the concept. My test code works, but seems very slow,
typically 30-60s to plot 1000 points. I also tried using AddShape, but that seemed even slower. Am I doing something wrong? or is this typical sort of performance we are likley to see?
TIA

Paul
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 01-03-2009
Junior Member
Yellow Belt
 
Join Date: Feb 2006
Posts: 19
Send a message via Yahoo to renatoa
Re: Performance with many pushpins

If your data is geocoded, i.e. you know lat/long for all points, as you suggest from your code sample, and have them in a database, then plot them by doing a data import/link, the only method I know fast enough for such volumes.
I need less than 10 seconds to plot 1000 pushpins such way.
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 01-05-2009
Junior Member
White Belt
 
Join Date: Jan 2009
Posts: 2
Re: Performance with many pushpins

Thanks Renatoa,
obj.DataImport is much quicker, < 3s to plot 5000 points, from an excel file. When we do this for real datasets will already be in memory, so should be even faster!

Do you know if there are any hard limits on the number of pushpins that can be displayed?

Thanks Again

Paul
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
performance, pushpins


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/performance-many-pushpins-9381.html

Posted By For Type Date
Pushpin Tool Add-in - MP2K Magazine This thread Refback 01-06-2009 06:44 PM
MapPoint Help - MP2K Magazine This thread Refback 01-05-2009 09:46 AM
MapPoint For Dummies - MP2K Magazine This thread Refback 01-03-2009 02:28 PM
MapPoint For Dummies - MP2K Magazine This thread Refback 01-03-2009 02:28 PM

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
Optimize performance andrea Development 13 09-23-2008 04:38 PM
Virtual Earth API: Bulk Adding Pushpins to a Layer to Improve Performance Keith Kinnan's Weblog Virtual Earth Blogs 0 01-04-2008 09:27 AM
Improving the performance of generating pushpins Programmati kavehmb2000 MapPoint 2006/2009 Discussion 2 05-21-2006 05:48 AM
Performance Eric Frost MapPoint 2006/2009 Discussion 2 03-24-2006 06:27 AM
Performance within a vb.net app.. douglas MapPoint 2006/2009 Discussion 1 06-04-2003 09:22 AM


All times are GMT -5. The time now is 12:40 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Hurghada Holiday
Enjoy sunny Egypt when you book a Hurghada holiday through UlookUbook at a good price!



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