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 6 of 6

get street numbers of crossing lines

This is a discussion on get street numbers of crossing lines within the MapPoint Desktop Discussion forums, part of the Map Forums category; I want to draw a line or polyline within a map and figure out the street numbers where this line ...

  1. #1
    Th.M.Mädzulat is offline Junior Member Yellow Belt
    Join Date
    Dec 2005
    Posts
    17

    get street numbers of crossing lines

    I want to draw a line or polyline within a map and figure out the street numbers where this line crosses a road (within a radius of a few metres from this crossing point). Maybe there's someone who's got an idea - I've got no one.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Looks easy. You know starting point and end point. Find addrss restults every 10 meter on the line. Streets are normlly wider so this resolution must go.

  3. #3
    Th.M.Mädzulat is offline Junior Member Yellow Belt
    Join Date
    Dec 2005
    Posts
    17

    linestep

    ... every 10 meter on the line...

    thank you for suggestion, - something like this was on my mind, but it failed by this point. I've got the start and end as geographical coordinates and don't know how to go along this line...
    regards
    martin

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    See following drawing:

    Code:
                               B
                             / |
                           /   |
                         /     |
                       /       |
                   c /         | a
                   /           |
                 /             |
               /               |
             /_________________|
           A         b          C
    you know from both points latitude and longitude. Substract them from each other and you know a (delta latitude) and b (delta longitude). First we calculate c (the distance between the points:
    Code:
    c := Sqrt(Power(a, 2) + Power(b, 2));
    Now we calcualte A (the Angle):
    Code:
    A := ArcSin(a / c);
    Now the only thing that rest, is calculate a and b in steps of c until we are at the length of c.

    Code:
    a := Sin(A) * c_step;
    b := Cos(A) * c_step;
    So you have to add a and b by the latitude and longitude of the from A and you have the new point on the line.

    Note that this is from the top of my head and I could mistake here and there. I also did not check these (Delphi) functions for degree or radians because you could have it idfferent in your programming language.

    I also think we have to correct longitude for the latitude because this only count on the equator. Someone has a better view on this ? When I have some spare time I want to check, but difficult at the moment.

    I hope this let you in the right direction

  5. #5
    Th.M.Mädzulat is offline Junior Member Yellow Belt
    Join Date
    Dec 2005
    Posts
    17
    Thank you very much, - of course it's a simple math function. I was thinking about formulas for eliptical bodys an so and had forgotten that I can neglect that for the short of the distance.
    Sometimes there are knots in my head.
    regards
    martin

  6. #6
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Sometime a solution is very simple. Ofthen we think too complicatied
    I'm glad it helped.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Positions of House Numbers
    By Winwaed in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-12-2005, 01:42 PM
  2. Highway numbers
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-23-2004, 11:09 PM
  3. How to find the next crossing street on a route
    By dzhong in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-05-2003, 06:20 PM
  4. Address Numbers
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-31-2003, 11:44 AM
  5. hi, i want to be able to put numbers in the plott....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-27-2002, 09:45 AM

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 26 27