# [Proj] Welcome to the "Proj" mailing list

Sat Jan 2 18:15:35 EST 2010

```http://www.openstreetmap.org/user/h4ck3rm1k3/diary/9117

I am doing the coord transform like that :

echo 358376.5 7753537 | cs2cs -v +proj=utm +south +ellps=intl
+zone=24K +units=m -f "%.7f"a
# ---- From Coordinate System ----
#Universal Transverse Mercator (UTM)
# Cyl, Sph
# zone= south
# +proj=utm +south +ellps=intl +zone=24K +units=m
# ---- To Coordinate System ----
#Lat/long (Geodetic alias)
#
# +proj=latlong +ellps=intl
-40.3564136a -20.3105983a 0.0000000a

and it works, but now I want to do this in c++

see the code in MText.cpp
http://github.com/h4ck3rm1k3/TwoNickels

void convertPoint(double x, double y, double & rx, double & ry)

{

projPJ pj_merc, pj_latlong;

if (!(pj_merc = pj_init_plus("+proj=utm +south +ellps=intl +zone=24K
+units=m")) )
exit(1);

if (!(pj_latlong = pj_init_plus("+proj=latlong +ellps=intl")) )
exit(1);

point_offset, double *x, double *y, double *z );
double ax[1], ay[1], az[1];
az[0] = 0;

/** end of "caution" section. */

pj_transform(pj_merc, pj_latlong, 1, 1, ax, ay, az);

//printf("%.4f\t%.4f -> %.4f\t%.4f\n", *lat, *lon, y[0], x[0]);
rx = ay[0];
ry = ax[0];

}

Program produces ERROR::
node id='-905' version='1' ' lat='-26.92552447' ' lon='0.01349053807'
k='easting' v=358360.6875
k='northing' v=7753529

On Sun, Jan 3, 2010 at 12:14 AM,  <proj-request at lists.maptools.org> wrote:
> Welcome to the Proj at lists.maptools.org mailing list!
>
> To post to this list, send your email to:
>
>  proj at lists.maptools.org
>
> General information about the mailing list is at:
>
>  http://lists.maptools.org/mailman/listinfo/proj
>
> If you ever want to unsubscribe or change your options (eg, switch to
> subscription page at:
>
>
>
> You can also make such adjustments via email by sending a message to:
>
>  Proj-request at lists.maptools.org
>
> with the word `help' in the subject or body (don't include the
> quotes), and you will get back a message with instructions.
>
> the password, itself) or to unsubscribe.  It is:
>
>  etepsiwe
>
> Normally, Mailman will remind you of your lists.maptools.org mailing
> list passwords once every month, although you can disable this if you
> prefer.  This reminder will also include instructions on how to
> unsubscribe or change your account options.  There is also a button on