<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 05/24/2010 06:26 PM, Jenny Turner wrote:
<blockquote
 cite="mid:AANLkTik-Xjrd2_Hc6ovx45pyvn3uHt3VAhBUiN1dLPH_@mail.gmail.com"
 type="cite">Hi
  <div><br>
  </div>
  <div>Following this topic I have tested this methodology by
converting from UTM 29N to a specific local coordinate system
(EPSG:3763) (available at PROJ4)</div>
  <div>gdalwarp -t_srs "EPSG:3763" band_landsat.TIF destination.tif</div>
  <div><br>
  </div>
  <div>With that I got a segmentation error, one&nbsp;<span
 class="Apple-style-span"
 style="font-family: monospace; white-space: pre-wrap;">TIFFReadDirectory<span
 class="Apple-style-span"
 style="font-family: arial; white-space: normal;">&nbsp;a lot of&nbsp;<span
 class="Apple-style-span"
 style="font-family: monospace; white-space: pre-wrap;">TIFFWriteEncodedStrip
and the destination.tif has a different size.</span></span></span></div>
  <div><span class="Apple-style-span"
 style="font-family: monospace; white-space: pre-wrap;"><span
 class="Apple-style-span"
 style="font-family: arial; white-space: normal;"><span
 class="Apple-style-span"
 style="font-family: monospace; white-space: pre-wrap;"><br>
  <br>
  </span></span></span></div>
</blockquote>
Can you send the output of:&nbsp; gdalinfo band_landsat.TIF<br>
<br>
<blockquote
 cite="mid:AANLkTik-Xjrd2_Hc6ovx45pyvn3uHt3VAhBUiN1dLPH_@mail.gmail.com"
 type="cite">
  <div><span class="Apple-style-span"
 style="font-family: monospace; white-space: pre-wrap;"><span
 class="Apple-style-span"
 style="font-family: arial; white-space: normal;"><span
 class="Apple-style-span"
 style="font-family: monospace; white-space: pre-wrap;"></span></span></span></div>
  <div><span class="Apple-style-span"
 style="font-family: monospace; white-space: pre-wrap;"><span
 class="Apple-style-span"
 style="font-family: arial; white-space: normal;"><span
 class="Apple-style-span"
 style="font-family: monospace; white-space: pre-wrap;">Any tips of
what migh be wrong?</span></span></span></div>
  <div><span class="Apple-style-span"
 style="font-family: monospace; white-space: pre-wrap;"><span
 class="Apple-style-span"
 style="font-family: arial; white-space: normal;"><span
 class="Apple-style-span"
 style="font-family: monospace; white-space: pre-wrap;"><br>
Thank you</span></span></span></div>
  <div><span class="Apple-style-span"
 style="font-family: monospace; white-space: pre-wrap;"><span
 class="Apple-style-span"
 style="font-family: arial; white-space: normal;"><span
 class="Apple-style-span"
 style="font-family: monospace; white-space: pre-wrap;">Jenny</span></span></span></div>
  <div><br>
  <div class="gmail_quote">On Tue, May 18, 2010 at 8:42 PM, Micha
Silver <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:micha@arava.co.il">micha@arava.co.il</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div class="im">Jenny Turner wrote:<br>
    <br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Greetings<br>
Firman, but imagine that I have rasters in UTM for differente zones
(e.g. huge countries like USA, etc). How can I produce an automatic
importing tool that uses gdalwarp to project an image to WGS84 and
import to GRASS?<br>
    </blockquote>
    </div>
Using gdalwarp you don't have to specify the source coordinate system,
*if* the originals have the correct projection defined in their
headers. For Landsat images, this is most likely the case, so you
should be able to get away with just setting the -t_srs option of
gdalwarp and each tile will be re-projected to the WGS84 geographic CRS.<br>
    <br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <div class="im">Thanks for your help<br>
Best regards,<br>
Jenny<br>
      <br>
      </div>
      <div class="im">On Mon, May 17, 2010 at 11:10 PM, Firman Hadi &lt;<a
 moz-do-not-send="true" href="mailto:jalmiburung@gmail.com"
 target="_blank">jalmiburung@gmail.com</a> &lt;mailto:<a
 moz-do-not-send="true" href="mailto:jalmiburung@gmail.com"
 target="_blank">jalmiburung@gmail.com</a>&gt;&gt; wrote:<br>
      <br>
&nbsp; &nbsp;Hi,<br>
      <br>
&nbsp; &nbsp;As far as I know you must define the source coordinate system.<br>
&nbsp; &nbsp;I think it is pretty straightforward when you are using gdalwarp.<br>
&nbsp; &nbsp;If there are so many images, maybe you can create a shell script<br>
&nbsp; &nbsp;to run the process.<br>
      <br>
&nbsp; &nbsp;Cheers,<br>
      <br>
&nbsp; &nbsp;&gt;<br>
      <br>
&nbsp; &nbsp;Firman Hadi<br>
&nbsp; &nbsp;Center for Remote Sensing - ITB<br>
&nbsp; &nbsp;Jl. Ganesha No. 10,<br>
&nbsp; &nbsp;Labtek IX-C, 3rd Floor<br>
&nbsp; &nbsp;Bandung - 40132<br>
&nbsp; &nbsp;INDONESIA<br>
&nbsp; &nbsp;Phone: +62-22-2530701<br>
&nbsp; &nbsp;Fax: +62-22-2530702<br>
      </div>
&nbsp; &nbsp;Website : <a moz-do-not-send="true" href="http://crs.itb.ac.id"
 target="_blank">http://crs.itb.ac.id</a> ; <a moz-do-not-send="true"
 href="http://www.sigro.org" target="_blank">www.sigro.org</a> &lt;<a
 moz-do-not-send="true" href="http://www.sigro.org" target="_blank">http://www.sigro.org</a>&gt;
      <div class="im"><br>
&nbsp; &nbsp;Blog : <a moz-do-not-send="true"
 href="http://jalmiburung.wordpress.com" target="_blank">http://jalmiburung.wordpress.com</a><br>
&nbsp; &nbsp;JepratJepret: <a moz-do-not-send="true"
 href="http://jalmiburung.fotografer.net" target="_blank">http://jalmiburung.fotografer.net</a><br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      </div>
This mail was received via Mail-SeCure System.<br>
------------------------------------------------------------------------<br>
      <br>
_______________________________________________<br>
grass-user mailing list<br>
      <a moz-do-not-send="true" href="mailto:grass-user@lists.osgeo.org"
 target="_blank">grass-user@lists.osgeo.org</a><br>
      <a moz-do-not-send="true"
 href="http://lists.osgeo.org/mailman/listinfo/grass-user"
 target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
      <br>
This mail was received via Mail-SeCure System.<br>
      <br>
      <br>
&nbsp;<br>
    </blockquote>
    <br>
    <br>
-- <br>
Micha Silver<br>
Arava Development Co. +972-52-3665918<br>
    <a moz-do-not-send="true" href="http://www.surfaces.co.il"
 target="_blank">http://www.surfaces.co.il</a><br>
    <br>
    <br>
  </blockquote>
  </div>
  <br>
  </div>
  <br>
This mail was received via Mail-SeCure System.<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Micha Silver
Arava Development Co. +972-52-3665918
<a class="moz-txt-link-freetext" href="http://surfaces.co.il">http://surfaces.co.il</a>

</pre>
</body>
</html>