Page 1 of 2   1 2 > last >>
Bookmark this page: Add Converting cartesian coordinates to geographical gps to Yahoo MyWeb Add Converting cartesian coordinates to geographical gps to Google Bookmarks Add Converting cartesian coordinates to geographical gps to Windows Live Add Converting cartesian coordinates to geographical gps to Del.icio.us Digg Converting cartesian coordinates to geographical gps! Add Converting cartesian coordinates to geographical gps to Netscape
  •  
  • Subject
  • Author
  • Date
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by carmelo on December 15, 2008, 4:22 am
Hi everybody,
I need to convert cartesian coordinates to geographical gps. Knowing
X,Y coordinates how can I calculate Latitude and Longitude?

A friend of mine give me this formula:

/*gps coordinates of zero local point*/
X0POL =3D 38.4758676627;                # 1=B0 ZERO POINT POLAR
Y0POL =3D 15.9189614895;                # 2=B0 ZERO POINT POLAR

/*convert zero point from DD coordinate to DDM*/
B5 =3D (60 * X0POL) - (38 * 60) + 3800;#3828.5521         # 1=B0 ZERO POINT
B6 =3D (60 * Y0POL) - (15 * 60) + 1500;#1555.1377        # 2=B0 ZERO POINT

G5 =3D 4.12841392;                                # TERRESTRIAL ROTATION RADIANS DEGREE

COEFFX =3D 1849.94;
COEFFY =3D 1454.88;

VALORE1 =3D (X * SIN(G5) + B5 * COEFFX + Y * COS(G5)) / COEFFX;
VALORE2 =3D (VALORE1 * COEFFX * COT(G5) - Y * (SIN(G5) + COS(G5) * COT
(G5)) - B5 * COEFFX * COT(G5) + B6 * COEFFY) / COEFFY;

/*transform from DDM to DD*/
LatGPS =3D (VALORE1+38*60-3800)/60;
LongGPS =3D (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

Posted by Paul Cooper on December 15, 2008, 5:25 pm
wrote:

>Hi everybody,
>I need to convert cartesian coordinates to geographical gps. Knowing
>X,Y coordinates how can I calculate Latitude and Longitude?
>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

Posted by carmelo on December 16, 2008, 3:34 am
> 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 hope you can help me

Posted by chandan on December 16, 2008, 12:41 am
You can refer to a couple of websites to get it done , some C
source codes are also posted that can do the job . But it really
depends on the location of the co-ordinates , datum , projection
because the method of conversion varies depending on each of them.




carmelo wrote:
> Hi everybody,
> I need to convert cartesian coordinates to geographical gps. Knowing
> X,Y coordinates how can I calculate Latitude and Longitude?
> A friend of mine give me this formula:
> /*gps coordinates of zero local point*/
> X0POL =3D 38.4758676627;                # 1=EF=BF=BD ZERO POINT POLAR
> Y0POL =3D 15.9189614895;                # 2=EF=BF=BD ZERO POINT POLAR
> /*convert zero point from DD coordinate to DDM*/
> B5 =3D (60 * X0POL) - (38 * 60) + 3800;#3828.5521         # 1=EF=BF=BD ZERO POIN=
T
> B6 =3D (60 * Y0POL) - (15 * 60) + 1500;#1555.1377        # 2=EF=BF=BD ZERO POINT
> G5 =3D 4.12841392;                                # TERRESTRIAL ROTATION RADIANS DEGREE
> COEFFX =3D 1849.94;
> COEFFY =3D 1454.88;
> VALORE1 =3D (X * SIN(G5) + B5 * COEFFX + Y * COS(G5)) / COEFFX;
> VALORE2 =3D (VALORE1 * COEFFX * COT(G5) - Y * (SIN(G5) + COS(G5) * COT
> (G5)) - B5 * COEFFX * COT(G5) + B6 * COEFFY) / COEFFY;
> /*transform from DDM to DD*/
> LatGPS =3D (VALORE1+38*60-3800)/60;
> LongGPS =3D (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

Posted by carmelo on December 16, 2008, 3:35 am
> You =A0can refer =A0to a couple =A0 of =A0websites =A0to get =A0it done ,=
some C
> source codes are =A0also posted that can do the job . But it really
> depends on the location of the co-ordinates , datum , projection
> because the method of conversion varies depending on each of them.


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?

Page 1 of 2   1 2 > last >>