Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have WMS polygonal layer and want to draw polygon's border with the following style:

enter image description here

My symbol's description:

SYMBOL 
  NAME "double_line" 
  TYPE vector 
  POINTS 
    0 0 1 0 -99 -99 0 1 1 1
  END 
END

CLASS section in mapfile:

    CLASS
    STYLE
        OUTLINECOLOR 255 0 0
        SYMBOL 'double_line'
        SIZE 3
        WIDTH 1
    END

But in this case you can see self intersection in polygon's edge:

enter image description here

What is the righ way to get correct border style?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I've got solution from mapserver maillist:

STYLE
  OUTLINECOLOR 255 0 0
  GEOMTRANSFORM (BUFFER([SHAPE], -1))
END
STYLE
  OUTLINECOLOR 255 0 0
  GEOMTRANSFORM (BUFFER([SHAPE], 1))
END
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.