Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6873 closed defect (fixed)

gdal_rasterize fails to create a idrisi file

Reported by: johanvdw Owned by: warmerdam
Priority: normal Milestone: 2.1.4
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

When trying to create a raster file using gdal_rasterize it fails if the raster driver is idrisi:

C:\warmerda\bld\bin>gdal_rasterize -a uidn -l wlas -of RST -te 201633 153890 207499 164047 -tr 1 1 E:\data\test\ e:\data\test\wlas.rst
ERROR 3: Can't read(e:\data\test\wlas.rst) block with X offset 0 and Y offset 0.
No such file or directory
ERROR 1: e:\data\test\wlas.rst, band 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 3: Can't read(e:\data\test\wlas.rst) block with X offset 0 and Y offset 1.
No such file or directory
...

Doing the same conversion to Geotiff works correctly:

C:\warmerda\bld\bin>gdal_rasterize -a uidn -l wlas -of GTiff -te 201633 153890 207499 164047 -tr 1 1 E:\data\test\ e:\data\test\wlas.tif
0...10...20...30...40...50...60...70...80...90...100 - done.

Change History (5)

comment:1 by johanvdw, 7 years ago

I don't think the input shapefile matters, but I've put it here nevertheless to reproduce the problem: http://gisky.be/test.zip

comment:2 by Even Rouault, 7 years ago

Resolution: fixed
Status: newclosed

In 38147:

Idrisi: make Create() zero-initialize the .rst file (fixes #6873)

comment:3 by Even Rouault, 7 years ago

In 38148:

Idrisi: make Create() zero-initialize the .rst file (fixes #6873)

comment:4 by Even Rouault, 7 years ago

In 38149:

Idrisi: make Create() zero-initialize the .rst file (fixes #6873)

comment:5 by Even Rouault, 7 years ago

Milestone: 2.1.4
Note: See TracTickets for help on using tickets.