🌐 Show Forums for All Locations
Land Surveyor Community

 

Replies

  • Not a Surveyor

     

     

     

    for input in latitude and longitude

    5 'ixlalo.ub adapted from code at
    6 'https://rosettacode.org/wiki/Find_the_intersection_of_two_linesSinclair _ZX81_BASIC
    7 'In U Basic by yuji kida https://en.wikipedia.org/wiki/UBASIC
    10 XA=48.7815144526:YA=-117.2847245001 'XA=669595.708:XB=2495736.332
    30 XB=48.7815093807:YB=-117.2901673467 'XB:669533.412:YB=2494425.45
    50 XC=48.7824947147:YC=-117.28751374:'XC=669595.708:YC = 2495736.332:
    60 XD=48.77996737:YD=-117.2922957:'XC= 669331.214:Yc=2494260.804
    90 print "THE TWO LINES ARE:"
    100 print "YAB=";YA-XA*((YB-YA)/(XB-XA));"+X*";((YB-YA)/(XB-XA))
    110 print "YCD=";YC-XC*((YD-YC)/(XD-XC));"+X*";((YD-YC)/(XD-XC))
    120 X=((YC-XC*((YD-YC)/(XD-XC)))-(YA-XA*((YB-YA)/(XB-XA))))/(((YB-YA)/(XB-XA))-((YD-YC)/(XD-XC)))
    130 print "Lat = ";X
    140 Y=YA-XA*((YB-YA)/(XB-XA))+X*((YB-YA)/(XB-XA))
    150 print "Lon = ";Y
    160 'print "YCD=";YC-XC*((YD-YC)/(XD-XC))+X*((YD-YC)/(XD-XC))

     

    for input in northing and easting (survey feet / meters)

    5 'ixspc.ub adapted from code at
    6 'https://rosettacode.org/wiki/Find_the_intersection_of_two_linesSinclair _ZX81_BASIC
    7 'In U Basic by yuji kida https://en.wikipedia.org/wiki/UBASIC
    10 XA=669595.708:XB=2495736.332 'XA=48.7815144526:YA=-117.2847245001
    30 XB=669533.412:YB=2494425.45:'XB=48.7815093807:YB=-117.2901673467
    50 XC=669595.708:YC=2495736.332:'XC=48.7824947147:YC=-117.28751374
    60 XC=669331.214:YC=2494260.804:'XD=48.77996737:YD=-117.2922957:
    90 print "THE TWO LINES ARE:"
    100 print "YAB=";YA-XA*((YB-YA)/(XB-XA));"+X*";((YB-YA)/(XB-XA))
    110 print "YCD=";YC-XC*((YD-YC)/(XD-XC));"+X*";((YD-YC)/(XD-XC))
    120 X=((YC-XC*((YD-YC)/(XD-XC)))-(YA-XA*((YB-YA)/(XB-XA))))/(((YB-YA)/(XB-XA))-((YD-YC)/(XD-XC)))
    130 print "Lat = ";X
    140 Y=YA-XA*((YB-YA)/(XB-XA))+X*((YB-YA)/(XB-XA))
    150 print "Lon = ";Y
    160 'print "YCD=";YC-XC*((YD-YC)/(XD-XC))+X*((YD-YC)/(XD-XC))

     

     

  • Hi Jetro,

     

    It can be done by the geometry in this way...see below;

    1. take Y2-Y1/X2-X1 = H

    2. take X3-X4/Y3-Y4 = G

     

    Cal for X:

    (Y3-1/GxX3-Y1+HxX1) / (H-1/G) = L

     

    Cal for Y:

    Y1+Hx(L-X1)

     

    Cheers,

    Geospatial JS

  • You can simply go back to your Analytic Geometry in college days. The idea is to get the equations of the two intersecting lines then equate variables.

    • Please give me example friend.Thank you

This reply was deleted.

Answer As your Facebook Page

Global Surveyor Forum

Latest Discussions by Category

🔎

You are not logged in

 

Land Surveyor Community Forum

Many if not most land surveying related topics are evergreen - meaning the topics of discussion are many times timeless.  If you have a question regarding Land Surveying in general, this is the place to ask your surveying related questions.    

Add Discussion

How to Use Forums

How to use Forums
Our forums on Land Surveyors United are here to be used as much for finding help with problems in the field as the are for you to express your opinions on anything that has to do with land surveying in general. Feel free to share anything that is on your mind, as long as it isn't meant to damage another member's reputation. Please keep it clean and help insure that everyone has the opportunity to enjoy the benefits of being part of a community that grows together.

We are committed to allowing freedom of expression for all of our members, and that includes maintaining a safe space for people with opposing views to express themselves. We get posts from all over the country and even the globe, so needless to say, people come with different viewpoints on lad surveying practices and processes. We see this diversity and variety as a real strength-- dialogue and debate are an integral part of the educational process, as well as an important tool in exploring different sides of complex issues.

All Community Hubs inside the community have their own forum for asking specific questions to other surveyors, by location, equipment type, etc.

Global Forums

Add Your Expertise

Hey there!
It looks like you are enjoying the community content.

That's nice! Please don't forget to mention us if you use what you just copied on your website. Help strenthen the community by linking back to us!


Thank you very much! Have a nice day! :)

Ok. Don't bother me again, for this session.