[gdal-dev] ogr2ogr XLSX reporting no layers

Langford, Robert Rob.Langford at salford.gov.uk
Thu Oct 26 04:26:46 PDT 2017


Using GDAL v.2.2.2 on Windows.

Trying to read this XLSX file: http://www.gamblingcommission.gov.uk/docs/Premises-licence-database-extract.xlsx

> ogrinfo -ro -so -al Premises-licence-database-extract.xlsx

>> GDAL: GDALOpen(Premises-licence-database-extract.xlsx, this=000001B35D22FF50) succeeds as XLSX.

>> OGR: GetLayerCount() = 0

If I open the file in Excel and re-save it then works:
>> GDAL: GDALOpen(Premises-licence-database-extract-RESAVE.xlsx, this=000001FC29A80BE0) succeeds as XLSX.
>> OGR: GetLayerCount() = 1

Does anyone have any ideas?

Many thanks,


DISCLAIMER: The information contained in this communication/message from Rob.Langford at salford.gov.uk sent on Thu Oct 26 12:26:48 2017 is confidential. It is intended solely for the addressee(s) gdal-dev at lists.osgeo.org

Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful.
As a public body, Salford City Council may be required to disclose this email [or any response to it] under the Freedom of Information Act 2000, unless the information in it is covered by one of the exemptions in the Act. 
Please immediately contact the sender, Rob.Langford at salford.gov.uk if you have received this message in error. 

For the full disclaimer please access http://www.salford.gov.uk/e-mail.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171026/cfb11ea6/attachment.html>

More information about the gdal-dev mailing list