[Mapserver-users] PostGIS/Mapserv problem with type MULTIPOLYGON.

Paul Ramsey pramsey at refractions.net
Tue Sep 9 11:36:48 EDT 2003


The error in your log means that mapserv is just plain crashing, not 
running for you. So you need to figure out why it is crashing first. 
Does it run normally for normal shape layers? For a simple point-based 
postgis layer? If you delete all the polygons in your layer except one, 
does it work? If you run the shp2img program (which is just a 
commandline mapserver) do things run? Have you stripped your mapfile 
down to just a simple one layer file with nothing special?
Basically, you have to diagnose the crash and work back from there. It 
is possible you have a polygon in your layer which is capable of 
crashing mapserver. Or maybe there is something special wrong in your 
environment (an odd mix of library versions) which is causing the crash.

Paul

Thierry Lombardot wrote:

> Dear Mailling list,
> I get a problem with PostGIS/Mapserv:
> 
> If a geometry column of a table contains a type "MULTIPOLYGON", I can't
> draw it with mapserv. I tried the types: LINE or POLYGON within my map
> file, but the same error comes up in my apache error_log:
> 
> [Tue Sep  9 13:56:22 2003] [error] [client 127.0.0.1] Premature end of
> script headers: /srv/www/cgi-bin/mapserver/mapserver-4.0/mapserv
> 
> Do I have to convert multipolygons is separated polygons? Is there a
> PostGIS function to do that?
> I'm using mapserver 4.0 and postGIS 0.7.5
> Any suggestions?

-- 
       __
      /
      | Paul Ramsey
      | Refractions Research
      | Email: pramsey at refractions.net
      | Phone: (250) 885-0632
      \_




More information about the mapserver-users mailing list