MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Radius

This is a discussion on Radius within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have 800 push pins that I need to draw radii around. Is there a way to do it in ...


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 01-07-2004
Junior Member
White Belt
 
Join Date: Jan 2004
Posts: 8
Radius

I have 800 push pins that I need to draw radii around. Is there a way to do it in one swoop? I tried importing an excel file with two columns: zip code and radius. When importing, I tried to use the radius value as the metropolitan area, but that did not produce the results I needed. Basically I need to map out locations and then highlight each location with a 60 mile radius so I can visually determine coverages in regions. Any help would be appreciated. Thanks.
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-12-2004
Member
Yellow Belt
 
Join Date: Feb 2003
Posts: 48
Call something like this after you have imported your data:

Code:
Sub DrawSplats(rds As MapPoint.DataSet, rdblRadius As Double)

   Dim rs      As MapPoint.Recordset
   Dim shp     As MapPoint.Shape
   
   If rds.RecordCount > 0 Then
      Set rs = rds.QueryAllRecords
      rs.MoveFirst
      Do
         Set shp = rds.Parent.Parent.Shapes.AddShape(geoShapeRadius, rs.Pushpin.Location, rdblRadius*2, rdblRadius*2)
         
         With shp
            .Fill.ForeColor = vbRed
            .Line.ForeColor = .Fill.ForeColor
            .SizeVisible = False
            .Fill.Visible = True
            .ZOrder geoSendBehindRoads
         End With
         rs.MoveNext
      Loop While Not rs.EOF
      Set rs = Nothing
   End If
End Sub
HTH

M.
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-13-2004
Junior Member
White Belt
 
Join Date: Jan 2004
Posts: 8
Thank you very very much!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 01-13-2004
Junior Member
White Belt
 
Join Date: Jan 2004
Posts: 8
Unfortunately I could not find how to call the function. Where do I go to do this? Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 01-21-2004
Junior Member
White Belt
 
Join Date: Jan 2004
Posts: 8
hey I have all the code figured out except what to use as the first parameter in the function call.

I have map point open, the pushpins to encircle loaded onto the map, and have the code compiled
into a com add-in, which is added to map point via the [tools]==>[com add-in].

how do I reference the "MapPoint.DataSet" of the currently loaded map?

some code...


Call DrawSplats( <<<< first parameter >>>>>, 5)


my best guess for <<<< first parameter >>>>> is...

MapPoint.Application.ActiveMap.DataSets.AddPushpin Set("hello")

via

Dim objApp As New MapPoint.Application
objApp.ActiveMap.DataSets.AddPushpinSet("hello")

...

any suggestions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 01-22-2004
Junior Member
White Belt
 
Join Date: Oct 2003
Posts: 8
Can anyone point me i the direction of where to use this code?? do i need MP2004??

I have been trying to do this for ages.... i am soon going to have to draw 119 radiuses on a map - PLEASE HELP!!

TIA

Dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 01-22-2004
Member
Yellow Belt
 
Join Date: Feb 2003
Posts: 48
After you have imported the data, in the legend there will probably be a representation of the dataset along with its name.
So, call the code using something like>

DrawSplats MapPoint.Application.ActiveMap.DataSets("<the dataset name as shown in the legend>"), 5

The default name is "My Pushpins" but your dataset may be called something completely different.

M.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 01-22-2004
Junior Member
White Belt
 
Join Date: Oct 2003
Posts: 8
please can you help me by telling me how to use this code?? is it VB?? or what is 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
  #9 (permalink)  
Old 01-23-2004
Member
Yellow Belt
 
Join Date: Feb 2003
Posts: 48
OK guys.

I have thrown together a COM Add-in which you can download from this site by clicking on this link http://www.mp2kmag.com/downloads/DrawSplats.zip

Zip file includes the code as well, so feel free to tweak. No guarantee implied or given!!

Good luck.

M.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 01-23-2004
Junior Member
White Belt
 
Join Date: Oct 2003
Posts: 8
You are an absolute star....... thank you ever so much - i hope it didnt take you too long.
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
radius


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
Radius of a Circle Gianmaria MapPoint 2006/2009 Discussion 1 07-14-2006 01:32 PM
radius to altitude sharkbait MapPoint 2006/2009 Discussion 1 06-23-2004 10:22 AM
New to GIS. Radius? tallcotton64 MapPoint 2006/2009 Discussion 4 02-12-2004 10:05 AM
Radius around all pushpins Terry MapPoint 2006/2009 Discussion 0 05-20-2003 12:54 AM
Multi-radius Anonymous MapPoint 2006/2009 Discussion 1 02-26-2003 09:07 AM


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

Cheap Ski Holidays Bulgaria
Cheap ski holidays in Bulgaria are a wonderful introduction for first time skiers. Off the slopes, Bulgaria has a fascinating cultural heritage to explore.

City Break Holidays
Top 10 City Breaks Holidays. Based on holidays booked this year, these are the most popular City Breaks Holidays for 2006

Cheap Holidays to Cuba
Cheap holidays to Cuba are a reality when you book with dealchecker.co.uk. We search leading UK Travel agents and tour operators to bring you some great deals.

Holidays to Antigua
The Holiday Place has fantastic deals on holidays to Antigua. Visit our website to view special offers on holidays to the Caribbean.

Holiday
Searching for the perfect holiday? Well check out ULookUBook online to find out all about your destination and also to book a great value holiday.

Comparison Holidays
Travel.co.uk is a travel comparison service which makes it easy for you to find and plan the best holidays.

Cheap Holidays in Lanzarote
Now's the time to get up and go visit the Canary Islands! View cheap holidays in Lanzarote 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