-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pdf vector driver cannot read current geopdfs #9870
Comments
Maybe we are downloading different maps?. This looks like a raster map for GDAL https://portal.spatial.nsw.gov.au/download/NSWTopographicMaps/DTDB_GeoReferenced_Raster_CollarOn_161070/2022/25k/9641-3S+POTTSVILLE.pdf But you are right, Acrobat Reader does find vectors. This finds something, but not much. Inspired by https://gdal.org/drivers/vector/pdf.html#vector-support
|
Sorry I do not know too much about your systems. I followed your example on -- debug and got: C:\OSGeo4W>ogrinfo C:\temp\POTTSVILLE.pdf --debug on pdf So could gdal think it is (only) raster because gdal can not handle all of the vector content? C:\OSGeo4W>gdalinfo C:\temp\POTTSVILLE.pdf |
Yes, I previously tried --config OGR_PDF_READ_NON_STRUCTURED NO -al -so and noted it gave some, but little, information. |
I found from the documentation this https://gdal.org/drivers/raster/pdf.html#layers-metadata-domain
If I understand right, GDAL can mostly only render the vector PDF into raster. There are some options which affect the rendering https://gdal.org/drivers/raster/pdf.html#raster-pdf. |
… operator... (fixes OSGeo#9870)
…rse OGCs in Resources.XObject.Resources.Properties as generated by ArcGIS 12.9 (fixes OSGeo#9870)
… operator... (fixes OSGeo#9870)
…rse OGCs in Resources.XObject.Resources.Properties as generated by ArcGIS 12.9 (fixes OSGeo#9870)
There were 3 different issues (including a fundamental 12 year long bug with the order of matrix multiplication that was wrong!) to be able to read that PDF. Now all fixed per #9874 |
Thank you for all the consideration. If I understand correctly, ogr vector programs aim to do much more than convert vector to raster (if only they can open the vector files correctly). There were multiple problems blocking this for some modern vector geopdf files, all of which should be corrected in the latest release (thanks to all the work by rouault). |
Hopefully the revision process will get the geopdf vector driver to report on map frames, which are central to the geodf spec / best practice. |
…rse OGCs in Resources.XObject.Resources.Properties as generated by ArcGIS 12.9 (fixes #9870)
What is the bug?
GDAL programs using the pdf vector driver cannot read current geopdf files created in Esri ArcGIS 12.9.3.32739. This means all current maps from NSW SIX, for example. eg 9641-3S Pottsville 4th Edn CollarOn_2022 (at https://portal.spatial.nsw.gov.au/portal/apps/webappviewer/index.html?id=06e3c2e0de1e4efda863854048c613c6) fails to open.
Steps to reproduce the issue
Try to open as vector any GDA2020 map from https://portal.spatial.nsw.gov.au/portal/apps/webappviewer/index.html?id=06e3c2e0de1e4efda863854048c613c6
eg try ogrinfo
gives: ogrinfo failed - unable to open
Versions and provenance
Win 10 64 bit ver 22H2, GDAL 3.8.5, released 2024/04/02 (under OSGeo4W)
Additional context
These files open as usual, with full display of map frames, layers and georeferencing, in Acrobat Reader DC (v. 2021.****).
No response
The text was updated successfully, but these errors were encountered: