[poppler] Fwd: [gdal-dev] turn off Orthoimage layer for USGS topos
Newcomb, Doug
doug_newcomb at fws.gov
Mon Oct 27 05:40:45 PDT 2014
The USGS distributes USGS 7.5 minute topographic map data as geopdfs only
these days, http://store.usgs.gov/locator/about_digital_maps.html. There
are raster and vector elements within the pdf files. It would be useful to
be able to extract the raster and vector elements separately and convert
the data layers into more standard geographic data formats. Some of the
geopdfs are not quite the same format as the rest.
I forwarded the email from the gdal list to the poppler list because I
thought the topic might be of interest to the poppler list and the poppler
developers might be more familiar with the details of the pdf format and
may be able to provide insight.
Doug
On Sun, Oct 26, 2014 at 1:36 PM, Albert Astals Cid <aacid at kde.org> wrote:
> 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
>
>
--
Doug Newcomb
USFWS
Raleigh, NC
919-856-4520 ext. 14 doug_newcomb at fws.gov
---------------------------------------------------------------------------------------------------------
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20141027/a4a1b0d8/attachment.html>
More information about the poppler
mailing list