Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4071 closed defect (fixed)

ANCHORPOINT is not respected when styling lines using point symbols

Reported by: havatv Owned by: tbonfort
Priority: normal Milestone: 6.2 release
Component: Renderer API Version: svn-trunk (development)
Severity: normal Keywords: anchorpoint, gap, symbol, line
Cc: havatv

Description

ANCHORPOINT should be respected when placing point symbols along lines (placing point symbols along lines is achieved by specifying the SYMBOL to be used and the GAP between the centers of the symbols).

Here is a complete (standalone) map file that demonstrates the problem (if ANCHORPOINT had been respected, the line should have had tags at one side, but instead the tags are placed with their center point at the line).

MAP
  SIZE 570 390
  IMAGETYPE png
  EXTENT 0 0 95 65
  UNITS meters
  IMAGECOLOR 225 225 225
  SYMBOL
    NAME "vertline"
    TYPE "vector"
    FILLED false
    POINTS
      0 0
      0 10
    END # points
    ANCHORPOINT 0.5 0
  END # symbol

  LAYER  # Line - vector symbol overlay
    STATUS DEFAULT
    TYPE LINE
    FEATURE
      POINTS
        50 15
        70 20
        90 20
        80 15
      END # Points
    END # Feature
    CLASS
      STYLE
        WIDTH 4
        COLOR 0 0 0
      END # style
      STYLE
        SYMBOL "vertline"
        COLOR 0 0 0
        SIZE 20
        WIDTH 4
        ANGLE 30
        GAP -45
      END # style
    END # class
  END # layer
END # map

Change History (2)

comment:1 by tbonfort, 12 years ago

Resolution: fixed
Status: newclosed

fix committed in r12733.

Havard, I have not tested the fix on anything else than your testcase, so please reopen if there are issues on other symbol types.

comment:2 by havatv, 12 years ago

With you fix applied, all my test cases work. Excellent!

Note: See TracTickets for help on using tickets.