Ticket #4582 (closed defect: fixed)

Opened 15 months ago

Last modified 15 months ago

The OGR VRT driver fails with leading whitespace in file.

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.9.1
Component: OGR_SF Version: unspecified
Severity: normal Keywords: VRT
Cc:

Description

This issue is similar to #3793 but applies to the OGR VRT driver.

To reproduce add one blank space at the start of autotest/ogr/data/vrt_test.vrt and run ogrinfo against it. It is not recognised as a VRT.

Change History

Changed 15 months ago by warmerdam

  • status changed from new to closed
  • resolution set to fixed

Corrected in trunk (r24154) and 1.9 (r24156). Also added a regression test (r24155).

Note that this also allows an <?xml> header in the file, similar to the GDAL fix.

Note: See TracTickets for help on using tickets.