MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Improving the performance of generating pushpins Programmati

This is a discussion on Improving the performance of generating pushpins Programmati within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi everyone I already generated a table containing name,latitude,longitude of a big amount of points. the code i send here ...


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 05-17-2006
Junior Member
White Belt
 
Join Date: May 2006
Posts: 3
Send a message via Yahoo to kavehmb2000
Improving the performance of generating pushpins Programmati

Hi everyone
I already generated a table containing name,latitude,longitude of a big amount of points. the code i send here works, but it takes a lifetime to generate the pushpins in desired locations. can anyone please hint me on how to reduce the time for generating them?
(it took almost 15 hours to generate about 2500 points while importing the same data in MapPoint got les than 1 min to show!)
[C#]
Code:
// here my dataTable is generated
DataTable mydt = DBAccess.ProcessSpecialRoadPoints(itemChecked.ToString());
                    MapPoint.Map map =this.axMappointControl1.ActiveMap ;
                    [color=orange]foreach (DataRow drl in mydt.Rows)
                    {
                        MapPoint.Location location = map.GetLocation(Convert.ToDouble(drl["LATITUDE"]), Convert.ToDouble(drl["LONGITUDE"]), 1);

                        MapPoint.Pushpin pin = map.AddPushpin(location, NAME);
[/color]
                    }
Thanks in advance
KMB
__________________
KMB
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 05-19-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,094
Hi,

Its been a little while I did something in dotNet. But possible the iretation trough the database, also the convertion to double cost a lot of time. I assume you checked the loop already with the conversions, but without the calls to mappoint ?

15 hour seems to me very long for 2500 pushpins.

Did you also try a test in a close loop without any conversion or collention to put 2500 pushpins on the map, eg with slight increments of lat/long to show them ?
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 05-21-2006
Junior Member
White Belt
 
Join Date: May 2006
Posts: 3
Send a message via Yahoo to kavehmb2000
Dear Wilfried
thank you for your kind answer; actually there is no way I can bypass the conversion to doubles! but, thanks to you again, I could find my answer in this other post of yours!

http://www.mp2kmag.com/mappoint/disc...ushpin+dataset
__________________
KMB
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
generating, improving, performance, programmati, pushpins


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
Improving On The MapPoint Geocoding Algorithm Anonymous MP2K Magazine Articles 10 03-12-2005 02:22 PM
Visual Basic 6.0 generating a map based on access data virgilar MapPoint Web Service and Virtual Earth 0 03-11-2005 08:27 AM
Generating Localized Maps faddat MapPoint 2006/2009 Discussion 1 01-14-2005 02:11 PM
generating with/implementing a map in MapPoint 2004 mohrm MapPoint 2006/2009 Discussion 0 09-21-2004 03:56 AM
Generating maps for a datapoint set Anonymous MapPoint 2006/2009 Discussion 0 05-13-2003 07:56 AM


All times are GMT -5. The time now is 01:38 PM.


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

Borovets Ski
Enjoy the stunning scenery of the Rila Mountains when you book a Borovets Ski Holiday in Bulgaria. Holiday Hypermarket makes price comparison between competitors easy.

Turkey Holidays
Find and book Turkey Holidays with Travel Counsellors. Holiday destinations around the world including Turkey.

Flights to Cape Town
Before booking flights to Cape Town visit dealchecker.co.uk to make sure you are getting the best deal in town. Visit online today and try the holiday search for free.

St Lucia Holidays
St Lucia holidays offer something for everyone. Enjoyed by families and young couples alike, St Lucia is a great destination. See online!

Cheap Egypt Holidays
Pick up a bargain cheap Egypt holiday online when you visit ulookubook.com. Just check out our tips to make sure you book at the right time to get a great holiday for a great price. Finding cheap Egypt holidays can be simple when you know how.

Compare holiday prices
Compare holiday prices online where you can see all the possibilities at Travel.co.uk

Cheap Goa Holidays
Experience the world famous Wednesday Flea Market at Anjuna! Book cheap Goa holidays at On The Beach!


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