[Proj] Create a new customize projection
Frank Warmerdam
warmerdam at pobox.com
Thu Feb 17 09:50:21 EST 2011
On 11-02-17 08:09 AM, francescoboccacci at libero.it wrote:
> Hi to all,
> i have a question for you. I'd like to create a new projection that is a
> acustomization of a mercator projection. I'd like to create a new projection
> like this "+proj=newmerc" where i set some new parameter and formulas. Can i do
> that? What i need to modify? i try to copy and paste PJ_merc.c with a new name
> PJ_newmerc.c and insede the code i change like that:
>
> #define PJ_LIB__
> #include<projects.h>
> PROJ_HEAD(newmerc, "NewMercator") "\n\tCyl, Sph&Ell\n\tlat_ts=";
> ..
> i recompile all with make and make install.
> I try to run proj -l but i can see newmerc.
Francesco,
Make sure you have added your new file to the Makefile.am, rerun automake,
and also that you have added your new projection in pj_list.h.
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 | Geospatial Programmer for Rent
More information about the Proj
mailing list