<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
        <title></title>
        <meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)">
        <style type="text/css">
        &lt;!--
                @page { size: 21cm 29.7cm; margin: 2cm }
                P { margin-bottom: 0.21cm }
        --&gt;
        </style>

<p style="margin-bottom: 0cm;">Hola,</p>

<p style="margin-bottom: 0cm;">estoy intentando configurar MapServer
en linux con soporte para ECW.</p>


<p style="margin-bottom: 0cm;">Tengo instalado sobre un servidor Linux
con Debian Lenny (estable), MapServer versión 5.0.3 .</p>
<p style="margin-bottom: 0cm;">Lo he instalado a través de los
repositorios de debian, junto Apache2 y las librerias PROJ4 (proj),
GEOS (libgeos-3.0.0), SHAPELIB (shapelib), GDAL (gdal-bin,
libgdal1-1.5.0)</p>

<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">si ejecuto:</p>
<p style="margin-bottom: 0cm;"><b><i># gdalinfo --format ecw
</i></b></p>
<p style="margin-bottom: 0cm;"><b><i>ERROR 1: --format option given with
format &#39;ecw&#39;, but that format not
</i></b></p>
<p style="margin-bottom: 0cm;"><b><i>recognised.  Use the --formats option
to get a list of available formats,
</i></b></p>
<p style="margin-bottom: 0cm;"><b><i>and use the short code (ie. GTiff or
HFA) as the format identifier.</i></b></p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">Gdal me indica que no tengo soporte
para el formato ECW, así que quiero instalarlo tal como se indica en
<a href="http://www.gdal.org/frmt_ecw.html">http://www.gdal.org/frmt_ecw.html</a></p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">“Support for the ECW driver in GDAL
is optional, and requires linking in external ECW SDK libraries
provided by ERMapper.”</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">Mis dudas son:  
</p>
<p style="margin-bottom: 0cm;">¿donde puedo descargar el ECW SDK
libraries? Ya que la web <a href="http://www.ermapper.com/">www.ermapper.com</a><a href="http://www.ermapper.com/">
</a>ya no esta disponible.</p>
<p style="margin-bottom: 0cm;">¿Hay alguien que tenga mapserver + ecw
funcionando en linux? Y pueda orientarme un poco.</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">Por otro lado también he probado a
instalar mapserver con la version standalone de <a href="http://maptools.org">maptools.org</a>,  en
concreto fgs-mapserver_5.2.1-fgs_1.0.0-linux-i386.bin, que trae en un
único instalador apache, mapserver y las librerias necesarias.
Incluido el soporte ecw, en la propia instalación me indica que lo
ha instalado:</p>
<p style="margin-bottom: 0cm;"><b><i>+ Installing gdal_ecw-module:
</i></b></p>
<p style="margin-bottom: 0cm;"><b><i>  + Getting and extracting module
&#39;gdal_ecw-module&#39;... ok</i></b></p>
<p style="margin-bottom: 0cm;"><b><i>Getting and extracting module
        &#39;libecw-base&#39;... ok</i></b></p>


<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">y con este al lanzar gdalinfo si
obtengo que esta soportado ecw:</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;"><i>/opt/fgs# gdalinfo --format ecw
</i></p>
<p style="margin-bottom: 0cm;"><i>Format Details:
</i></p>
<p style="margin-bottom: 0cm;"><i>  Short Name: ECW
</i></p>
<p style="margin-bottom: 0cm;"><i>  Long Name: ERMapper Compressed
Wavelets
</i></p>
<p style="margin-bottom: 0cm;"><i>  Extension: ecw
</i></p>
<p style="margin-bottom: 0cm;"><i>  Help Topic: frmt_ecw.html
</i></p>
<p style="margin-bottom: 0cm;"><i>  Supports: CreateCopy() - Create
dataset by copying another.
</i></p>
<p style="margin-bottom: 0cm;"><i>  Creation Datatypes: Byte
</i></p>
<p style="margin-bottom: 0cm;">
</p>
<p style="margin-bottom: 0cm;"><i>&lt;CreationOptionList&gt;
</i></p>
<p style="margin-bottom: 0cm;"><i>  &lt;Option name=&quot;TARGET&quot;
type=&quot;float&quot; description=&quot;Compression Percentage&quot;/&gt;
</i></p>
<p style="margin-bottom: 0cm;"><i>  &lt;Option name=&quot;PROJ&quot;
type=&quot;string&quot; description=&quot;ERMapper Projection
Name&quot;/&gt;
</i></p>
<p style="margin-bottom: 0cm;"><i>  &lt;Option name=&quot;DATUM&quot;
type=&quot;string&quot; description=&quot;ERMapper Datum Name&quot;/&gt;
</i></p>
<p style="margin-bottom: 0cm;"><i>  &lt;Option name=&quot;LARGE_OK&quot;
type=&quot;boolean&quot; description=&quot;Enable compressing 500+MB
files&quot;/&gt;
</i></p>
<p style="margin-bottom: 0cm;"><i>&lt;/CreationOptionList&gt;
</i></p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">Aun así me defino una layer en mi .map
para un ecw:</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">LAYER
</p>
<p style="margin-bottom: 0cm;">NAME Relieve
</p>
<p style="margin-bottom: 0cm;">TYPE raster
</p>
<p style="margin-bottom: 0cm;">STATUS on
</p>
<p style="margin-bottom: 0cm;">DATA &quot;/var/data/relieve.ecw&quot;
</p>
<p style="margin-bottom: 0cm;">PROJECTION
</p>
<p style="margin-bottom: 0cm;">&quot;init=epsg:23030&quot;
</p>
<p style="margin-bottom: 0cm;">END
</p>
<p style="margin-bottom: 0cm;">
</p>
<p style="margin-bottom: 0cm;">METADATA
</p>
<p style="margin-bottom: 0cm;">&quot;wms_title&quot; &quot;Relieve&quot;
</p>
<p style="margin-bottom: 0cm;">&quot;wms_abstract&quot; &quot;Imagen
raster&quot;
</p>
<p style="margin-bottom: 0cm;">&quot;wms_keywordlist&quot; &quot;WMS
imagen raster&quot;
</p>
<p style="margin-bottom: 0cm;">&quot;wms_srs&quot; &quot;EPSG:23030&quot;
</p>
<p style="margin-bottom: 0cm;">END</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">y al intentar mostrarla en el navegador
obtengo el error de mapserver:</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm; color: rgb(255, 0, 0);">msDrawMap(): Image handling error.
Failed to draw layer named &#39;Relieve&#39;. msDrawRaster(): Image handling
error. Unrecognized or unsupported image format drawEPP(): Image
handling error. /var/data/relieve.ecw is not an EPPL file. 
</p>
<p style="margin-bottom: 0cm;">
</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">
</p>
<p style="margin-bottom: 0cm;">Alguna idea de como solucionarlo ?</p>
<p style="margin-bottom: 0cm;">
</p>
<p style="margin-bottom: 0cm;">
</p>
<p style="margin-bottom: 0cm;">Gracias de antemano</p>
<p style="margin-bottom: 0cm;"><br>
</p>