[mapserver-users] adding ecw support

Jackson, John jxjackso at franklincountyohio.gov
Mon Apr 25 13:25:43 EDT 2011


Here's the output of gdalinfo for the ecw file... Could it be the lack of coordinate system info?

[jhjackson at map-tester gdal-1.7.2-fedora]# gdalinfo /home/ecw/test.ecw
Driver: ECW/ERMapper Compressed Wavelets
Files: /home/ecw/test.ecw
       /home/ecw/test.eww
Size is 445500, 412500
Coordinate System is `'
Origin = (1753630.000000000000000,781300.000000000000000)
Pixel Size = (0.320000000000000,-0.320000000000000)
Corner Coordinates:
Upper Left  ( 1753630.000,  781300.000) 
Lower Left  ( 1753630.000,  649300.000) 
Upper Right ( 1896190.000,  781300.000) 
Lower Right ( 1896190.000,  649300.000) 
Center      ( 1824910.000,  715300.000) 
Band 1 Block=445500x1 Type=Byte, ColorInterp=Red
  Overviews: arbitrary
Band 2 Block=445500x1 Type=Byte, ColorInterp=Green
  Overviews: arbitrary
Band 3 Block=445500x1 Type=Byte, ColorInterp=Blue
  Overviews: arbitrary
________________________________________
From: Carlos Ruiz [boolean10001 at yahoo.com]
Sent: Monday, April 25, 2011 1:23 PM
To: Jackson, John
Subject: Re: [mapserver-users] adding ecw support

Your MAP contents looks fine to me.

Did you run ldconfig after the libecw/gdal compilation ?

Sometimes when I upload some raster files to my production server, they are somehow corrupted. Please check if you can
see test.ecw with ER Viewer or other applications, and if this is your case too, check the byte length of the local and the remote
files.

Maybe you should recompile Mapserver. I don't remember if this must be done, but I thing you don't need it.

IC Carlos Ruiz

________________________________
From: "Jackson, John" <jxjackso at franklincountyohio.gov>
To: Carlos Ruiz <boolean10001 at yahoo.com>; "mapserver-users at lists.osgeo.org" <mapserver-users at lists.osgeo.org>
Sent: Monday, April 25, 2011 12:04 PM
Subject: Re: [mapserver-users] adding ecw support

Debug 5 produces:
[Mon Apr 25 12:00:04 2011].97972 msDrawRasterLayerLow(ortho): entering.
[Mon Apr 25 12:00:04 2011].98406 drawEPP(): Image handling error. EPPL7 support is not available.
[Mon Apr 25 12:00:04 2011].98414 msDrawRaster(): Image handling error. Unrecognized or unsupported image format
[Mon Apr 25 12:00:04 2011].98421 msDrawMap(): Image handling error. Failed to draw layer named 'ortho'.

relevant section from map file is pretty straightforward:

        LAYER
                NAME "ortho"
                STATUS on
                TYPE RASTER
                DATA "/home/ecw/test.ecw"
        END


________________________________________
From: Carlos Ruiz [boolean10001 at yahoo.com<mailto:boolean10001 at yahoo.com>]
Sent: Monday, April 25, 2011 12:59 PM
To: Jackson, John
Subject: Re: [mapserver-users] adding ecw support

Try setting DEBUG 5 and CONFIG MS_ERRORFILE '/var/www/error.log' into the MAP section to see what does
Mapserver throws.

Also, can you post the MAP file contents ?

Cheers from México

IC Carlos Ruiz

________________________________
From: "Jackson, John" <jxjackso at franklincountyohio.gov<mailto:jxjackso at franklincountyohio.gov>>
To: "mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>" <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Sent: Monday, April 25, 2011 11:25 AM
Subject: Re: [mapserver-users] adding ecw support

Quick question:

I've compiled libecw3.3 and gdal... now gdalinfo --formats shows the ECW format, but mapserver still won't produce a map with an ecw file.

Do I need to recompile mapserver also?

(I'm running 5.65 on a Fedora 13 box if that helps)

Thanks

--John Jackson
--Deputy Auditor
--jxjackso at franklincountyohio.gov<mailto:--jxjackso at franklincountyohio.gov><mailto:--jxjackso at franklincountyohio.gov<mailto:--jxjackso at franklincountyohio.gov>>_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org><mailto:mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
http://lists.osgeo.org/mailman/listinfo/mapserver-users






More information about the mapserver-users mailing list