Get Longitude and latitude
-
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
-
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
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.
-
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.
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
-
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
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.
-
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.
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.
-
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.
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.
-
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.
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.
-
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.
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.