MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Values of area in rectangle

This is a discussion on Values of area in rectangle within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Is there a way of allowing a user to draw a rectangle on the map and obtain the longitude and ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-13-2003
Member
Yellow Belt
 
Join Date: Sep 2003
Posts: 44
Values of area in rectangle

Is there a way of allowing a user to draw a rectangle on the map and obtain the longitude and latitude of each of its corners so that I can store values as user locations? Or is there an easier way of doing this, ie when a vehicle gets near a certain location, I can run a method to find the user location instead of finding the address?

Sorry if this is not making sense, I'm being given a headache by muppets in the office

Cheers

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
  #2 (permalink)  
Old 11-13-2003
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,322
Blog Entries: 1
Matrices,

The Shape object has a Vertices property, this can be used to obtain the Location's of the corners. From there you can get the lat/lon using Gille's code (article 13).

I don't understand about the vehicle, I guess if you assume Cartesian coordinates you can say if currentx > cornerx1 and currentx < cornerx2 etc then you can tell if the current location is within the rectangle?

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
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


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
Multiple Values virgilar MapPoint 2006/2009 Discussion 0 03-17-2005 01:39 PM
how to calculate Lat/Longs for the corners of a rectangle? Anonymous MapPoint 2006/2009 Discussion 2 01-29-2005 04:18 AM
Get all pushpins in a shape (Radius, Rectangle ...) kobkob MapPoint 2006/2009 Discussion 2 04-18-2004 04:44 AM
Values instead of pushpins jojooboo MapPoint 2006/2009 Discussion 1 03-17-2004 01:58 PM
How do I draw a circle, rectangle, ellipse or free.... Anonymous MapPoint 2006/2009 Discussion 1 05-26-2000 12:35 PM


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

Catered Chalet Ski Holidays
Looking for catered chalet ski holidays? Your search is over! Here at Holiday Hypermarket you can choose your style of accommodation with ease.

Best Travel Agent
Travel Counsellors was recently voted the UK's Best Travel Agent at the Guardian Unlimited travel awards. Book your travel with an award winning travel agent.

Portugal Holiday
For such a small country, you have many options from which to choose. A Portugal Holiday can include fantastic beaches and stunning scenery. Check out our great deals.

Maldives Holidays
If you are looking for a serene, laid back break in the sunshine, Maldives holidays are the choice for you. Be enchanted by the Maldives!

Egypt
In Egypt you find an ancient city buzzing with life. There is an abundance of historical sites to see, not just the pyramids. The Opera House is certainly worth a visit and you can enjoy some open-air theatre too.

Inclusive Holidays
At Travel.co.uk travel comparison will help you plan the perfect inclusive holidays.

Cheap Sharm Holidays
Get info on cheap Sharm holidays at On The Beach, and enjoy Egyptian nightlife!


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