Mapserver crashes while antialiasing

Umberto Nicoletti umberto.nicoletti at GMAIL.COM
Tue Feb 14 01:17:48 PST 2006


perhaps you are using php as a shared module?

Note that php as a shared module is not supported and will quite
likely cause crashes like those you are experiencing.

Reagrds,
Umberto


On 2/14/06, Torsten Weber <TWeber at traffic-consult.de> wrote:
> Hi all,
>
> I'm using mapserver 4.6.2 and 4.8.1 on SuSE 9.2 and 10.0 with php_mapscript.
> I've compiled both mapservers on both machines for using oracle to get the
> spatial information. If I use 8Bit coloring all things work fine (but no
> antialiasing). Within RGB mode the server gets segmentation faults. But
> sometimes it works one or two times (don't know why).
>
> Versions:
>  mapserver: 4.6.2 + 4.8.1
>  SuSE Linux: 9.2 + 10.0
>  php:   4.3.8 + 4.4.0
>  oracle instantclient 10g
>  apache: 2.0.50 + 2.0.54
>  gd: 2.0.28 + 2.0.32
>
> I'm using antialiasing on line and polygon Layers only. But there are raster
> layers also.
>
> Here is an example for both antialiased layers:
>
> Polygon Layer using data from shape files.
>   LAYER
>     NAME "Gemeinden"
>     PROJECTION
>      "init=epsg:31467"
>     END
>     METADATA
>       "DESCRIPTION" "Gemeinden"
>       "RESULT_FIELDS"    "Name"
>       "RESULT_HEADERS"    "Name"
>                         "SELECTABLE" "false"
>     END
>     DATA "/srv/www/htdocs/geodata/Admin_Grenzen/Gemeinden"
>     TYPE POLYGON
>     TRANSPARENCY 50
>     CLASS
>       NAME "Gemeinden"
>       TEMPLATE "void"
>       STYLE
>         COLOR 180 180 0
>         OUTLINECOLOR 90 90 0
>         SIZE 3
>         ANTIALIAS TRUE
>       END
>     END
>   END # Layer
>
> Line Layer using oracle spatial data.
>         LAYER
>                 NAME "kanten"
>                 PROJECTION
>                         "init=epsg:31467"
>                 END
>                 DEBUG ON
>                 CONNECTION "user/pass at oradb"
>                 CONNECTIONTYPE oraclespatial
>                 DATA "GEOLOC FROM (SELECT GEOLOC, ID, BEZEICHNUNG, ART, TYP FROM
> STRECKEVIEW) USING UNIQUE ID"
>                 TYPE LINE
>                 SYMBOLSCALE 20000.0
>                 METADATA
>                         "DESCRIPTION"    "Straßen"
>                         "RESULT_FIELDS"    "ID,BEZEICHNUNG,ART"
>                         "RESULT_HEADERS"    "Nummer,Name,Typ"
>                         "SELECTABLE" "true"
>                         "LAYERDESC"             "Straßen"
>                 END     # Metadata
>                 CLASS
>                         NAME "Autobahnen"
>                         TEMPLATE "void"
>                         EXPRESSION ([TYP]=21)
>                         STYLE
>                                 SYMBOL "lstandard"
>                                 COLOR 0 0 200
>                                 SIZE 7
>                                 ANTIALIAS TRUE
>                                 MINSIZE 7
>                                 MAXSIZE 18
>                         END
>                         STYLE
>                                 SYMBOL "lstandard"
>                                 COLOR 255 255 255
>                                 SIZE 4
>                                 ANTIALIAS TRUE
>                                 MINSIZE 4
>                                 MAXSIZE 12
>                         END
>                         STYLE
>                                 SYMBOL "lstandard"
>                                 COLOR 0 0 200
>                                 SIZE 2
>                                 MINSIZE 2
>                                 MAXSIZE 5
>                                 ANTIALIAS TRUE
>                         END
>                         LABEL
>                                 ANGLE AUTO
>                                 COLOR 256 0 0
>                                 POSITION AUTO
>                                 SIZE LARGE
>                                 TYPE truetype
>                                 FONT "verdana"
>                         END #LABEL
>                 END # Class
>                 CLASS
>                         NAME "Bundesstraßen"
>                         TEMPLATE "void"
>                         EXPRESSION ([TYP]=22)
>                         #MAXSCALE 250000.0
>                         STYLE
>                                 SYMBOL "lstandard"
>                                 COLOR 50 50 50
>                                 SIZE 5
>                                 MINSIZE 5
>                                 MAXSIZE 15
>                                 ANTIALIAS TRUE
>                         END
>                         STYLE
>                                 SYMBOL "lstandard"
>                                 COLOR 255 255 0
>                                 SIZE 2
>                                 MINSIZE 2
>                                 MAXSIZE 10
>                                 ANTIALIAS TRUE
>                         END
>                 END # Class
>                 CLASS
>                         NAME "Landesstraßen"
>                         TEMPLATE "void"
>                         EXPRESSION ([TYP]=23)
>                         MAXSCALE 250000.0
>                         STYLE
>                                 SYMBOL "lstandard"
>                                 COLOR 50 50 50
>                                 SIZE 5
>                                 MINSIZE 5
>                                 MAXSIZE 15
>                                 ANTIALIAS TRUE
>                         END
>                         STYLE
>                                 SYMBOL "lstandard"
>                                 COLOR 250 250 250
>                                 SIZE 2
>                                 MINSIZE 2
>                                 MAXSIZE 10
>                                 ANTIALIAS TRUE
>                         END
>                 END # Class
>                 CLASS
>                         NAME "Kreisstraßen"
>                         TEMPLATE "void"
>                         EXPRESSION ([TYP]=24)
>                         MAXSCALE 75000.0
>                         STYLE
>                                 SYMBOL "lstandard"
>                                 COLOR 50 50 50
>                                 SIZE 3
>                                 MINSIZE 3
>                                 MAXSIZE 10
>                                 ANTIALIAS TRUE
>                         END
>                         STYLE
>                                 SYMBOL "lstandard"
>                                 COLOR 250 250 250
>                                 SIZE 1
>                                 MINSIZE 1
>                                 MAXSIZE 6
>                                 ANTIALIAS TRUE
>                         END
>                 END # Class
>                 CLASS
>                         NAME "Sonstige"
>                         TEMPLATE "void"
>                         EXPRESSION ([TYP]<21 OR [TYP]>24)
>                         MAXSCALE 50000.0
>                         STYLE
>                                 SYMBOL "lstandard"
>                                 COLOR 100 100 100
>                                 SIZE 1
>                                 #ANTIALIAS
>                                 MINSIZE 1
>                                 MAXSIZE 10
>                                 ANTIALIAS TRUE
>                         END
>                 END # Class
>         END # Layer
>
> Used outputformat:
>         OUTPUTFORMAT
>           NAME pngrgb
>           DRIVER "GD/PNG"
>           MIMETYPE "image/png"
>           IMAGEMODE RGB
>           FORMATOPTION  INTERLACE=OFF
>           TRANSPARENT OFF
>         END
> It doesn't matter if I use GIF or jpeg instead.
>
> Is anyone out there, who could help me?
>
> Many thanks and best regards
>
> Torsten
>



More information about the MapServer-users mailing list