>From my mail to geowankers:<br><br>
<br>
gdalinfo $i|grep NEATLINE | awk -F= '{print "foo,WKT\nbla,\"" $2 "\""}' > $i.csv;<br>
gdalwarp -crop_to_cutline -cutline $i.csv -co "GDAL_PDF_DPI=250" -of GTiff $i $i.tiff<br><br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 1:58 PM, Smith, Michael <span dir="ltr"><<a href="mailto:Michael.Smith@maine.gov">Michael.Smith@maine.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<div><span><font face="Arial">I am trying to
convert the historic USGS topo maps (GeoPDFs) into GeoTIFFs<span><font color="#0000ff"><font color="#000000"> with
GDAL 1.8</font> </font></span>. A very straightforward thing to do
is</font></span></div>
<div><span><font face="Arial"></font></span> </div>
<div><span><font face="Arial">gdal_translate
in.pdf out.tiff</font></span></div>
<div><span><font face="Arial"></font></span> </div>
<div><span><font face="Arial">This works fine but
the TIFF looks as if the PDF was exported at 150dpi, which is a pretty crappy
resolution. Using something else (like PDFCreator and printing to a TIFF),
the USGS GeoPDFs can be exported at higher resolutions, but then of course you
lose the georeferencing. So I have GDAL which keeps the georeferencing but
only seems to like 150dpi, and then a zillion other solutions which allow 300
dpi or 600 dpi, but have no georeferencing.</font></span></div>
<div><span><font face="Arial"></font></span> </div>
<div><span><font face="Arial">I did try gdalwarp
-tr 5 5 for example (which would roughly be equivalent to one of these maps at
300dpi), but it is clear that it is still rendering the PDF at 150dpi and then
generating a 5-meter TIFF - looks no different really than the default output
with gdal_translate.</font></span></div>
<div><span><font face="Arial"></font></span> </div><span>
<div><span><font face="Arial">Is there some
argument that would specify the dpi at which the GeoPDF were rendered before
conversion to GeoTIFF? I don't see anything like that in the docs or the
list archives.</font></span></div>
<div><span><font face="Arial"></font></span> </div>
<div><font face="Arial">BTW if you haven't checked out the historic topos
they are great, going back to the 1880s for Maine. What fun!</font></div>
<div><font face="Arial"></font> </div>
<div></div></span><span><font face="Arial">My ultimate
goal is to have a seamless mosaic WMS of the old topos for
Maine.</font></span></div>
<div><span><font face="Arial"></font></span> </div>
<div dir="ltr" align="left">*****************<br><font size="-1"><span style="FONT-FAMILY:Arial">Michael Smith</span><br><span style="FONT-FAMILY:Arial">State GIS Manager, Maine Office of GIS, Maine
OIT</span><br><span style="FONT-FAMILY:Arial">Board Member, Maine
GeoLibrary</span><br><span style="FONT-FAMILY:Arial">Board Member, Maine GIS
Users Group</span><br><span style="FONT-FAMILY:Arial">State Rep, National
States Geographic Information Council<br><br></span></font><img alt="icons" src="cid:009512717@13122011-2394" usemap="#13438cbd823044ef_iconsmap" border="0" height="68" width="299"> <map name="13438cbd823044ef_iconsmap"><area href="http://www.maine.gov/megis" shape="rect" alt="MEGIS" coords="0,0,82,67" border="0" target="_blank"><area href="http://www.maine.gov/geolib" shape="rect" alt="GeoLibrary" coords="83,0,132,67" border="0" target="_blank"><area href="http://www.megug.org" shape="rect" alt="MEGUG" coords="133,0,206,67" border="0" target="_blank"><area href="http://www.nsgic.org" shape="rect" alt="NSGIC" coords="207,0,298,67" border="0" target="_blank"></map><br>
<br><font size="-2"><span style="FONT-FAMILY:Arial">State House Station 174</span><br><span style="FONT-FAMILY:Arial">264 Civic Center Drive</span><br><span style="FONT-FAMILY:Arial">Augusta, ME 04333-0174</span><br><span style="FONT-FAMILY:Arial"><a href="tel:%28207%29%20215-5530" value="+12072155530" target="_blank">(207) 215-5530</a></span><br>
<br><span style="FONT-FAMILY:Arial">69</span> <sup style="FONT-FAMILY:Arial">o</sup>
<span style="FONT-FAMILY:Arial">47' 49.5"W 44</span> <sup style="FONT-FAMILY:Arial">o</sup> <span style="FONT-FAMILY:Arial">20'
54.5"N</span> </font><br><br></div>
<div> </div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Derrick<br>