<!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">
Hi Jukka,<br>
<br>
Alas, it doesn't, or it doesn't work. <br>
<br>
I made a copy of the errornous ECW file, and edited the header. The
original doesn't display, while the edited does (perfectly so), with
the exact same mapping file. <br>
<br>
Adding the PROCESSING directive doesn't help, the errornous ECW file
still doesn't show. And I'm sure that the TFW is both present and
correct :-)<br>
<br>
The debug log reports: msResampleGDALToMap(): no overlap ... no result.<br>
<br>
The errornous ECW header setting tells GDAL that the Y axis is
downwards, not upwards. And it has UL=(0,0) and dx,dy = 1,1. I.e. dummy
data.<br>
<br>
Is GDAL still reading the (here errornous) Y axis direction setting
although it shouldn't (with the directive in place) ?<br>
<pre class="moz-signature" cols="80">Best regards / Med venlig hilsen
Lars I. Nielsen
GIS &amp; DB Integrator
GisPro
</pre>
<br>
<br>
Rahkonen Jukka skrev:
<blockquote
 cite="mid:CC197224AC75CE4DB23F739B16891B86E3476E@tikka.haapa.mmm.fi"
 type="cite">
  <pre wrap="">Hi,

I believe that version 5.2.1 supports setting EXTENT_PRIORITY. Read <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/pipermail/mapserver-users/2008-October/058227.html">http://lists.osgeo.org/pipermail/mapserver-users/2008-October/058227.html</a>


-Jukka Rahkonen-


Lars I. Nielsen wrote:
 
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Frank,
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">This may work, but I'm unable to test it, since I'm currently unable to 
    </pre>
  </blockquote>
  <pre wrap=""><!---->retrieve anything newer than 5.2.1 (included in the latest ms4w.zip). 
There's a newer version 5.7beta of Mapserver included in the FWTools 
package, but the DLL set it uses seems totally different from the one 
used in cgi-bin in the ms4w package.

  </pre>
  <blockquote type="cite">
    <pre wrap="">Please advise as to how I can download a newer version of Mapserver.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">Cheers.
    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
  <blockquote type="cite">
    <pre wrap="">Best regards / Med venlig hilsen
Lars I. Nielsen
GIS &amp; DB Integrator
    </pre>
  </blockquote>
  <pre wrap=""><!---->GisPro





Frank Warmerdam skrev:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Lars I. Nielsen (GisPro) wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Hi,

I'm trying to set up Mapserver as a WMS server, serving multiple 
seamless coverages consisting of ECW raster tiles.

My problem is, that the ECW files have been delivered with faulty 
header information, and there's too many to fix manually, and the 
error cannot easily be remedied programmatically.

However, I have generated TFW files for each tile that are correct, 
but how do I force Mapserver to use the TFW files and disregard the 
faulty ECW header ?
      </pre>
    </blockquote>
    <pre wrap="">Lars,

As it happens this is not a unique situation and MapServer itself has 
some
logic to address it.  If you add:

  PROCESSING "EXTENT_PRIORITY=WORLD"

to your layer definition, then world files will be searched for in 
preference
to using the georeferencing returned by GDAL.   I'm not sure exactly 
when this
was incorporated but I imagine it is in 5.4 and later.  Also the file 
extension
should likely be either .eww or .wld, not .tfw for ecw files.

Best regards,
    </pre>
  </blockquote>
  <pre wrap=""><!---->_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>



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