[mapserver-users] Problem with ecw raster layer

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Fri Nov 4 02:07:15 PDT 2011


Hi,

I was thinking about that too but I just believed that you would get some informative error message about not-supported image format. Perhaps this might lead to a new ticket, developers?

-Jukka Rahkonen-

________________________________
Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta luis peinado
Lähetetty: 4. marraskuuta 2011 11:04
Vastaanottaja: Richard Greenwood
Kopio: mapserver-users
Aihe: Re: [mapserver-users] Problem with ecw raster layer

Hi, thanks a lot for your response, that was the problem (no ecw support for gdal).
I solved it using Jeff McKenna method:

http://osgeo-org.1803224.n2.nabble.com/ECW-Problems-td1971907.html

Best wishes.

2011/11/4 Richard Greenwood <richard.greenwood at gmail.com<mailto:richard.greenwood at gmail.com>>
On Thu, Nov 3, 2011 at 5:31 AM, luis peinado <luis.peinado at geodata.es<mailto:luis.peinado at geodata.es>> 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
richard.greenwood at gmail.com<mailto:richard.greenwood at gmail.com>
www.greenwoodmap.com<http://www.greenwoodmap.com>



--

Lluís Peinado

Geodata Sistemas,SL.

luis.peinado at geodata.es<mailto:luis.peinado at geodata.es>



T. 933 035 367 (ext. 21)

F. 933 080 071

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111104/39279f00/attachment.htm>


More information about the MapServer-users mailing list