[Mapserver-users] problems with symbols on lines

Karsten Hoffmann karhof at web.de
Mon May 31 03:23:48 PDT 2004


This is a MIME encoded message.
--STEFAN40bb07b775e6
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hello,

I'm experimenting with symbols and I think that there are some problems with drawing symbols on lines.
I've tried to draw simple vector-symbols on lines. There were no problemes with closed vector-symbols but when I tried to draw non-closed vector symbols on lines the mapserver closed and filled them.
Is this perhaps an error in the source code? I'm using MapServer 4.0 and 4.1 on Windows 2000 and XP.
To better unterstand me I send you a small image of the drawn symbols beside a line.

The symbol-definition of a simple cross is the following:

SYMBOL
  NAME "kreuz1"
  TYPE VECTOR
  POINTS
    0.5 0
    0.5 1
    -99 -99
    0 0.5
    1 0.5
  END
  STYLE
    1 15 1 15
  END
END

The Layer in the Mapfile:

LAYER
  NAME Linie2
  TYPE LINE
  STATUS DEFAULT
  FEATURE
    POINTS
      2 80
      95 80
    END
  END
  CLASS
  STYLE
    SYMBOL "punkt" # this is just a filled circle for the basic line
    SIZE 1
    COLOR 0 0 0    
  END
  STYLE
    SYMBOL "kreuz1"
    SIZE 12
    COLOR 0 0 0
    OFFSET 1 -12
  END
  END
END

Why does Mapserver close and fill the cross-symbol? The Mapserver draws the same symbol correctly when I'm using it on a point.

I can also use TrueTypeFonts as symbols on lines but I can't set the OFFSET-Parameters to draw the symbols beside the line. Mapserver draws always the TrueType-symbols on the line.
I could use a PIXMAP-symbol for the cross. I think that this is also possible with the OFFSET-Parameter.

Thank you for any help,

Karsten Hoffmann

_____________________________________________________________________
Endlich SMS mit Bildern versenden! Das Bild selbst ist dabei gratis,
Sie bezahlen lediglich den Versand. http://freemail.web.de/?mc=021195
--STEFAN40bb07b775e6
Content-Type: image/x-png; name="symbol_line.png"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="symbol_line.png"

iVBORw0KGgoAAAANSUhEUgAAAkcAAAA1CAIAAADEVNhDAAAABGdBTUEAALGOfPtRkwAAACBj
SFJNAA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BgFo2AUDB8AEECj
tdooGAWjYBSMguEDAAJotFYbBaNgFIyCUTB8AEAAjdZqo2AUjIJRMAqGDwAIoNFabRSMglEw
CkbB8AEAATRaq42CUTAKRsEoGD4AIIBGa7VRMApGwSgYBcMHAATQaK02CkbBKBgFo2D4AIAA
Gq3VRsEoGAWjYBQMHwAQQKO12igYBaNgFIyC4QMAAmi0VhsFo2AUjIJRMHwAQACN1mqjYBSM
glEwCoYPAAig0VptFIyCUTAKRsHwAQABNFqrjYJRMApGwSgYPgAgwAChnINWzz/pGAAAAABJ
RU5ErkJggg==

--STEFAN40bb07b775e6--





More information about the MapServer-users mailing list