<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1255"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 05/25/2010 11:17 AM, Jenny Turner wrote:
<blockquote
cite="mid:AANLkTinYJF8-ghXPRbjz3_hJZ1Owyp-K3AaEesW7cfzH@mail.gmail.com"
type="cite">Yes Sure :)
<div><br>
</div>
<div>Attached to this email you can find the log</div>
</blockquote>
<br>
I was thinking of just the results of gdalinfo. This way we can see if
the tiff is being recognized, and if its CRS is is available in the
tiff header.<br>
<br>
Here's an example:<br>
<br>
~>gdalinfo geodata/DSASC/landsat/p174r038_7t20020308_z36_nn10.tif <br>
Driver: GTiff/GeoTIFF<br>
Files: geodata/DSASC/landsat/p174r038_7t20020308_z36_nn10.tif<br>
Size is 8577, 7573<br>
Coordinate System is:<br>
PROJCS["WGS 84 / UTM zone 36N",<br>
GEOGCS["WGS 84",<br>
DATUM["WGS_1984",<br>
SPHEROID["WGS 84",6378137,298.257223563,<br>
AUTHORITY["EPSG","7030"]],<br>
AUTHORITY["EPSG","6326"]],<br>
PRIMEM["Greenwich",0],<br>
UNIT["degree",0.0174532925199433],<br>
AUTHORITY["EPSG","4326"]],<br>
PROJECTION["Transverse_Mercator"],<br>
PARAMETER["latitude_of_origin",0],<br>
PARAMETER["central_meridian",33],<br>
PARAMETER["scale_factor",0.9996],<br>
PARAMETER["false_easting",500000],<br>
PARAMETER["false_northing",0],<br>
UNIT["metre",1,<br>
AUTHORITY["EPSG","9001"]],<br>
AUTHORITY["EPSG","32636"]]<br>
Origin = (603487.500000000000000,3623062.500000000000000)<br>
Pixel Size = (28.500000000000000,-28.500000000000000)<br>
Metadata:<br>
TIFFTAG_XRESOLUTION=72<br>
TIFFTAG_YRESOLUTION=72<br>
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)<br>
AREA_OR_POINT=Point<br>
Image Structure Metadata:<br>
INTERLEAVE=BAND<br>
Corner Coordinates:<br>
Upper Left ( 603487.500, 3623062.500) ( 34d 6'16.43"E, 32d44'25.92"N)<br>
Lower Left ( 603487.500, 3407232.000) ( 34d 4'54.01"E, 30d47'37.09"N)<br>
Upper Right ( 847932.000, 3623062.500) ( 36d42'38.00"E, 32d41'25.66"N)<br>
Lower Right ( 847932.000, 3407232.000) ( 36d38'1.81"E, 30d44'49.94"N)<br>
Center ( 725709.750, 3515147.250) ( 35d22'58.18"E, 31d44'58.41"N)<br>
Band 1 Block=8577x1 Type=Byte, ColorInterp=Gray<br>
<br>
<br>
<br>
<blockquote
cite="mid:AANLkTinYJF8-ghXPRbjz3_hJZ1Owyp-K3AaEesW7cfzH@mail.gmail.com"
type="cite">
<div><br>
</div>
<div>Thanks for your help<br>
<br>
<div class="gmail_quote">On Mon, May 24, 2010 at 8:46 PM, Micha
Silver <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:micha@arava.co.il">micha@arava.co.il</a>></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 bgcolor="#ffffff" text="#000000">
<div class="im">On 05/24/2010 06:26 PM, Jenny Turner wrote:
</div>
<div class="im">
<blockquote 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 <span
style="font-family: monospace; white-space: pre-wrap;">TIFFReadDirectory<span
style="font-family: arial; white-space: normal;"> a lot of <span
style="font-family: monospace; white-space: pre-wrap;">TIFFWriteEncodedStrip<br>
and the destination.tif has a different size.</span></span></span></div>
<div><span style="font-family: monospace; white-space: pre-wrap;"><span
style="font-family: arial; white-space: normal;"><span
style="font-family: monospace; white-space: pre-wrap;"><br>
<br>
<br>
<br>
</span></span></span></div>
</blockquote>
</div>
<div class="im">Can you send the output of: gdalinfo
band_landsat.TIF<br>
<br>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div><span style="font-family: monospace; white-space: pre-wrap;"><span
style="font-family: arial; white-space: normal;"><span
style="font-family: monospace; white-space: pre-wrap;"></span></span></span></div>
<div><span style="font-family: monospace; white-space: pre-wrap;"><span
style="font-family: arial; white-space: normal;"><span
style="font-family: monospace; white-space: pre-wrap;">Any tips of<br>
what migh be wrong?</span></span></span></div>
<div><span style="font-family: monospace; white-space: pre-wrap;"><span
style="font-family: arial; white-space: normal;"><span
style="font-family: monospace; white-space: pre-wrap;"><br>
<br>
Thank you</span></span></span></div>
<div><span style="font-family: monospace; white-space: pre-wrap;"><span
style="font-family: arial; white-space: normal;"><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"><<a moz-do-not-send="true"
href="mailto:micha@arava.co.il" target="_blank">micha@arava.co.il</a>></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>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>Thanks for your help<br>
Best regards,<br>
Jenny<br>
<br>
</div>
<div>On Mon, May 17, 2010 at 11:10 PM, Firman Hadi <<a
moz-do-not-send="true" href="mailto:jalmiburung@gmail.com"
target="_blank">jalmiburung@gmail.com</a> <mailto:<a
moz-do-not-send="true" href="mailto:jalmiburung@gmail.com"
target="_blank">jalmiburung@gmail.com</a>>> wrote:<br>
<br>
Hi,<br>
<br>
As far as I know you must define the source coordinate system.<br>
I think it is pretty straightforward when you are using gdalwarp.<br>
If there are so many images, maybe you can create a shell script<br>
to run the process.<br>
<br>
Cheers,<br>
<br>
><br>
<br>
Firman Hadi<br>
Center for Remote Sensing - ITB<br>
Jl. Ganesha No. 10,<br>
Labtek IX-C, 3rd Floor<br>
Bandung - 40132<br>
INDONESIA<br>
Phone: +62-22-2530701<br>
Fax: +62-22-2530702<br>
</div>
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> <<a
moz-do-not-send="true" href="http://www.sigro.org" target="_blank">http://www.sigro.org</a>>
<div><br>
Blog : <a moz-do-not-send="true"
href="http://jalmiburung.wordpress.com" target="_blank">http://jalmiburung.wordpress.com</a><br>
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>
<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>
</div>
</div>
<pre cols="72"><div><div class="h5">--
Micha Silver
Arava Development Co. +972-52-3665918
</div></div><a moz-do-not-send="true" href="http://surfaces.co.il"
target="_blank">http://surfaces.co.il</a>
</pre>
</div>
</blockquote>
</div>
<br>
</div>
<br>
This mail was received via Mail-SeCure System.<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Micha Silver
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il/">http://www.surfaces.co.il/</a>
Arava Development Co. +972-52-3665918</pre>
</body>
</html>