Opened 8 years ago

Closed 6 years ago

#6359 closed enhancement (fixed)

Some types of vector pdf files are not recognizeable by ogrinfo command

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

Description

Some types of vector pdf files are not recognizeable by ogrinfo command. I don't know if it is a bug so I add as request.
Request is to add new configuration option to enable opening such files with 'pdf' driver and write information about files. If option=NO (default) ogrinfo will work as it is now. If option=YES ogrinfo will show information about such files.
I attach zip file containing 2 vector pdf files which are not recognizeable by ogrinfo command. Other pdf not recognizeable you can download from here: https://en.wikipedia.org/wiki/File:APISmap1.pdf

Attachments (1)

example_pdf.zip (143.2 KB ) - added by piotrpachol 8 years ago.

Download all attachments as: .zip

Change History (4)

by piotrpachol, 8 years ago

Attachment: example_pdf.zip added

comment:1 by Even Rouault, 8 years ago

That PDF has only the default layer, but currently the driver requires explicit layers. I don't remember if there was a fundamental reason for that limitation.

comment:2 by Jukka Rahkonen, 6 years ago

Update: GDAL 2.3dev does not find layers.

comment:3 by Even Rouault, 6 years ago

Resolution: fixed
Status: newclosed

In 40820:

PDF: make OGR_PDF_READ_NON_STRUCTURED=YES configuration option work with documents without layers (fixes #6359)

Note: See TracTickets for help on using tickets.