<br><br><div><span class="gmail_quote">On 9/26/06, <b class="gmail_sendername">Frank Warmerdam</b> &lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Frederico Lucca wrote:<br>&gt; Hello list,<br>&gt;<br>&gt; Can I reproject a image that is inside a layer using tileindex?<br><br>Frederico,<br><br>Yes.<br><br>&gt; My problem is that I need to show a ECW that is in Corrego Alegre Datum.
<br>&gt; First of all I tried to use<br>&gt; PROJECTION<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&quot;init=epsg:4225&quot;<br>&gt; END<br>&gt; without success.<br><br>To be clear, are the bounds stored in the tile index in degrees?<br>(as opposed to projected meters, feet, etc)
</blockquote><div><br>Frank,<br><br>Yes, the bounds are stored in degrees, with Corrego Alegre datum. Almost the same as WGS84, in some places with difference of 60 meters from one to other.<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; Than I tried to use gdalwarp to convert it to WGS84 that is my map<br>&gt; Datum, but I can't write ECW format, why not?<br><br>The gdalwarp program processes the image in chunks, but the ECW<br>writer (and also many other compressed GDAL drivers) only support
<br>line by line copying, so gdalwarp has to output to a &quot;working file&quot;,<br>which can then be converted to ecw using gdal_translate.&nbsp;&nbsp;I often<br>use GeoTIFF or Imagine (HFA) formats for working files.</blockquote>
<div><br>Great! The problem is the hard disk space, I have more than 1000 images and no space. Each GeoTiff have 100.000 MB and compressing with ECW 10.000 MB.<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; So, the only solution I found is convert using gdalwarp exporting as<br>&gt; GTiff, but the image size is very large.<br>&gt;<br>&gt; I have many photos and want to use only a layer if is possible.<br>&gt; There is a solution?
<br><br>Generally speaking, if all your photos are in EPSG:4225 you should be<br>able to just label the layer that way, and your map as EPSG:4326, and<br>mapserver will take care of reprojecting the images as needed.<br><br>
However, you cannot have a mix of coordinate systems in your tile index.<br>So this only works if all the images in your tile index are in the same<br>coordinate system.</blockquote><div><br>Ok, all my images have the same coordinate system.
<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">There is a performance cost to reprojecting rasters on the fly.&nbsp;&nbsp;You<br>may still find you are better pre-reprojecting them using gdalwarp,
<br>and then recompressing to ECW with gdal_translate.</blockquote><div><br>Ok, I will try, thanks a lot. <br><br>Fred.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Good luck,<br>--<br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up&nbsp;&nbsp; | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush&nbsp;&nbsp;&nbsp;&nbsp;| President OSGeo, <a href="http://osgeo.org">http://osgeo.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>&quot;Everything under the sun is in tune<br>But the sun is eclipsed by the moon&quot;