Opened 12 years ago

Closed 12 years ago

#4493 closed defect (fixed)

gdalsrsinfo does not work with special file / datasource syntaxes

Reported by: etourigny Owned by: etourigny
Priority: normal Milestone: 1.9.1
Component: Utilities Version: 1.9.0
Severity: normal Keywords: gdalsrsinfo


Current gdalsrsinfo (1.9/trunk) only tries to open datasets with GDAL and OGR Open() function if the argument is a file. This means that driver:file syntax (for GDAL) and special DB-syntax such as PG:<...> (for OGR) do not work.

example with GTIFF_RAW:

$ gdalsrsinfo GTIFF_RAW:../gdrivers/data/byte.tif 
ERROR 1: ERROR - failed to load SRS definition from GTIFF_RAW:../gdrivers/data/byte.tif

$ gdalsrsinfo ../gdrivers/data/byte.tif 
PROJ.4 : '+proj=utm +zone=11 +datum=NAD27 +units=m +no_defs '

patch is ready to commit

Change History (1)

comment:1 by etourigny, 12 years ago

Resolution: fixed
Status: newclosed

fixed in trunk (r23917 and r23918) and 1.9 (r23919 and r23920).

Added an autotest for GTIFF_RAW:byte.tif. Also tested fix with a PG database, but did not add an autotest.

Note: See TracTickets for help on using tickets.