A friend of mine give me this formula:
/*gps coordinates of zero local point*/
X0POL = 38.4758676627; # 1° ZERO POINT POLAR
Y0POL = 15.9189614895; # 2° ZERO POINT POLAR
/*convert zero point from DD coordinate to DDM*/
B5 = (60 * X0POL) - (38 * 60) + 3800;#3828.5521 # 1° ZERO POINT
B6 = (60 * Y0POL) - (15 * 60) + 1500;#1555.1377 # 2° ZERO POINT
G5 = 4.12841392; # TERRESTRIAL ROTATION RADIANS DEGREE
COEFFX = 1849.94;
COEFFY = 1454.88;
VALORE1 = (X * SIN(G5) + B5 * COEFFX + Y * COS(G5)) / COEFFX;
VALORE2 = (VALORE1 * COEFFX * COT(G5) - Y * (SIN(G5) + COS(G5) * COT
(G5)) - B5 * COEFFX * COT(G5) + B6 * COEFFY) / COEFFY;
/*transform from DDM to DD*/
LatGPS = (VALORE1+38*60-3800)/60;
LongGPS = (VALORE2+15*60-1500)/60;
But he doesn't remember how he got COEFFX and COEFFY.
Using these formula the gps coordinates I get are enough precise, they
correspond "enough" to what they should be considering the position of
some points about which I know the correct Lat/Lon coordinates.
But I need a better precision, therefore I hope you can help me
finding some formulas to convert cartesian coordinates to geographical
gps.
Thank you very much in advance
Carmelo
There isn't enough information to do this, I am afraid. There is no
single way of converting X,.Y coordinates to Latitude and Longitude or
the other way round; there are millions! And without knowing which
method (known as a "projection") was used, you simply can't do it.
Paul Cooper
I have got X,Y coordinates in a local metric system, of which I know:
- origin (0,0) gps coordinates
- angle between the Y axis and the North
For a given point with X,Y coordinates I need to know its GPS Lat/Lon
coordinates... Do you know any algorithm to calculate them? Or do you
need more info?
I have got X,Y coordinates in a local metric system, of which I know:
- origin (0,0) gps coordinates
- angle between the Y axis and the North
Can you give me any web site about which you're talking that can help
me solving this problem?
>On 16 Dic, 06:41, chandan <a1chan...@gmail.com> wrote:
You need to know at least the name of the projection and various
parameters that are specific to the grid you are using. You might be
able to find the projection by looking at www.epsg.org; that has a
directory of projections and parameters in use in various parts of
the world. Once you've found that, a software package called "proj"
will allow you to do the conversions - it's a command-line program,
but it is very effective.
Paul Cooper
If you know the exact lat and lon of your origin, then you can compute
everything that you need using great circles.
Proj.4 has very accurate great circle calculations (assuming that you
have or can compute an accurate distance and direction to each point
of interest from your known origin). See, for instance:
http://trac.osgeo.org/proj/wiki/man_geod
Home page:
http://trac.osgeo.org/proj/wiki
The reference system I'm using is not a "standard" system, it is
"local", developed for referring objects respect its origin.
I was able to transform local X,Y meters coordinates using the "Lat/
lon given radial and distance" formula:
http://williams.best.vwh.net/avform.htm#LL