problems with line-symbolizers

Nuria González nataprivate at HOTMAIL.COM
Thu Dec 21 02:50:46 PST 2006


Hi all,

I have a problem with a line symbol. In my application I want to use the 
symbol "Strasse" of http://mapserver.gis.umn.edu/docs/howto/cartosymbols.

In my .map file I set:

SYMBOL
  NAME "cartoline_round"
  TYPE cartoline
  LINECAP round
  LINEJOIN miter
  LINEJOINMAXSIZE 3
END

LAYER
  NAME "vias"
  TYPE LINE
  STATUS OFF
  CONNECTION "user=postgres password=password dbname=dbname host=localhost 
port=5432"
  CONNECTIONTYPE postgis
  DATA "the_geom from vias"
  LABELITEM "convert(nombre, 'UNICODE', 'LATIN1')"

  TOLERANCEUNITS pixels
  TOLERANCE 7
  METADATA
      "DESCRIPTION" "Tramos viarios"
      "RESULT_FIELDS" "gid, nombre"
      "RESULT_HEADERS" "VER, NOMBRE"
      "RESULT_HYPERLINK" "gid||Ver Tramo Vía"
  END

LABELMAXSCALE 1500000

CLASS
    NAME "Tramos viarios"
    TEMPLATE "void"
    STYLE
      COLOR 0 0 0
      SYMBOL "cartoline_round"
      SIZE 6
      ANTIALIAS TRUE
    END
    STYLE
      COLOR 255 0 0
      SYMBOL "cartoline_round"
      SIZE 4
      ANTIALIAS TRUE
    END

    LABEL
        POSITION Auto
       	COLOR 128 64 0
	BUFFER 2
	ANTIALIAS true
        TYPE TRUETYPE
        FONT arialbd
        SIZE 10
        PARTIALS FALSE
        MINDISTANCE 300
    END
  END
END

I want to use the symbol "cartoline_round" with two colors, but if I use a 
color different to black I have an error: Premature end of script headers: 
php.exe.
Have you any idea about how to resolve this problem?

(I'm using PHP Version 4.3.11 and MapServer 4.6.1).

TIA.
Regards.

_________________________________________________________________
Acepta el reto MSN Premium: Protección para tus hijos en internet. 
Descárgalo y pruébalo 2 meses gratis. 
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_proteccioninfantil



More information about the MapServer-users mailing list