MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




get Radius of displayed area while using ViewByScale

This is a discussion on get Radius of displayed area while using ViewByScale within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, How to get the Radius of the displayed map area. The map is being rendered using ViewByScale & the ...


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 09-21-2005
Junior Member
White Belt
 
Join Date: Sep 2005
Posts: 3
get Radius of displayed area while using ViewByScale

Hi,

How to get the Radius of the displayed map area. The map is being rendered using ViewByScale & the image height = 400 & width = 450.

1. map scale = 5000000;
2. Image height = 400;
3. Image widht = 450;
4. Default dpi. (should this be taken into account).

What woud be the radius of the visible area of the map?

Any ideas appreciated.

thanks in advance.

ranjith
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 09-21-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,123
Hi,

I dont understeand (but I'm learning English
The window you display the map in is a rectangular area, and a radius is from a circle, so I'm confused and dont understeand
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 09-22-2005
Junior Member
White Belt
 
Join Date: Sep 2005
Posts: 3
get Radius of displayed area while using ViewByScale

Yes, it is rectangular. I need the approximate radius of the map rendered in that rectangular area.

Let me try & explain again:

1. The height & width of the area where the map is displayed remains constant. And the MapOptions height & width also are set to this same value -
Height = 400;
Width = 450;
mapOptions.Format.Height = Height;
mapOptions.Format.Width = Width;

2. The map is rendered using ViewByScale.
scale = 5000000;
mapViews[0].CenterPoint = latLong;
mapViews[0].MapScale = scale;

Now the map is displayed in the rectangular area. I need to know what would be the approximate radius of the map which is rendered with the scale mentioned above. Note: the scale keeps changing.

Hope the query is clear.
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 09-22-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,123
Hi,

I still dont underteand it all. Maybe some other candrop in here ?
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 10-07-2005
Junior Member
White Belt
 
Join Date: Sep 2005
Posts: 3
Hi,
See the map image below for an example.
In this map how do i get the distance from the left to the right. I know the image width & scale. How will i be able to determine the actual total distance from the left of the map to the right say from colarado to washington. The map is rendered using View by scale.

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 10-07-2005
calv1ns's Avatar
Member
Green Belt
 
Join Date: Mar 2005
Posts: 91
Not Radius but Width

hey ranjithtellis

I think you mean width not radius - radius is the distance between the center and the outside edge of a circle. When dealing with rectangles like the map above you use the terms Height and Width. Height is the vertical. Width is the horizontal.

Here is a VB6 function that will display a a message box with the height and width of the map window in pixels and GeoUnits.

As with all my code - globally define
Dim myapp as MapPoint.Application 'and
Dim myobj as MapPoint.Map

Quote:
Public Function getmap_extents() As Integer
Dim wk_istat As Integer
Dim X, Y As Long

wk_istat = 1

If myapp.Units = 0 Then
wk_units = " Miles"
ElseIf myapp.Units = 1 Then
wk_units = " Kilometers"
End If
wk_str = " Map Window Height: " & myobj.Height & vbCrLf
wk_str = wk_str & " Map Window Width: " & myobj.Width & vbCrLf
wk_str = wk_str & " Map Pixel Size: " & myobj.PixelSize & vbCrLf
Y = myobj.Height * myobj.PixelSize
X = myobj.Width * myobj.PixelSize
wk_str = wk_str & " Map Units are:" & wk_units & vbCrLf
wk_str = wk_str & " Height is: " & Y & wk_units & vbCrLf
wk_str = wk_str & " Width is: " & X & wk_units & vbCrLf

wk_rsp = MsgBox(wk_str, vbOKOnly)
getmap_extents = wk_istat
End Function
ciao,
__________________
Calv1ns
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 10-10-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,123
Hi,

thats what happens if language is alian for both questionar and answernoar (if this word exists
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 10-11-2005
calv1ns's Avatar
Member
Green Belt
 
Join Date: Mar 2005
Posts: 91
Ask Mohamed

Funny Wilfried

Quote:
thats what happens if language is alian for both questionar and answernoar (if this word exists
You get Mohamed to translate.

Quote:
That is what happens if the language is alien for both the questioner and the responder.
Where is our French Couscous vendor anyway?

Ciao,
__________________
Calv1ns
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 10-23-2005
Member
Green Belt
 
Join Date: Mar 2005
Posts: 97
Hi,
Quote:
Where is our French Couscous vendor anyway?
Still alive!
Thanks for remembring !

- The Camels are using Mappoint to deliver the couscous in Paris. I hope there is no camels aviary influenza!!!!

- 4 weeks in Morrocco in a place without electricity, without computer and without time to use it ( Pointer 29°27'40" N , 10°05'02" W ) .
- 2 weeks preparing Marketing courses for the high school
- And a lot of travelling in France for my main job

So, not enough time to visit actively this sympathetic forum!

As the last year I will be the sponsor of a marathonman. Any idea to use Mappoint to follow the guy in his marathon of sands in a screen in my stores in Paris? ( ACL? )

http://fberahou.club.fr/bledrunner/accueil.html

oAiC ( = Ciao in Alian language )

Mohamed
__________________
Mohamed
www.AtlasCouscous.com
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 10-23-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,123
Hi Mohamed,

Glad you still here !
I was already thinking you have been eaten by a very hungry camel or eaten yourself too much couscous
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
area, displayed, radius, viewbyscale


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
Displayed Road Names osidak MapPoint 2006/2009 Discussion 2 04-29-2008 02:28 PM
Pushpins not displayed Anonymous MapPoint 2006/2009 Discussion 1 01-15-2008 02:09 PM
MapPoint Displayed from Exchange GAL stuckpipe MapPoint Web Service and Virtual Earth 1 04-10-2006 03:33 PM
Match by Zip Not Displayed Anonymous MapPoint 2006/2009 Discussion 4 10-28-2002 12:22 PM
In my VB app, a boat is a pushpin displayed on the.... Anonymous MapPoint 2006/2009 Discussion 1 05-06-2002 01:50 AM


All times are GMT -5. The time now is 07:13 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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