[Mapserver-users] WMS Raster problem
Pagurek, Debbie
PAGUREKD at AGR.GC.CA
Tue Jul 6 13:07:55 PDT 2004
Tom,
I can use WMS to show a tif - here are the relevant parts of my mapfile.
Initially we had a problem because we had compiled mapserver with
INPUT=TIF, make sure you don't have that, and let GDAL take care of it.
MapServer version 4.2.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=SDE INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE
IMAGETYPE PNG24
OUTPUTFORMAT #not sure if this is really necessary
NAME png
MIMETYPE image/png
DRIVER GD/PNG
EXTENSION png
IMAGEMODE PC256
TRANSPARENT FALSE
END
LAYER
NAME "orthobsq"
DATA "014028_0100_010608_l7_08_utm18.tif"
TYPE RASTER
STATUS ON
GROUP ""
PROCESSING "SCALE_1=18,95"
PROJECTION
"init=epsg:26918"
# NAD83 / UTM zone 18N
#<26918> +proj=utm +zone=18 +ellps=GRS80 +datum=NAD83 +units=m
+no_defs no_defs <>
END
METADATA
"wms_title" "Ortho Photo"
"wms_srs" "EPSG:26918"
"wms_abstract" "Ortho Photo"
"wms_keywordlist" "Ortho Photo"
"wms_extent" "575000 5024000 699000 5110000"
"wms_opaque" "1"
"wms_name" "orthobsq"
"wms_onlineresource" "http://internal/cgi-bin/mapquebec?"
"wms_server_version" "1.1.0"
"wms_stylelist" "default"
"wms_style_default_title" "default"
END
END # LAYER
Hope this helps in some way.
Debbie
-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of
Kralidis,Tom [Burlington]
Sent: Tuesday, July 06, 2004 3:18 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] WMS Raster problem
Hi,
I have a large file (some 650MB) of type TIFF with .tfw file.
Here's the applicable chunks from my mapfile:
# image format options
OUTPUTFORMAT
NAME GTiff
DRIVER "GDAL/GTiff"
MIMETYPE "image/tiff"
IMAGEMODE RGB
EXTENSION "tif"
END
LAYER
NAME "glc2000"
STATUS ON
GROUP "Global Land Cover"
DATA "glc2000_v1_1.tif"
TYPE RASTER
METADATA
"wms_title" "The Land Cover of the World in the Year 2000"
"wms_group_title" "Global Land Cover"
"wms_abstract" "Global Land Cover"
"wms_abstract" "Global Land Cover"
"wms_keywordlist" "Global Landcover 2000,SPOT Vegetation"
"wms_extent" "-180 -90 180 90"
"wms_opaque" "1"
"wms_name" "glc2000"
"wms_onlineresource" "http://somehost/someurl"
"wms_server_version" "1.1.1"
"wms_stylelist" "default"
"wms_style_default_title" "default"
END
PROJECTION
"init=epsg:4326"
END
END
When I run as WMS, GetCapabilities is okay, but GetMap gives me back a
500.
The error_log just says:
[Tue Jul 06 15:05:17 2004] [error] [client 192.75.68.254] Premature end
of script headers: mapserv
Any idea what I'm doing wrong here?
Thanks alot
..Tom
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list