[gdal-dev] Re: Reprojecting w/ gdalwarp .. cant figure it out

fork forkandwait at gmail.com
Tue May 10 15:32:18 EDT 2011


Frank Warmerdam <warmerdam <at> pobox.com> writes:

> Dear ForkAndWait,
> 
> I suspect you have a left over foo.tif and/or foo.tfw from previous
> attempts.  gdalwarp will not create a new output file if the output
> file already exists.  Otherwise your procedure seems quite reasonable.

Well, I reran, and I am (1) getting errors
 but (2) the process is working to
completion even though it is hitting errors 
(presence of a tif was not the issue):

t2010_annex/ (j=0,r=0)$ gdalwarp -s_srs utm10n.prj -t_srs spwasth.prj -co
"TFW=YES" ortho_imagery/ortho_1-1_1n_s_wa033_
2009_1.tif foo.tif
ERROR 6: No translation for Lambert_Conformal_Conic
 to PROJ.4 format is known.
Creating output file that is 2048P x 1463L.
Processing input file ortho_imagery/ortho_1-1_1n_s_wa033_2009_1.tif.
ERROR 6: No translation for Lambert_Conformal_Conic 
to PROJ.4 format is known.
0...10...20...30...40...50...60...70...80...90...100 - done.

So, ... Could you point me in the direction of fixing "ERROR 6"?

Also -- is there a way to run gdalwarp in
 "strict mode" or some such?  In the
unix philosophy, one is encouraged to fail
 hard and early so that scripts don't
blithely continue on with bad input. 
 I would MUCH rather get a non-zero return
and have it stop on the first error.

I am running an FW tools version, which might be pretty important for figuring
this out (sorry I forgot to mention):

t2010_annex/ (j=0,r=0)$ gdalwarp --version
GDAL 1.7.0b2, FWTools 2.4.7, released 2010/01/19

Thanks for the quick response and excellent software (except for the continuing
to run after error thing)!



More information about the gdal-dev mailing list