[mapserver-users] LABELITEM with TILEINDEX causes internal server error.

Daniel Morissette morissette at dmsolutions.ca
Tue Jun 4 17:49:11 EDT 2002


Ben Logan wrote:
> 
> I am trying to get labels to work with tiled shapefiles, and not
> having any luck.  In the mapfile below, if I uncomment the LABELITEM
> directive, I get an Internal Server Error and my server (Apache) error
> log shows "Premature end of script headers: /var/www/cgi-bin/mapserv"
> (the mapserv log doesn't generate an entry at all).  If I leave
> LABELITEM commented out, the counties display properly but without
> labels, of course.
> 
> Also, I can use a single county tile file (instead of TILEINDEX) and
> get the labels to work, so I know that "COUNTY" is a valid table
> attribute.
> 


This is the kind of error you get when your tiled files do not share
exactly the same set of attributes.  It is important to make sure that
all your tiled shapefiles have the same number of fields in their DBFs
and that the fields are in the same order.

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.



More information about the mapserver-users mailing list