Opened 12 years ago

Closed 12 years ago

Last modified 12 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 Changed 12 years ago by Even Rouault

Resolution: fixed
Status: newclosed

Apparently fixed by r18083 ?

comment:2 Changed 12 years ago by ilucena


Note: See TracTickets for help on using tickets.