[Proj] how to use EPSG code in PROJ API

nicolas david ericnico.david at gmail.com
Wed Aug 7 01:50:40 EST 2013


Hi

yes proj4 is able to accept epsg or other dictionnary code. You have to use
the "+init" parameter on definition string :

const char* my_pj_def="+init=epsg:26711"

Moreover you HAVE to set the "PROJ_LIB" env var to the path where the epsg
and other dictionnary are located.

Nicolas DAVID


2013/8/7 Han Hu <huhan at whu.edu.cn>

> **
> Hi,
>
> In PROJ API, I can use
>
> *projPJ **pj_init_plus* <https://trac.osgeo.org/proj/wiki/pj_init_plus>*(const
> char *definition);*
> **
> to set projection information like "+proj=tmerc +ellps=krass ...." ,
> however is this api able to accept epsg code?
>
>
> ------------------------------
>  Han Hu
> PhD Candidate
>
> State Key Laboratory of Information Engineering in Surveying, Mapping and
> Remote Sensing <http://www.lmars.whu.edu.cn/>
> Wuhan University <http://www.whu.edu.cn/index.html>
> Luoyu Road 129, Wuhan, P.R. China
> Tel: +86 13437119857
> Email: huhan at whu.edu.cn
>
> _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/proj
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/proj/attachments/20130807/86ee5ea7/attachment.htm 


More information about the Proj mailing list