Opened 11 years ago
Closed 11 years ago
#4493 closed defect (fixed)
gdalsrsinfo does not work with special file / datasource syntaxes
|Reported by:||etourigny||Owned by:||etourigny|
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 , 11 years ago
|Status:||new → closed|
Note: See TracTickets for help on using tickets.
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.