[mapserver-users] OK, another blank gif-file...

Stephen Lime steve.lime at dnr.state.mn.us
Mon May 14 17:14:10 EDT 2001


Remeber that layers are OFF by default with the CGI program unless they are defined
as "STATUS DEFAULT". The shp2gif utility reads the map file "as-is". So, since none
of you layers are ON for the CGI version you get a white image. To fix? Set their status
to DEFAULT or explicitly turn them on in the URL (&layer=bebauung1&layer=ortho-1).

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Robert Schmitz-Hübsch <robert.schmitz-huebsch at web.de> 05/12/01 07:28AM >>>
I setup a .map-file that creates a gif-file containing an orthophoto and a
simple shapefile using "shp2img".
This works just fine, but when I try to invoke the exact same .map-file with
the "mapserv"-program using

http://130.75.85.56/cgi-bin/mapserv?map=/home/httpd/cgi-bin/test2.map&templa 
te=/home/httpd/html/test1.htm&imgext=3480000.000+5399000.000+3481557.000+540
0740.000

...for example, the gif-files stay white!!.
There cannot be anything wrong with directories or missing files, since the
.map-file is already tested on that same machine.
This is also true for the map-EXTENT.

I also tried to install binaries for GD, libtiff and libjpeg using the
"rpm"-command on redhat 6.2 for SPARC, but it always said everything was in
place just fine already, since I had compiled these before on that machine.

I also tried to save the orthophoto as unpacked gif, greyscale, of course,
but at least the shapefile should show up, right?
It even works with the windows-"shp2img"!!


-> Here is the .map-file:


NAME TEST2-
  EXTENT 3480000.0 5399000.0 3481557.0 5400740.0
  SIZE 400 400
  SHAPEPATH "/home/arcims/Daten/shapes/"

#  PROJECTION
#  "proj=utm"
#  "ellps=GRS80"
#  "zone=15"
#  "north"
#  "no_defs"
#  END

WEB
  IMAGEPATH "/home/httpd/MAPS/"
  IMAGEURL "http://130.75.85.56/MAPS/"
  LOG "/home/httpd/cgi-bin/test2.log"
END

LAYER
    NAME ortho-0
    DATA "/home/arcims/Daten/orthos/ortho_a1_100cm_gk3_0_0_grey.tif"
    STATUS ON
    TYPE RASTER
END # end of layer object


 LAYER
    NAME "bebauung1"
    DATA beb_freudenst_1a_erw_gk3
    STATUS ON
    TYPE POLYGON
    CLASS
      COLOR 60 60 60
    END # CLASS OBJECT
END # end of layer object

END # end of mapfile



-> These are the last two log-entries:

Sat May 12 11:03:32 2001,28358,217.80.69.247,TEST2-,0,3479908.421053
5399000.000000 3481648.578947 5400740.000000,-1.
000000 -1.000000,,normal execution
Sat May 12 11:25:07 2001,28382,217.80.69.247,TEST2-,0,3479908.421053
5399000.000000 3481648.578947 5400740.000000,-1.
000000 -1.000000,,normal execution


Any ideas on this one?
What does the "0" after the map-name "TEST2-" mean?

Regards,
Robert




More information about the mapserver-users mailing list