WMS UTM vs Lat/Long problem crashes mapserver

Brendan Walashek brendwal2004 at YAHOO.CA
Wed Oct 13 16:25:21 PDT 2004


My Lat/Long WMS Mapserver file works fine when added as a WMS layer in a
GIS program (MapInfo or ArcMap) , my exact same with UTM mapfile and UTM
shapefile hangs/times out when added as a WMS layer to MapInfo or ArcMap.
The 2 shapefilea are in the appropriate projections.  What is wrong???
Why  Why  Why?!??!?!
I've tried SO many things...played around with extents, copied the epsg
file all over the server....I'm stumped.  It must be something simple.  I
really appreciate anyone's help.
I get the following error in my Apache error logfile: Premature end of
script headers: mapserv.exe

Details:
I have 2 shapefiles and 2 .map files.  One is in Lat/long (EPSG:4326), the
other is in UTM NAD83 Zone10 (EPSG:26910).

So I have the following:

http://209.139.230.212/cgi-bin/mapserv.exe?
map=c:/progra~1/apache~1/apache2/htdocs/Test_UTM.map&

http://209.139.230.212/cgi-bin/mapserv.exe?
map=c:/progra~1/apache~1/apache2/htdocs/Test_LL.map&

I add the Test_LL version in ArcMap or MapInfo as the URL, and it works
fine.
I try the Test_UTM and it doesn't add the layer.

A GetCapabilities Request works for both.
And I can manually type in a long URL string such as a GetMap request for
both UTM and LL versions in a webbrowser and it also works fine eg.
http://209.139.230.212/cgi-bin/mapserv.exe?
map=c:/progra~1/apache~1/apache2/htdocs/Test_UTM.map&request=getmap&version
=1.1.1&format=image/png&layers=Land_UTM

Here is the mapfile for both:

DOES WORK (Lat/Long) filename is Test_LL.map:

MAP

 NAME Test_LL
 SIZE 600 400
 STATUS ON

 PROJECTION
     "init=epsg:4326"
 END

 OUTPUTFORMAT
  NAME png
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGB
  EXTENSION "png"
 END

 # [minx_left] [miny_bottom] [maxx_right] [maxy_top]
 EXTENT -123.201046 49.109843 -122.920768 49.203412

 # Start of web interface definition
 WEB

  IMAGEPATH "c:/progra~1/apache~1/apache2/htdocs/temp/"
  IMAGEURL "/temp/"

  METADATA
   "wms_title" "Testbox_VanLand_LL"
   "wms_abstract" "Testbox_VanLand_LL"
   "wms_keywordlist" "ortho,orthophoto,airphoto,gis,vancouver"
   "wms_onlineresource" "http://209.139.230.212/cgi-bin/mapserv.exe?
map=c:/progra~1/apache~1/apache2/htdocs/Test_LL.map&"
   "wms_srs" "EPSG:4326"
  END
 END

# start of layer definitions

LAYER
  NAME Land_LL
  TYPE POLYGON
  STATUS ON
  DATA "C:\Program Files\Apache Group\Apache2\htdocs\test\VanLand_LL"
  PROJECTION
     "init=epsg:4326"
  END
  METADATA

   "wms_title"    "Land_LL"
   "wms_abstract"    "Land"
   "wms_srs" "EPSG:4326"
   "wms_name"    "Land_LL"
   "wms_onlineresource"    "http://209.139.230.212/cgi-bin/mapserv.exe?
map=c:/progra~1/apache~1/apache2/htdocs/Test_LL.map&"

  END

  CLASS
   NAME "Land"
   COLOR 0 100 255
  END
 END
END


****************************************************
The following UTM version DOES NOT WORK - filename Test_UTM.map:
****************************************************

MAP

 NAME Test_UTM
 SIZE 600 400
 STATUS ON
 PROJECTION
     "init=epsg:26910"
 END

 OUTPUTFORMAT
  NAME png
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGB
  EXTENSION "png"
 END

 # [minx_left] [miny_bottom] [maxx_right] [maxy_top]
 EXTENT 485332.481821 5439674.749936 505772.503299 5450070.263959

 WEB

  IMAGEPATH "c:/progra~1/apache~1/apache2/htdocs/temp/"
  IMAGEURL "/temp/"

  METADATA
   "wms_title" "Testbox_VanLand_UTM"
   "wms_abstract" "Testbox_VanLand_UTM"
   "wms_keywordlist" "ortho,orthophoto,airphoto,gis,vancouver"
   "wms_onlineresource" "http://209.139.230.212/cgi-bin/mapserv.exe?
map=c:/progra~1/apache~1/apache2/htdocs/Test_UTM.map&"
   "wms_srs" "EPSG:26910"
  END
 END

# start of layer definitions

 LAYER
   NAME Land_UTM
    PROJECTION
      "init=epsg:26910"
    END
  TYPE POLYGON
  STATUS ON
  DATA "C:\Program Files\Apache Group\Apache2\htdocs\test\VanLand_UTM"

  METADATA
   "wms_title"    "Land_UTM"
   "wms_abstract"    "Land"
   "wms_srs" "EPSG:26910"
   "wms_name"    "Land_UTM"
   "wms_onlineresource"    "http://209.139.230.212/cgi-bin/mapserv.exe?
map=c:/progra~1/apache~1/apache2/htdocs/Test_UTM.map&"
  END

  CLASS
   NAME "Land"
   COLOR 100 100 255
  END
 END
END


Thanks so much for any help....I'm stumped!  :-(


___________________
Brendan Walashek
GIS / Mapping / Custom Applications
McElhanney Consulting Services
Vancouver Office
(604) 683-8521 ext.278



More information about the MapServer-users mailing list