[Mapserver-users] blank images from mapserv cgi, not php/mapscript, shp2img, etc.

Jerritt Collord collord at linuxfund.org
Mon Apr 14 20:39:05 EDT 2003


This particular droplet of knowledge did manage to wet my forehead, with
a little off-list help.

On further reading, it's clear, and it *almost* makes sense in the
Mapserver vs. Mapscript case. What I don't understand is when shp2png
which accepts explicitly layers to render with -l doesn't behave in the
same way as the CGI.

Thank you for the repsonse and thank you mapserver community for quite
fine software.

Jerritt


On Mon, 14 Apr 2003 10:47:17 +0200
"Jan Hartmann" <jhart at frw.uva.nl> wrote:

> Jerrit,
> 
> You have to set STATUS DEFAULT. This is different in MapServer CGI and
> MapScript: with CGI a layer is shown by default only when STATUS is 
> DEFAULT layers with STATUS ON are visible only when specified in the 
> URL. In MapScript layers with STATUS ON are visible by default. I
> don't know why this is so; practically everyone (including myself) has
> stumbled over that one.
> 
> There is an extensive list of postings on this matter: search for
> STATUS DEFAULT on the user's list. Of course, when you had known that
> you should look for STATUS DEFAULT, you would already have known the
> answer :-) . That's always the problem with searching a mailing list.
> 
> Jan
> 
> Jerritt Collord wrote:
> > For the life of me (yes, after searching archives, etc.) I can't get
> > the mapserv CGI to produce anything but blank PNGs... though I can
> > set IMAGECOLOR and get a colored blank PNG.
> > 
> > PHP/mapscript with similar mapfiles and the command line shp2img and
> > shp2pdf can produce correct PNGs.
> > 
> > Both 3.6.5 and 3.7 versions attempted. Both with html TEMPLATE and
> > directly with mode=map in the GET. Logging, when enabled, indicates
> > "normal execution".
> > 
> > Thanks,
> > 
> > Jerritt Collord
> > 
> > ------
> > 
> > NAME SHIZZLE
> > SIZE 400 400
> > STATUS ON
> > SYMBOLSET symbols.sym
> > EXTENT -5000000 -4000000 3000000 10000000
> > UNITS METERS
> > SHAPEPATH "/usr/lib/cgi-bin/maps"
> > WEB
> > IMAGEPATH "/var/www/tmp/"
> > IMAGEURL "/tmp/"
> > END
> > LAYER
> > NAME europa_shapes
> > TYPE POLYGON
> > STATUS ON
> > DATA europa
> >         CLASS
> >                 COLOR 110 50 100
> >                 OUTLINECOLOR 200 200 200
> >         END
> > END
> > END
> > END
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > 
> Jan Hartmann
> Department of Geography
> University of Amsterdam
> jhart at frw.uva.nl
> 
> _______________________________________________
> 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