Opened 3 years ago

Closed 3 years ago

#5419 closed defect (fixed)

CSV for VRT SrcDataSource relativeToVRT=1 fails with CSV:filename.xyz

Reported by: drf5n Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: 1.10.1
Severity: normal Keywords: ogr vrt
Cc:

Description

I was attempting to use some CSV formatted files named *.xyz using the VRT format.

When in the same directory as the files, a VRT file identified with "CSV:H08724.xyz" worked and found all the features, with or without the relativeToVRT="1" attribute. However, when changing into the parent directory and running a 'ogrinfo -so -al Downloads/H08724.vrt' the command would with an error, and features would not be found or counted:

$ ogrinfo -ro -so -al Downloads/H08724.vrt |less ERROR 1: Failed to open datasource `Downloads/CSV:H08724.xyz'. INFO: Open of `Downloads/H08724.vrt'

using driver `VRT' successful.

Layer name: H08724 Geometry: Point Feature Count: 0 Layer SRS WKT:

....

versus:

$ ogrinfo -ro -so -al Downloads/H08724csv.vrt |less INFO: Open of `Downloads/H08724csv.vrt'

using driver `VRT' successful.

Layer name: H08724 Geometry: Point Feature Count: 13373

Renaming or symlinking the .xyz file to .csv and using the 'H08724.csv' with the relativeToVRT="1" attribute worked in both cases.

Attachments (2)

H08724csv.vrt (310 bytes) - added by drf5n 3 years ago.
H08724.vrt (314 bytes) - added by drf5n 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by drf5n

Attachment: H08724csv.vrt added

Changed 3 years ago by drf5n

Attachment: H08724.vrt added

comment:1 Changed 3 years ago by drf5n

Version: unspecified1.10.1

comment:2 Changed 3 years ago by Even Rouault

Component: defaultOGR_SF
Keywords: ogr vrt added
Resolution: fixed
Status: newclosed

trunk r27079 "OGR VRT: make relativeToVRT=1 work with CSV:filename or GPSBABEL:driver:filename (#5419)"

Note: See TracTickets for help on using tickets.