[postgis-users] different answers for Transform and cs2cs

Don harterc1 at comcast.net
Thu Oct 30 20:11:06 PDT 2008


I have basically the same transformration encoded below in 2 different
ways.  One uses transform the other the program cs2cs.   I am just
trying to convert a latlong to a different datum.  It seems that I am
getting the wrong answer with Transform.

select
X( Transform( SetSRID(MakePoint(-86.123456789::double
precision,34.123456789::double
precision),4030),4267 ))::double precision from al_ent;
       x
---------------
 -86.123456789
 -86.123456789

>cs2cs +proj=latlong +datum=NAD83 +to +proj=latlong +datum=NAD27 -f
%.12f<<EOF
>  -86.123456789 34.123456789
>
> -86.123481462163      34.123361126798 -0.000032913871




More information about the postgis-users mailing list