Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Get Longitude and latitude

Get Longitude and latitude

Scheduled Pinned Locked Moved Visual Basic
questioncsharpcom
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rupesh Kumar Swami
    wrote on last edited by
    #1

    hi all, i want to get longitude and latitude of all point from any location like point P1(x1,y1) which is in the range of 1000 yards . can anyone suggest me that how can i do this in vb.net?

    Rupesh Kumar Swami Software Developer, Integrated Solution, Bikaner (India) My Company Award: Best VB.NET article of June 2008: Create Column Charts Using OWC11

    C 1 Reply Last reply
    0
    • R Rupesh Kumar Swami

      hi all, i want to get longitude and latitude of all point from any location like point P1(x1,y1) which is in the range of 1000 yards . can anyone suggest me that how can i do this in vb.net?

      Rupesh Kumar Swami Software Developer, Integrated Solution, Bikaner (India) My Company Award: Best VB.NET article of June 2008: Create Column Charts Using OWC11

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Rupesh Kumar Swami wrote:

      i want to get longitude and latitude of all point from any location like point P1(x1,y1) which is in the range of 1000 yards . can anyone suggest me that how can i do this in vb.net?

      That would be an infinite set. Are you sure you have enough memory to hold all that? Seriously, SQL Server 2008 has some spatial tools and it comes with some redistributable .NET assemblies (which are also downloadable separately from the Microsoft website) which contain methods that you can use to get the information you want.

      * Developer Day Scotland 2 - Free community conference * The Blog of Colin Angus Mackay


      Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

      R S 2 Replies Last reply
      0
      • C Colin Angus Mackay

        Rupesh Kumar Swami wrote:

        i want to get longitude and latitude of all point from any location like point P1(x1,y1) which is in the range of 1000 yards . can anyone suggest me that how can i do this in vb.net?

        That would be an infinite set. Are you sure you have enough memory to hold all that? Seriously, SQL Server 2008 has some spatial tools and it comes with some redistributable .NET assemblies (which are also downloadable separately from the Microsoft website) which contain methods that you can use to get the information you want.

        * Developer Day Scotland 2 - Free community conference * The Blog of Colin Angus Mackay


        Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

        R Offline
        R Offline
        Rupesh Kumar Swami
        wrote on last edited by
        #3

        sir, thanks for your quick respose. first of all, sorry for my incomplete information. I have a table in database(MySQL) which contains the longitude and latitude of different point. so i want to search in database for all point which is within 1000 yard from given location(mean longitude and latitude). i can not prepare my mind that how can i add value(like 1000 yard) in any point location. sir, can you suggest me that how can i add some value like 1000 yard in longitude(say -117.02413764) and latitude(33.03579077).

        Rupesh Kumar Swami Software Developer, Integrated Solution, Bikaner (India) My Company Award: Best VB.NET article of June 2008: Create Column Charts Using OWC11

        G 1 Reply Last reply
        0
        • R Rupesh Kumar Swami

          sir, thanks for your quick respose. first of all, sorry for my incomplete information. I have a table in database(MySQL) which contains the longitude and latitude of different point. so i want to search in database for all point which is within 1000 yard from given location(mean longitude and latitude). i can not prepare my mind that how can i add value(like 1000 yard) in any point location. sir, can you suggest me that how can i add some value like 1000 yard in longitude(say -117.02413764) and latitude(33.03579077).

          Rupesh Kumar Swami Software Developer, Integrated Solution, Bikaner (India) My Company Award: Best VB.NET article of June 2008: Create Column Charts Using OWC11

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          For the latitude it's simple to convert between degrees and distance. One degree is 110.9 kilometers. The the longitude the distance or a degree varies with the latitude. You can read about it here: Wikipedia: Expressing latitude and longitude as linear units[^]

          Despite everything, the person most likely to be fooling you next is yourself.

          1 Reply Last reply
          0
          • C Colin Angus Mackay

            Rupesh Kumar Swami wrote:

            i want to get longitude and latitude of all point from any location like point P1(x1,y1) which is in the range of 1000 yards . can anyone suggest me that how can i do this in vb.net?

            That would be an infinite set. Are you sure you have enough memory to hold all that? Seriously, SQL Server 2008 has some spatial tools and it comes with some redistributable .NET assemblies (which are also downloadable separately from the Microsoft website) which contain methods that you can use to get the information you want.

            * Developer Day Scotland 2 - Free community conference * The Blog of Colin Angus Mackay


            Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

            S Offline
            S Offline
            Steven J Jowett
            wrote on last edited by
            #5

            Colin Angus Mackay wrote:

            That would be an infinite set

            Surely there is a finite number of GPS positions? After all there is a finite amount of surface area on the Earth. ;P

            Steve Jowett ------------------------- Real programmers don't comment their code. If it was hard to write, it should be hard to read.

            C 1 Reply Last reply
            0
            • S Steven J Jowett

              Colin Angus Mackay wrote:

              That would be an infinite set

              Surely there is a finite number of GPS positions? After all there is a finite amount of surface area on the Earth. ;P

              Steve Jowett ------------------------- Real programmers don't comment their code. If it was hard to write, it should be hard to read.

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              Steven J Jowett wrote:

              there is a finite amount of surface area on the Earth

              Which can be continually subdivided in to smaller and smaller parcels.

              Steven J Jowett wrote:

              Surely there is a finite number of GPS positions?

              You could create a finite set if you were to place a limit on the precision. For example, if you set the precision to one degree your set would have 64,800 elements. Setting the precision to a tenth of a degree would mean 6,480,000 elements.

              * Developer Day Scotland 2 - Free community conference * The Blog of Colin Angus Mackay


              Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

              S 1 Reply Last reply
              0
              • C Colin Angus Mackay

                Steven J Jowett wrote:

                there is a finite amount of surface area on the Earth

                Which can be continually subdivided in to smaller and smaller parcels.

                Steven J Jowett wrote:

                Surely there is a finite number of GPS positions?

                You could create a finite set if you were to place a limit on the precision. For example, if you set the precision to one degree your set would have 64,800 elements. Setting the precision to a tenth of a degree would mean 6,480,000 elements.

                * Developer Day Scotland 2 - Free community conference * The Blog of Colin Angus Mackay


                Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

                S Offline
                S Offline
                Steven J Jowett
                wrote on last edited by
                #7

                Just when you think you've out-smarted the smug git in the corner, he turns round a kicks you squarely in the balls, just to prove you wrong. :omg: :sigh:

                Steve Jowett ------------------------- Real programmers don't comment their code. If it was hard to write, it should be hard to read.

                C 1 Reply Last reply
                0
                • S Steven J Jowett

                  Just when you think you've out-smarted the smug git in the corner, he turns round a kicks you squarely in the balls, just to prove you wrong. :omg: :sigh:

                  Steve Jowett ------------------------- Real programmers don't comment their code. If it was hard to write, it should be hard to read.

                  C Offline
                  C Offline
                  Colin Angus Mackay
                  wrote on last edited by
                  #8

                  Steven J Jowett wrote:

                  kicks you squarely in the balls, just to prove you wrong

                  Well, if that's what you think there isn't much I can do about it. I was merely correcting a misconception. While the surface of the earth is a finite area, that does not translate into there being a finite number of coordinate positions.

                  * Developer Day Scotland 2 - Free community conference * The Blog of Colin Angus Mackay


                  Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups