Kiks wrote:
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.
Hello Kiks,
Welcome to the MapServer community :)
You should always start by using the shp2img commandline utility that
comes with MapServer, to make sure that a map image is produced.
http://www.mapserver.org/utilities/shp2img.html You can use the second
or third examples to get some more information.
Also, if you have only one layer you can remove all projection objects.
If you are worried that your problem is that one data file, try another
simple test with a shapefile and see if you can create a map image with
shp2img.
Hope this helps a little.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users