[mapserver-users] Re: Problems with Mapserver as WMS service (jpeg)
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Mon Oct 31 05:33:48 PDT 2011
Hi,
Here is the mapfile we used until we updated into Mapserver 6.0. After the update we are not allowed to use ECW-images as input without paying the ECW JPEG2000 SDK licence fee for Erdas so we converted all the ecw images we had into JPEG compressed geotiffs.
LAYER
NAME "Landsat742"
STATUS ON
DATA "E:\Data\Landsat742.ecw"
TYPE RASTER
# DEBUG 5
METADATA
"wms_title" "Landsat"
"wms_srs" "EPSG:2393 EPSG:3067 EPSG:4326 EPSG:900913"
END
PROJECTION
"init=epsg:2393"
END
END
Your layer definitions look basically similar.
First thing, as usual, is to add DEBUG 5 and have a look what you'll get into MS_ERRORFILE.
Your mapfile is probably OK but it is a bit hard to read for me. I would suggest you to rip off all the non-compulsory stuff and leave one of your working vector layers to start with. Add then a new geotiff raster layer and make it also to work. After that you can change to mapfile to use your ecw file instead of geotiff.
Using STATUS OFF is playing with fire. I suppose that if your layers work with that setting it is close to a bug in Mapserver.
-Jukka Rahkonen-
> -----Alkuperäinen viesti-----
> Lähettäjä: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Chrishelring
> Lähetetty: 31. lokakuuta 2011 13:54
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: [mapserver-users] Re: Problems with Mapserver as WMS
> service (jpeg)
>
> Hi,
>
> I just checked to be sure, but the status is also set to off
> in the layers
> that are working.
>
> Perhaps I should point out that the layers that are working
> is using data
> from our postgresql db but the layer not working is using a ECW file
> directly.
>
> /Christian
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Problems-with-Mapserver
> -as-WMS-service-jpeg-tp6941932p6947905.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list