Opened 14 years ago

Closed 14 years ago

Last modified 14 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

Description

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, 14 years ago

Resolution: fixed
Status: newclosed

Apparently fixed by r18083 ?

comment:2 by ilucena, 14 years ago

D'accord.

Note: See TracTickets for help on using tickets.