[Proj] PROJ INFO

Frank Warmerdam warmerdam at pobox.com
Fri Nov 30 10:32:23 PST 2007


Andrea Antonini wrote:
> Dear all,
> I'm a new proj user. I'm studying the proj API to use the proj libraries 
> in a C program. I have some problems also in basics operation. For 
> example I cannot execute this very simple program:
> ---------------------------------------------------------------------------------------------------------------------- 
> 
> /*
> To compile:
> 
> gcc -o utm_to_lat_lon utm_to_lat_lon.c -L /usr/local/lib/libproj.so.0 
> -lproj
> */
> 
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> 
> 
> #include <proj_api.h>
> 
> int main (int argc, char *argv[]){
>    projPJ llpj;
>    projPJ utmpj;
>    char *llargs[] = {"proj=latlon", "ellps=WGS84"};

Andrea,

In addition to Janne's useful advice, you also need to change
"proj=latlon" to "proj=latlong".

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Proj mailing list