[Mapserver-DE] .ecw support?!

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon Aug 17 17:33:41 CEST 2009


Sven Geggus wrote:
> Hello,
> 
> I was wondering about .ecw support in mapserver.
> 
> I'm using gdal 1.6.1) linked against libecwj2 and "gdalinfo myfile.ecw"
> shows something useful.
> 
> Unfortunately mapserver does not care.
> 
> All I get is this:
> 
> drawEPP(): Image handling error.
> path/to/exising/file.ecw is not an EPPL file.
> 
> Any idea?
> 
> Sven
> 
> P.S.: I'm using Mapserver as WMS-Server from mapscript.
> 

Hello Sven,

Interesting.  MapServer uses GDAL to access ECW images, so if your GDAL 
instance can read ECWs then MapServer should be good.  My thoughts anyway:

- verify that GDAL is built with ECW support by executing 'gdalinfo 
--formats' and look for ECW
- verify that you only have one installation of GDAL
- possibly test this on a different machine
- verify that your MapServer build contains GDAL support by executing 
'mapserv -v' at the commandline
- use a small mapfile with one layer (the ECW layer) and test MapServer 
through the shp2img commandline utility 
(http://www.mapserver.org/utilities/shp2img.html) with the 'map_debug 5' 
  switch (to show all errors)

-jeff

-- 
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/