On Thu, Nov 3, 2011 at 5:31 AM, luis peinado <[email protected]> wrote: > Hi list, > I've been working for days trying to render a .ecw file using a raster > layer. > The same map file and ecw file work fine with other 2 servers (using Linux > and different mapserver versions:4.6 and 5.6) as shown here: > http://www.anthos.es/wms46/rjb/anthos/raster?REQUEST=GetMap&VERSION=1.1.1&LAYERS=nasa_240&STYLES=&SRS=EPSG:4326&FORMAT=image/jpeg&BBOX=-18.88692529000388,31.01113086496096,-7.695976464653308,40.51093762077761&WIDTH=761&HEIGHT=646&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_xml&SERVICE=WMS > On my new server (Scientific Linux and mapserver 5.6) I get a file with no > images inside, and mapserver log does not explain any error, everything > seems to be alright for it. > The image shown is this: > http://161.111.171.50/wms46/rjb/anthos/raster?REQUEST=GetMap&VERSION=1.1.1&LAYERS=nasa_240&STYLES=&SRS=EPSG:4326&FORMAT=image/jpeg&BBOX=-18.88692529000388,31.01113086496096,-7.695976464653308,40.51093762077761&WIDTH=761&HEIGHT=646&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_xml&SERVICE=WMS > Mapserver's log: > [Thu Nov 3 12:28:40 2011].651297 CGI Request 1 on process 32018 > [Thu Nov 3 12:28:40 2011].655439 msDrawMap(): Layer 3 (nasa_240), 0.000s > [Thu Nov 3 12:28:40 2011].655485 msDrawMap(): Drawing Label Cache, 0.000s > [Thu Nov 3 12:28:40 2011].655491 msDrawMap() total time: 0.003s > [Thu Nov 3 12:28:40 2011].698421 msSaveImage() total time: 0.043s > [Thu Nov 3 12:28:40 2011].699261 mapserv request processing time (msLoadMap > not incl.): 0.048s > [Thu Nov 3 12:28:40 2011].699271 msFreeMap(): freeing map at 0x8927220. > [Thu Nov 3 12:28:40 2011].946127 CGI Request 1 on process 32019 > [Thu Nov 3 12:28:40 2011].950267 msDrawMap(): Layer 3 (nasa_240), 0.000s > [Thu Nov 3 12:28:40 2011].950312 msDrawMap(): Drawing Label Cache, 0.000s > [Thu Nov 3 12:28:40 2011].950318 msDrawMap() total time: 0.003s > [Thu Nov 3 12:28:40 2011].993148 msSaveImage() total time: 0.043s > [Thu Nov 3 12:28:40 2011].993921 mapserv request processing time (msLoadMap > not incl.): 0.048s > [Thu Nov 3 12:28:40 2011].993930 msFreeMap(): freeing map at 0x1ec32220. > > And mapserver's version information: > /var/www/cgi-bin/mapserv -v > MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS > SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > So, can someone help telling me where to look for the error? > Thanks a lot for any help or suggestion. > > -- > > Lluís
ECW is a proprietary format and thus may not have been installed with your Linux distro. I'm not familiar with Scientific Linux so I don't know. If you do have ECW support it would be handled by GDAL, which you have as evidenced by INPUT=GDAL, so you need to determine if GDAL has ECW support, which is pretty easy. In the shell: gdalinfo --formats or better yet gdalinfo --formats | grep -i ecw will list the formats tha GDAL can handle in your setup. If ECW isn't in the list then you need to install or build supporting libraries, but I have no idea how you do that in Scientific Linux. HTH, Rich -- Richard Greenwood [email protected] www.greenwoodmap.com _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
