MapPoint Forums

MapForums

Community of VE/MapPoint 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

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 10:05 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

Flights to Dubrovnik
Book cheap flights to Dubrovnik online at Holiday Hypermarket. Don't miss out on a fantastic holiday for fantastic value. Book soon!

Travel Counsellors
Travel Counsellors are an award winning Travel Agent. Have a personal Travel Counsellor help with your travel plans.

Holidays to Jamaica
At dealchecker.co.uk, we'll shop around for cheap holidays to Jamaica so you don't have to. We search deals from the UK’s top holiday companies all in one go. Try it for free.

Cancun Holidays
Cancun holidays offer beautiful scenery, calm waters and plenty of shopping. Get a taste of the good life while on holiday in Cancun.

Balearics
Before booking to the Balearics Islands make sure you check out our travel guide online. The Balearics are renowned for their vibrant nightlife but there are also some stunning Gothic cathedrals, Stone Age ruins and fishing villages.

Travel
Before making a choice regarding travel, check out the amazing variety of options on Travel.co.uk.

Sharm el Sheikh Holidays
Visit Egypt! Get info on Sharm El Sheikh holidays, only 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