[Spanish] MapServer + soporte ECW

Paulo Clavijo paucls at gmail.com
Thu Mar 5 13:09:44 EST 2009


Hola,

estoy intentando configurar MapServer en linux con soporte para ECW.

Tengo instalado sobre un servidor Linux con Debian Lenny (estable),
MapServer versión 5.0.3 .

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)


 si ejecuto:

*# gdalinfo --format ecw *

*ERROR 1: --format option given with format 'ecw', but that format not *

*recognised. Use the --formats option to get a list of available formats, *

*and use the short code (ie. GTiff or HFA) as the format identifier.*


 Gdal me indica que no tengo soporte para el formato ECW, así que quiero
instalarlo tal como se indica en http://www.gdal.org/frmt_ecw.html


 “Support for the ECW driver in GDAL is optional, and requires linking in
external ECW SDK libraries provided by ERMapper.”


 Mis dudas son:

¿donde puedo descargar el ECW SDK libraries? Ya que la web www.ermapper.com
<http://www.ermapper.com/>ya no esta disponible.

¿Hay alguien que tenga mapserver + ecw funcionando en linux? Y pueda
orientarme un poco.




 Por otro lado también he probado a instalar mapserver con la version
standalone de maptools.org, 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:

*+ Installing gdal_ecw-module: *

* + Getting and extracting module 'gdal_ecw-module'... ok*

*Getting and extracting module 'libecw-base'... ok*


 y con este al lanzar gdalinfo si obtengo que esta soportado ecw:


 */opt/fgs# gdalinfo --format ecw *

*Format Details: *

* Short Name: ECW *

* Long Name: ERMapper Compressed Wavelets *

* Extension: ecw *

* Help Topic: frmt_ecw.html *

* Supports: CreateCopy() - Create dataset by copying another. *

* Creation Datatypes: Byte *

 *<CreationOptionList> *

* <Option name="TARGET" type="float" description="Compression Percentage"/>
*

* <Option name="PROJ" type="string" description="ERMapper Projection Name"/>
*

* <Option name="DATUM" type="string" description="ERMapper Datum Name"/> *

* <Option name="LARGE_OK" type="boolean" description="Enable compressing
500+MB files"/> *

*</CreationOptionList> *



 Aun así me defino una layer en mi .map para un ecw:


 LAYER

NAME Relieve

TYPE raster

STATUS on

DATA "/var/data/relieve.ecw"

PROJECTION

"init=epsg:23030"

END

 METADATA

"wms_title" "Relieve"

"wms_abstract" "Imagen raster"

"wms_keywordlist" "WMS imagen raster"

"wms_srs" "EPSG:23030"

END


 y al intentar mostrarla en el navegador obtengo el error de mapserver:


 msDrawMap(): Image handling error. Failed to draw layer named 'Relieve'.
msDrawRaster(): Image handling error. Unrecognized or unsupported image
format drawEPP(): Image handling error. /var/data/relieve.ecw is not an EPPL
file.


  Alguna idea de como solucionarlo ?

  Gracias de antemano
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://lists.osgeo.org/pipermail/spanish/attachments/20090305/56e8c3bc/attachment.html


More information about the Spanish mailing list