MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Counting points within drivetime zone

This is a discussion on Counting points within drivetime zone within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I've plotted a number of points and have created drivetime zones around certain ones. Now, I'd like to be ...


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 Thread Tools Display Modes
  #1 (permalink)  
Old 11-12-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Counting points within drivetime zone

Hi,

I've plotted a number of points and have created drivetime zones around certain ones. Now, I'd like to be able to see what % of the total plotted points fall within the drivetime zone. How can I do that? Please help, I really need it!
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 11-17-2003
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Maria,

Here is a VB sample to get you started. Put some pushpins in Tampa, FL for the test. Hope this helps.

Code:
Dim objmap As MapPointCtl.Map
Dim objDataSet As MapPointCtl.DataSet
Dim objRecords As MapPointCtl.Recordset
Dim objshape As MapPointCtl.Shape
Dim lngCount As Long
Dim objloc1 As MapPointCtl.Location
Dim aDriveTimeZone As MapPointCtl.Shape

Set objmap = MappointControl1.ActiveMap
Set objloc1 = objmap.FindResults("Tampa, FL").Item(1)
Set objshape = objmap.Shapes.AddDrivetimeZone(objloc1, 20 * geoOneMinute)
objshape.Select

For Each objDataSet In objmap.DataSets
 Set objRecords = objDataSet.QueryShape(objshape)
 objRecords.MoveFirst
  Do While Not objRecords.EOF
   lngCount = lngCount + 1
    objRecords.MoveNext
  Loop
Next
MsgBox "Number of records in shape: " & lngCount
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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
counting, drivetime, points, zone


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
drivetime zone export problems Anonymous MapPoint 2006/2009 Discussion 4 06-18-2003 03:00 AM
export drivetime zone Anonymous MapPoint 2006/2009 Discussion 1 05-19-2003 09:25 AM
Exporting Drivetime Zone coordinates karlski MapPoint 2006/2009 Discussion 2 01-07-2003 05:23 PM
Find all zip codes in a drivetime zone SolverDS MapPoint 2006/2009 Discussion 0 09-28-2002 12:40 PM
Find all zip codes within drivetime zone SolverDS MapPoint 2006/2009 Discussion 0 09-28-2002 12:39 PM


All times are GMT -5. The time now is 05:46 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

Sharm El Sheikh Holiday
Enjoy the hot sun and fantastic beaches on your Sharm El Sheikh holiday! Check out the UlookUbook online offers...



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