Just FYI , Poppler is being used with GDAL, http://www.gdal.org to work with geopdf data. There are a few pdfs with issues, however.
Doug ---------- Forwarded message ---------- From: Even Rouault <[email protected]> Date: Wed, Sep 24, 2014 at 6:23 AM Subject: Re: [gdal-dev] turn off Orthoimage layer for USGS topos To: [email protected] Jian, I've analyzed the file and it has indeed a particular structure with its OptionalContentGroup and OptionalContentMembershipDirectionary, the PDF objects that define layers and their visibility rules. Would be difficult to explain here... I believe the file is correct (at least layer turning on/off works well in Acrobat), but it seems that poppler (the PDF library used for PDF rendering) isn't ready yet to deal with that structure. It might be fixable in poppler and could perhaps be workarounded in GDAL code too. Best regards, Even > Hello list, > > I am just wondering if anybody has any experience with this- > > I want to convert USGS Topos to Geotiff using GDAL. My command below seems > to work well in general: > > gdalwarp C:\JIANTestFolder\geo.pdf C:\JIANTestFolder\geo.tif > -crop_to_cutline -cutline C:\JIANTestFolder\cutline.csv -overwrite > --config GDAL_CACHEMAX 500 -wm 500 --config GDAL_PDF_LAYERS "ALL" --config > GDAL_PDF_LAYERS_OFF Images.Orthoimage --config GDAL_PDF_DPI 250 -co > "TILED=YES" -co "TFW=YES" -co "COMPRESS=JPEG" -co "PHOTOMETRIC=YCBCR" > > Except for some files: > WI_Madison_West_20100723_TM_geo.pdf > (http://ims.er.usgs.gov/gda_services/download?item_id=5222418) > IL_Metropolis_20101018_TM_geo.pdf > LA_Union_Springs_20100930_TM_geo.pdf > ND_Lehr_20110324_TM_geo.pdf > TX_Panola_20100312_TM_geo.pdf > ....... > ...... > > > For some reason, the Orthoimage layer cannot be turned off for these files. > I've noticed these might be the early versions of the new generation USGS > topos (for example, the 2013 Madison one works well with the command). > Also I found people with similar issue here: > http://gis.stackexchange.com/questions/88988/gdal-conversion-of-us-topo-ge > opdfs > > So I was wondering: > > 1. Why this is happening? "Bad" file format in the earlier versions? > > 2. For these files, separating orthoimage from others is not doable > at all or there might be other workaround? > > Thank you in advance for any insight you want to share. I much appreciate > any suggestions/comments. > > Best regards, > Jian Liu -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev -- Doug Newcomb USFWS Raleigh, NC 919-856-4520 ext. 14 [email protected] --------------------------------------------------------------------------------------------------------- The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of the Interior. Life is too short for undocumented, proprietary data formats.
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
