Opened 10 years ago

Closed 10 years ago

#5531 closed defect (fixed)

VRT created using VRT driver CreateCopy() corrupted

Reported by: pmallas Owned by: warmerdam
Priority: normal Milestone: 1.11.1
Component: GDAL_Raster Version: 1.11.0
Severity: normal Keywords: vrt raw
Cc:

Description

Using the create copy from the VRT driver results in a corrupted file if the input dataset is a VRT. See code below:

~ from osgeo import gdal from gdalconst import *

inFile = "d:\imagery\UCR
test.vrt" outFile = "d:\imagery\UCR\out.vrt"

dataset = gdal.Open(inFile, GA_ReadOnly) vrt_driver = gdal.GetDriverByName('VRT') tempVRT = vrt_driver.CreateCopy(outFile, dataset) ~ input and output files attached

Attachments (2)

test.vrt (985 bytes ) - added by pmallas 10 years ago.
VRT input file
out.vrt (1.3 KB ) - added by pmallas 10 years ago.
Output VRT

Download all attachments as: .zip

Change History (3)

by pmallas, 10 years ago

Attachment: test.vrt added

VRT input file

by pmallas, 10 years ago

Attachment: out.vrt added

Output VRT

comment:1 by Even Rouault, 10 years ago

Component: defaultGDAL_Raster
Keywords: vrt raw added
Milestone: 1.11.1
Resolution: fixed
Status: newclosed

trunk r27501, branches/1.11 r27502 "VRT raw: fix corrupted serialization on Windows (#5531)"

Note: See TracTickets for help on using tickets.