<br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 2:13 PM, Derrick Brashear <span dir="ltr">&lt;<a href="mailto:shadow@dementia.org">shadow@dementia.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">From my mail to geowankers:<br><br>
<br>
gdalinfo $i|grep NEATLINE | awk -F= &#39;{print &quot;foo,WKT\nbla,\&quot;&quot; $2 &quot;\&quot;&quot;}&#39; &gt; $i.csv;<br>
gdalwarp -crop_to_cutline -cutline $i.csv  -co &quot;GDAL_PDF_DPI=250&quot; -of GTiff  $i $i.tiff<br><br><br></div><div class="gmail_quote"><div class="im">On Tue, Dec 13, 2011 at 1:58 PM, Smith, Michael <span dir="ltr">&lt;<a href="mailto:Michael.Smith@maine.gov" target="_blank">Michael.Smith@maine.gov</a>&gt;</span> wrote:<br>

</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div></blockquote></div></blockquote><div><br>Oh, and you want 1.8.1 for -crop_to_cutline<br><br>none of this is needed if you&#39;re not tiling; this is just the extras to crop to the neatline. otherwise, the GDAL_PDF_DPI=250 (which is the native scanning resolution per the usgs)<br>
is the relevant bit.<br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div class="h5"><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&#39;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&#39;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="#13438d8431f01ba7_13438cbd823044ef_iconsmap" border="0" height="68" width="299"> <map name="13438d8431f01ba7_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&#39; 49.5&quot;W   44</span> <sup style="FONT-FAMILY:Arial">o</sup> <span style="FONT-FAMILY:Arial">20&#39; 
54.5&quot;N</span> </font><br><br></div>
<div> </div>
<br></div></div><div class="im">_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">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></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>
-- <br>Derrick<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Derrick<br>