MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




get street numbers of crossing lines

This is a discussion on get street numbers of crossing lines within the MapPoint 2006/2009 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 ...


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 02-01-2006
Junior Member
Yellow Belt
 
Join Date: Dec 2005
Posts: 16
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.
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 02-01-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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.
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 02-02-2006
Junior Member
Yellow Belt
 
Join Date: Dec 2005
Posts: 16
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
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 02-04-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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
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 02-04-2006
Junior Member
Yellow Belt
 
Join Date: Dec 2005
Posts: 16
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
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 02-04-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

Sometime a solution is very simple. Ofthen we think too complicatied
I'm glad it helped.
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
crossing, lines, numbers, street


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
Positions of House Numbers Winwaed MapPoint 2006/2009 Discussion 1 05-12-2005 01:42 PM
Highway numbers Anonymous MapPoint 2006/2009 Discussion 1 06-23-2004 11:09 PM
How to find the next crossing street on a route dzhong MapPoint 2006/2009 Discussion 1 03-05-2003 06:20 PM
Address Numbers Anonymous MapPoint 2006/2009 Discussion 1 01-31-2003 11:44 AM
hi, i want to be able to put numbers in the plott.... Anonymous MapPoint 2006/2009 Discussion 1 06-27-2002 09:45 AM


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


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