Thanks -- but I believe the problem is I didnt install PROJ when installing GDAL from SVN source<br><br><div class="gmail_quote">On Thu, Oct 21, 2010 at 5:56 PM, Eli Adam <span dir="ltr"><<a href="mailto:EAdam@co.lincoln.or.us">EAdam@co.lincoln.or.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Boris,<br>
<br>
Did you try something like:<br>
<br>
gdalwarp -t_srs "EPSG:4326" in.jpg out.jpg<br>
<br>
or<br>
<br>
gdalwarp -t_srs 'EPSG:4326' in.jpg out.jpg<br>
<br>
<br>
HTH, Eli<br>
<br>
>>> Boris Dev <<a href="mailto:boris.dev@gmail.com">boris.dev@gmail.com</a>> 10/20/2010 2:28 PM >>><br>
thanks..I am almost there...I think I am making a simple usage typo?<br>
<br>
gdalwarp without the option '-t_srs EPSG:4326' works OK.<br>
<br>
But it doesnt work with the command written exactly as you have it<br>
<br>
><br>
> gdalwarp -t_srs EPSG:4326 in.jpg out.jpg<br>
><br>
><br>
After that command, I do not get anything processed (it just outputs to the<br>
screen the usage info).<br>
<br>
I also had no luck with trying different variations of the -t_srs option<br>
such as<br>
<br>
gdalwarp -t_srs "+proj=EPSG:4326" in.jpg out.jpg<br>
<br>
I am using the most recent SVN GDAL.<br>
<br>
<br>
<br>
> then use gdalinfo to get the corner coordinates.<br>
><br>
> Currently the entire page of the PDF is rendered into the image. Perhaps<br>
> we can convince Even to add an option to convert only the mapped area (or<br>
> mask everything else?)<br>
><br>
> Best Regards,<br>
> Brent Fraser<br>
><br>
><br>
> On 10/20/2010 8:07 AM, Boris Dev wrote:<br>
><br>
> My objective is to make a KML ground overlay with a geospatial PDF map.<br>
><br>
> Using GDAL's translate utility I have converted the PDF to a JPEG. The next<br>
> step and problem for me is to write the text of the KML ground overlay,<br>
> which requires a text of bounding box information like this:<br>
><br>
> <LatLonBox><br>
> <north>37.91904192681665</north><br>
> <south>37.46543388598137</south><br>
> <east>15.35832653742206</east><br>
> <west>14.60128369746704</west><br>
><br>
><br>
> <rotation>-0.1556640799496235</rotation><br>
> </LatLonBox><br>
><br>
><br>
> As GDAL's output, I saw that the entire PDF with legend, title, etc and not<br>
> just the map image was converted.<br>
><br>
> As GDAL's output, I also saw 2 parts of data that seem they are useful to<br>
> match a bounding box to the map within the jpeg, but I cant figure out the<br>
> puzzle of how to make this work? Can I get the bounding box of the entire<br>
> PDF image with this information below?<br>
><br>
> Corner Coordinates:<br>
> Upper Left ( 666937.758, 2024687.983)<br>
> Lower Left ( 666991.811, 2018338.153)<br>
> Upper Right ( 674511.276, 2024754.795)<br>
> Lower Right ( 674565.328, 2018404.965)<br>
> Center ( 670751.543, 2021546.474)<br>
><br>
> <MDI key="NEATLINE">POLYGON ((672676.488065659650601<br>
> 2019417.955749646294862,672636.091432046378031<br>
> 2024030.267778463661671,667347.405745737953112<br>
> 2023983.612156898481771,667385.539170471020043<br>
> 2019370.524140953086317,672676.488065659650601<br>
> 2019417.955749646294862,672676.488065659650601<br>
> 2019417.955749646294862,672676.488065659650601<br>
> 2019417.955749646294862,672676.488065659650601<br>
> 2019417.955749646294862))</MDI><br>
><br>
> I realize the coordinate above need to be converted to lat/long to be a KML<br>
> ground overlay onto Google Maps, which I think I can handle.<br>
><br>
> But I am unsure if I need to extract the map image from the jpeg using the<br>
> NEATLINE?<br>
> How are the Corner Coordinates translated into a bounding box?<br>
><br>
> Any suggestions?<br>
><br>
><br>
> _______________________________________________<br>
> gdal-dev mailing listgdal-dev@lists.osgeo.orghttp://<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
><br>
><br>
<br>
</blockquote></div><br>