Hi,

It is unnecessary to have EXTENT at LAYER level, but the reason for your 
problem is good old STATUS.  Set the layer STATUS to DEFAULT and have a new 
try. You should see an image, and while still in good mood read the explanation 
from
http://www.mapserver.org/faq.html#what-does-status-mean-in-a-layer

It is also a good habit to include all the WMS parameters in the requests at 
least when learning and testing, in this case 
SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities.  Mapserver does answer 
without VERSION and defaults to 1.1.1 then, but not all WMS servers behave that 
way. Same is true with CaseSensitivity, standard says that parameter values are 
case sensitive and while servers usually are not so strict it is better to make 
proper requests first and do things in a lazy and faster to type way later. You 
had it right, no trouble with that.

-Jukka Rahkonen-


> -----Alkuperäinen viesti-----
> Lähettäjä: [email protected] 
> [mailto:[email protected]] Puolesta Kiks
> Lähetetty: 19. helmikuuta 2010 10:59
> Vastaanottaja: [email protected]
> Aihe: [mapserver-users] Blank image result after the call 
> http://localhost/mapserver/mapserv.exe?map=ecw.map&mode=map
> 
> 
> Hi, I'm new to Mapserver, and I'm next to view my first 
> raster image in the
> browser, but I still have some problems: 
> 
> My MapServer runs under IIS: I've installed the tool version 
> (FWTools2.4.6)
> and it seems to be ok. 
> 
> >From the browser I try this, but the response is a blank page. 
> http://localhost/mapserver/mapserv.exe?map=ecw.map&mode=map
> 
> This is the content of my mapfile (ecw.map): 
> 
> MAP 
>    NAME Ortofoto 
>    STATUS ON 
>    SIZE 602 589 
>    EXTENT   1546119.5 4943633.5  1552879.5 4950247.5 
>    UNITS METERS 
>    OUTPUTFORMAT 
>           NAME jpeg 
>           DRIVER "GD/JPEG" 
>           MIMETYPE "image/jpeg" 
>           IMAGEMODE RGB 
>           EXTENSION "jpg" 
>    END        
>    CONFIG "PROJ_LIB" "C:\Programmi\FWTools2.4.6\proj_lib" 
>    PROJECTION 
>            "init=epsg:3003" 
>    END 
>    LAYER 
>         NAME "ecw" 
>         TYPE RASTER 
>         STATUS ON 
>         TRANSFORM FALSE 
>         DATA "c:\tematismi\197120.ecw" 
>         EXTENT   1546119.5 4943633.5  1552879.5 4950247.5 
>         PROJECTION 
>           "init=epsg:3003" 
>         END 
>    END # Layer 
> END # Map File 
> 
> 
> if I ask for capabilities 
> 
> http://localhost/mapserver/mapserv.exe?map=ecw.map&SERVICE=WMS
> &REQUEST=GetCapabilities
> 
> the response is this: 
> 
> WMS Ortofoto 2048 2048 text/xml image/jpeg image/gif 
> image/png image/png;
> mode=24bit image/vnd.wap.wbmp image/tiff image/svg+xml text/plain
> application/vnd.ogc.gml text/xml image/jpeg image/gif 
> image/png image/png;
> mode=24bit image/vnd.wap.wbmp text/xml XML INIMAGE BLANK 
> Ortofoto Ortofoto
> Ortofoto EPSG:3003 9.58154 9.66746 44.6433 44.7033 ecw ecw 
> EPSG:3003 9.58154
> 9.66746 44.6433 44.7033 
> 
> The problem is that I don't know how to debug and understand where I'm
> wrong. 
> The extents of the ecw file is correct, I don't know about 
> the projection,
> but I think there is non reason to make conversion of any type. 
> 
> Thanks to everyone that has any suggestion. 
> 
> Kiks 
> -- 
> View this message in context: 
> http://n2.nabble.com/Blank-image-result-after-the-call-http-lo
> calhost-mapserver-mapserv-exe-map-ecw-map-mode-map-tp4596732p4
> 596732.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to