Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

Values of area in rectangle

This is a discussion on Values of area in rectangle within the MapPoint Desktop 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 ...

  1. #1
    Matrices is offline 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

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    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
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multiple Values
    By virgilar in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-17-2005, 02:39 PM
  2. how to calculate Lat/Longs for the corners of a rectangle?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-29-2005, 05:18 AM
  3. Get all pushpins in a shape (Radius, Rectangle ...)
    By kobkob in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 04-18-2004, 05:44 AM
  4. Values instead of pushpins
    By jojooboo in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-17-2004, 02:58 PM
  5. How do I draw a circle, rectangle, ellipse or free....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-26-2000, 01:35 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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