[poppler] Fwd: [gdal-dev] turn off Orthoimage layer for USGS topos

Albert Astals Cid aacid at kde.org
Sun Oct 26 10:36:27 PDT 2014


El Dimecres, 24 de setembre de 2014, a les 09:00:09, Newcomb, Doug va 
escriure:
> 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

Not sure that's the intention of this forward. Can you be more verbose?

Cheers,
  Albert


> .
> 
> Doug
> ---------- Forwarded message ----------
> From: Even Rouault <even.rouault at spatialys.com>
> Date: Wed, Sep 24, 2014 at 6:23 AM
> Subject: Re: [gdal-dev] turn off Orthoimage layer for USGS topos
> To: gdal-dev at lists.osgeo.org
> 
> 
> 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
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev



More information about the poppler mailing list