AW: [mapserver-users] Mapserver Projection Errors

Eichner, Andreas - SID-NLKM Andreas.Eichner at sid.sachsen.de
Thu Oct 20 07:45:38 EDT 2011


> Just wondering if the real meaning of the error is just "Did 
> not find projection code from the epsg/esri definition files, 
> continuing by other means".

Indeed I believe not. If you look into pj_init.c from the PROJ4 source,
the core init function pj_init_ctx() contains this:

    /* find projection selection */
    if (!(name = pj_param(ctx, start, "sproj").s))
    { pj_ctx_set_errno( ctx, -4 ); goto bum_call; }
    for (i = 0; (s = pj_list[i].id) && strcmp(name, s) ; ++i) ;
    if (!s) { pj_ctx_set_errno( ctx, -5 ); goto bum_call; }

according to pj_strerrno.c, these result in 

	"projection not named",				/*  -4 */
	"unknown projection id",			/*  -5 */



More information about the mapserver-users mailing list