[Gdal-dev] gdal looking for proj "pj_get_def" function?

Frank Warmerdam warmerdam at pobox.com
Wed Jan 22 16:17:02 EST 2003


Brent Fraser wrote:

> Frank,
>  
>   I'm attempting to test gdal_warp (GDAL 1.1.8.0, Proj4.4.5) but it 
> gives me an error message regarding "pj_get_def":
>  
> X:\rawdata>gdalwarp -t_srs '+proj=utm +zone=11 +datum=WGS84' band1.tif 
> UTM11_b1.tif
> ERROR 1: Can't find requested entry point: pj_get_def
>  
> Usage: gdalwarp [--version] [--formats]
>     [-s_srs srs_def] [-t_srs srs_def] [-order n] [-et err_threshold]
>     [-te xmin ymin xmax ymax] [-tr xres yres] [-ts width height]
>     [-of format] [-co "NAME=VALUE"]* srcfile dstfile
>  
>  
> Looking at the GDAL source (ogrct.cpp, line 220), I see where it is 
> trying to get the symbol from proj.dll,
> but nowhere in my copy of the proj source does the function exist:


Brent,

I believe the message about not finding pj_get_def is unrelated to why 
the gdalwarp is failing.
I think it is failing because you are using single quotes around the srs 
argument.  In the DOS shell
you need to use double quotes.

PS. pj_get_def is in the CVS version of PROJ.4, but isn't required by 
GDAL.  I will take steps
to ensure no error is reported to the user.

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 Gdal-dev mailing list