Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5944 closed defect (fixed)

VRT Write Loses Metadata

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 2.0.0
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: VRT
Cc: Even Rouault

Description

Even,

When I do the following I am seeing the RPCs also stripped from the updated VRT, though they should not be removed. Please investigate.

from osgeo import gdal
vrt_ds = gdal.Open('test.vrt',gdal.GA_Update)
vrt_ds.SetMetadata({})
vrt_ds.SetGCPs([], '')
vrt_ds = None

Attachments (1)

test.vrt (3.1 KB ) - added by warmerdam 9 years ago.
input VRT

Download all attachments as: .zip

Change History (5)

by warmerdam, 9 years ago

Attachment: test.vrt added

input VRT

comment:1 by warmerdam, 9 years ago

Version: unspecifiedsvn-trunk

comment:2 by Even Rouault, 9 years ago

trunk r29038 "Fix serialization of VRT metadata (#5944, trunk regression r28685) and also avoid serializing empty domains of GDALMultiDomainMetadata"

comment:3 by Even Rouault, 9 years ago

Milestone: 2.0
Resolution: fixed
Status: newclosed

comment:4 by Even Rouault, 9 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.