Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3243 closed defect (fixed)

RST - provide default values on Create()

Reported by: ilucena Owned by: ilucena
Priority: normal Milestone: 1.7.0
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: Idrisi
Cc: warmerdam


A simple script, probably only useful for test purpose, like this one:

>>> from osgeo import gdal
>>> drv = gdal.GetDriverByName('rst')
>>> dst = drv.Create("D:\\Test\\test.rst", 512, 512, 1, gdal.GDT_Byte)
>>> dst.GetRasterBand(1).Fill(0)
>>> dst = None

Does not produce a valid RST instance since it would lack image extents and reference system. Calling SetProjection and SetGeoReference on that script would fix that but it wouldn't hurt to have default values set at Create. Right?

Change History (2)

comment:1 by Even Rouault, 13 years ago

Resolution: fixed
Status: newclosed

Apparently fixed by r18083 ?

comment:2 by ilucena, 13 years ago


Note: See TracTickets for help on using tickets.