Opened 20 years ago

Last modified 20 years ago

#603 closed defect (fixed)

gdalwarp message when no source SRS specified

Reported by: pierrick.brihaye@… Owned by: warmerdam
Priority: lowest Milestone:
Component: GDAL_Raster Version: unspecified
Severity: trivial Keywords:
Cc:

Description

Hi,

C:\Program Files\Atlantis\OpenEV 1.80>bin\gdalwarp -t_srs EPSG:27572 tests\F004_
026.TIF tests\warpedfile.tif

outputs :

ERROR 1: Failed to import coordinate system `'.
Creating output file is that 4000P x 4000L.
ERROR 1: Failed to import coordinate system `'.
:0...10...20...30...40...50...60...70...80...90...100 - done.

In gdalwarp, should a missing source SRS :

a) either be considered as an error ?
b) be considered as a valid use case ? (it looks like this is the case despite
the error message)

Whatever the decision, could the output messages be updated ?

*Very* minor issue though...

Cheers,

p.b.

Change History (1)

comment:1 by warmerdam, 20 years ago

Changed so that it will operate like this in the indicated case:

warmerda@gdal2200[397]% gdalwarp -t_srs WGS84 raw.tif out.tif
A target coordinate system was specified, but there is no source coordinate
system.  Consider using -s_srs option to provide a source coordinate system.
Operation terminated.

Note: See TracTickets for help on using tickets.