Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#4120 closed defect (fixed)

Problem with STYLE GAP for short curved lines

Reported by: havatv Owned by: tbonfort
Priority: normal Milestone:
Component: Renderer API Version: 6.0
Severity: normal Keywords: gap, symbol, rendering
Cc: havatv

Description

Styling of lines with symbols using GAP.

When gap lengths are longer than the length of the line, symbols seem to be rendered for each line segment from the middle of the line to the end of the line. 6.0 behaves a bit different from trunk.

The problem was reported by Jackey Cheung on the mapserver-users list Nov 10, 2011; 6:35am.

The following map file will reproduce the problem (see the attached png output files):

MAP
  SIZE 100 100
  IMAGETYPE png
  EXTENT 114.18435 22.3058 114.184464 22.30597
  UNITS dd
  FONTSET /usr/share/fonts/truetype/font.list
  IMAGECOLOR 225 225 225

  SYMBOL
    NAME "circlef"
    TYPE ellipse
    FILLED true
    POINTS
      1 1
    END # POINTS
  END # SYMBOL

  SYMBOL
    NAME "arrow_right_shift"
    TYPE VECTOR
    POINTS
      30 6
      52 6
      50 0
      60 7
      50 14
      52 8
      30 8
      30 6
    END
    FILLED TRUE
  END

###########################################################

  LAYER  # testline - arrows
    STATUS DEFAULT
    TYPE LINE
    FEATURE
      POINTS
        114.184397000000004 22.305821
        114.184371999999996 22.305847
        114.184365999999997 22.305883
        114.184376999999998 22.305914
        114.184404999999998 22.305927
        114.184432999999999 22.305932
        114.184462999999994 22.305922
      END
    END
    CLASS
      STYLE
        COLOR 255 255 255
        WIDTH 6
      END # STYLE
    END # CLASS
  END # LAYER

  LAYER  # testline - arrows
    STATUS DEFAULT
    TYPE LINE
    FEATURE
      POINTS
        114.184397000000004 22.305821
        114.184371999999996 22.305847
        114.184365999999997 22.305883
        114.184376999999998 22.305914
        114.184404999999998 22.305927
        114.184432999999999 22.305932
        114.184462999999994 22.305922
      END
    END
    CLASS
      STYLE
        ANGLE auto
        SYMBOL "arrow_right_shift"
        COLOR 255 0 255
        SIZE 6
        GAP -400
      END # STYLE
    END # CLASS
  END # LAYER

END # MAP

Attachments (2)

gaptestticket6.png (1.6 KB ) - added by havatv 13 years ago.
gaptestticket62.png (1.4 KB ) - added by havatv 13 years ago.

Download all attachments as: .zip

Change History (4)

by havatv, 13 years ago

Attachment: gaptestticket6.png added

by havatv, 13 years ago

Attachment: gaptestticket62.png added

comment:1 by tbonfort, 13 years ago

Resolution: fixed
Status: newclosed

fixed in r12883

test added in r12884

comment:2 by elzouavo, 12 years ago

Why this issue is not applied on the new 6.0.2 ? Thanks

Note: See TracTickets for help on using tickets.