WCS Server Problems
Chris Hodgson
chodgson at REFRACTIONS.NET
Wed May 18 13:49:40 PDT 2005
I am trying to setup a WMS/WCS server using mapserver, and right now I
am getting a segfault if I ask for any significantly sized map. Very
small maps seem to come out ok (ie. only a few meters wide and/or only a
few pixels wide).
Following is a (long but hopefully complete) description of my situation:
I'm running on Fedora Core 1 Linux, with gdal-1.2.0 and proj-4.4.8 and I
have mapserver 4.4.1, freshly compiled:
MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
My mapfile is fairly simple, it looks like this:
MAP
NAME BC_DEM
EXTENT 250000 250000 1900000 1900000
SIZE 550 550
SHAPEPATH "/home/chodgson/mapfiles/wcs/"
UNITS meters
IMAGECOLOR 0 0 0
IMAGETYPE gtiff
PROJECTION
"init=epsg:3005"
END
DEBUG ON
CONFIG CPL_DEBUG "ON"
WEB
METADATA
"ows_name" "BC_DEM"
"ows_title" "British Columbia DEM"
"ows_label" "British Columbia DEM"
"ows_onlineresource"
"http://kraken/mapserv/mapserv?map=/home/chodgson/mapfiles/wcs.map&"
"ows_srs" "EPSG:4269 EPSG:3005"
end
END
LAYER
NAME "DEM"
DATA "test.tif"
TYPE RASTER
STATUS ON
DEBUG ON
DUMP true
METADATA
"ows_name" "DEM"
"ows_title" "DEM"
"ows_label" "DEM"
"wcs_rangeset_name" "height"
"wcs_rangeset_label" "height in meters"
"wcs_formats" "gtiff"
"wcs_nativeformat" "gtiff"
END
PROJECTION
"init=epsg:3005"
END
END
END
The single image (test.tif) that I have looks like this in gdalinfo:
Driver: GTiff/GeoTIFF
Size is 1024, 1024
Coordinate System is:
PROJCS["unnamed",
GEOGCS["NAD83",
DATUM["North_American_Datum_1983",
SPHEROID["GRS 1980",6378137,298.2572221010042,
AUTHORITY["EPSG","7019"]],
AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich",0],
UNIT["degree (supplier to define
representation)",0.01745329251994328],
AUTHORITY["EPSG","4269"]],
PROJECTION["Albers_Conic_Equal_Area"],
PARAMETER["standard_parallel_1",58.50000000000006],
PARAMETER["standard_parallel_2",50.00000000000005],
PARAMETER["latitude_of_center",45.00000000000004],
PARAMETER["longitude_of_center",-126],
PARAMETER["false_easting",1000000],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]]]
Origin = (250000.000000,1900000.000000)
Pixel Size = (1611.32812500,-1611.32812500)
Corner Coordinates:
Upper Left ( 250000.000, 1900000.000) (140d 2'58.91"W, 61d24'47.84"N)
Lower Left ( 250000.000, 250000.000) (135d48'24.81"W, 46d47'34.56"N)
Upper Right ( 1900000.000, 1900000.000) (109d14'9.65"W, 61d 7'15.25"N)
Lower Right ( 1900000.000, 250000.000) (114d15'52.42"W, 46d35'14.50"N)
Center ( 1075000.000, 1075000.000) (124d50'3.47"W, 54d40'11.64"N)
Band 1 Block=1024x8 Type=Byte, ColorInterp=Gray
When I query my server like this (yah, it's a WMS request but the same
happens with a similar wcs request):
http://kraken/mapserv/mapserv_wcs?map=/home/chodgson/mapfiles/wcs.map&version=1.1.0&request=getmap&layers=DEM&service=WMS&srs=epsg:3005&bbox=250000,250000,350000,350000&height=10&width=10&format=gtiff
I get a segfault - ie. it shows up in the browser as a 500 error, in the
apache log as an "unexpected end of headers", and segfaults on the
command-line.
This request however, succeeds (notice the one-meter sized bbox):
http://kraken/mapserv/mapserv_wcs?map=/home/chodgson/mapfiles/wcs.map&version=1.1.0&request=getmap&layers=DEM&service=WMS&srs=epsg:3005&bbox=250000,250000,250001,250001&height=10&width=10&format=gtiff
The only debug output I'm getting is:
GDAL: GDALOpen(/home/chodgson/mapfiles/wcs/test.tif) succeeds as GTiff.
Can anyone help me out here? Sorry, it's on an internal server so those
urls aren't internet accessible.
Thanks,
Chris
More information about the MapServer-users
mailing list