Community of MapPoint and Virtual Earth Users and Developers
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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Counting points within drivetime zone 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! |
| ||||
|
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 |
![]() |
| Tags |
| counting, drivetime, points, zone |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |
Sharm El Sheikh Holiday
Enjoy the hot sun and fantastic beaches on your Sharm El Sheikh holiday! Check out the UlookUbook online offers...