473,811 Members | 3,260 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Convert coordinates XY into LAT-LONG

Hi

I search algorithme to convert XY into Latitude/longitude to use
customer data with GPS...

thk in advance.
Jul 19 '05 #1
1 21483
In article <29************ **************@ posting.google. com>,
<st***********@ mobilair.qc.ca> wrote:
Hi

I search algorithme to convert XY into Latitude/longitude to use
customer data with GPS...

thk in advance.


I don't know of a perl implementation, but there are Fortran routines
available at:

ftp://www.ngs.noaa.gov/pub/pcsoft/for_inv.3d/source/

You are interested in the forward routine, which calculates the
latitude and longitude of a point that is a certain bearing and
distance from another latitude and longitude. The inverse routine
calculates the range and bearing between two lat,lon points.

One of these days I am going to convert these routines into perl, but I
haven't done it yet.

You can also search for algorithms implementing "geodesic distance" or
"geodetic inverse problem", or "Modified Rainsford's Method", but be
aware that one C++ implementation I found on the web (can't remember
which one now, sorry) had a bug in it.

FYI: this newsgroup is defunct. You should try comp.lang.perl. misc in
the future for better response.
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
13916
by: Oldchatterman | last post by:
Hello, in an application I measure a lot of 2d coordinates (x,y) of a pattern. This pattern consists of a set of points on grid with fixed pitches in x and y direction. These coordinates all have a score for quality and are sorted on this score. What I want to do is to sort these coordinates first on x and define groups (regions) of x-coordinates that belong together. After this step I want to sort the different x-regions in y-regions.
1
2531
by: google | last post by:
Hello, Using ECMA script within an SVG document i'm looking for a way to display an overlay window (rectangle) that follows the mouse cursor an shows some information. It boils down to getting the coordinates of the mouse cursor in the SVG document. While evt.clientX/Y will give you the pixel coordinates relative to the topleft of the SVG document, it does not, however, has the same scale or position
1
2888
by: phil cunningham | last post by:
I am new to C# and GDI+ so I may have missed a simple way of doing this. I am trying to use the mouse to pick object up by seeing if the mouse position is Inside the object. However, I am using the Transform method as follows float scale=2; Matrix x = new Matrix(); x.Scale(shift,shift); g.Transform=x;
2
1850
by: Jonathan Raemdonck | last post by:
I have the following situation: I'm developing an reverse geocoder, so input is lat/lon coordinate and output is the nearest textual location. I have a database of +- 2 000 000 records that contains lat/lon and full name of the location. These are the steps I take now: 1 'draw' a box around the lat/lon position we have as input 2 search the DB for all the points in this box
2
4435
by: renu | last post by:
hello, I have one structure named CHAINPOINT,like CHAINPOINT { int x,y; byte dir } I am creating object of CHAINPOINT like CHAINPOINT* arrayPoint; arrayPoint = new
3
2704
by: Eadmund | last post by:
Hi, Pretty sure this is a non starter, but does anyone know how to convert an array of x-y coordinates, plotting a shape, in to a image (BMP, GIFF etc) in javascript? Regards Eadmund
2
1968
by: Chetana | last post by:
Hi , I have created one application which has multiple lat and lon values . I want to draw a polyline for those point .I am not using google map so I want function in javascript to draw line. If anyone has any idea about this reply me immidiately. Thanks.
15
2374
by: Steve | last post by:
I am having problems getting values out of an array. The array is set as a global array and values are pushed into it as they are read from a JSON file using a "for loop". When the "for loop" is finished I want to convert the array into a string which can be used by another function. My attempt to do this is not working. The script looks like this: heights=; function getElevationInter(latv,lngv) { var script =...
5
3588
by: Dave Bootsma | last post by:
I have an application where I want to redraw a polygon from points I retrieve from a file. The file is read with streamreader line by line each line contains the points for each polygon. Below is a typical line from my file. 500,748 500,678 552,678 552,696 584,696 584,714 612,714 612,748 Each set of x,y coordinates is separated by a space. How can I read this into my points collection. If I currently try I get
0
2149
by: mingke | last post by:
Hi.... I'm having difficulties with my codes to list coordinates (in my example codes is 4x4 pixel). I tried two different codes and the results are different.Basically, I tried to declare the sub coordinates for x and y, and then print it. But, if I make a change by declaring sub coordinates for x and print it, and the declare sub coordinate for y and print it, the results are different. I have tried to calculated manually, the right...
0
9607
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10397
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10410
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10138
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9214
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7674
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5700
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.