Opened 19 years ago

Closed 13 years ago

#1356 closed defect (fixed)

Bug (?) in layer type circle

Reported by: mapserver@… Owned by: sdlime
Priority: high Milestone: 6.0 release
Component: MapServer C Library Version: 4.5
Severity: normal Keywords:
Cc:

Description (last modified by tbonfort)

Maybe i found a bug in the functionality of the layer type 'circle'.
Possibly it is not a real bug and i only have to slighty modify my map-file.
I attached a map-file with a test case which shows my problem.
When i execute the mapfile i expect to get a circle whose diameter is determined
by the two vertices of my line (bounding box for the circle).
What i get is as single point (1x1 pixel) in the center of the two
points. I also follwed Barts suggestion and tried to use pixel coordinates in
the inline feature block (see comment out lines in the mapfile).
Sadly this did not change the behaviour.
When i change the layer type to 'line' the line appears as expected.

Test Case:

MAP
  NAME Germany
  EXTENT 5.86628568 47.27360151 15.0486318 55.05826185
  #EXTENT 0 0 300 300
  SIZE 300 300
  UNITS DD
  DEBUG ON
  WEB
    IMAGEURL "/~nicol/mapserver/phpmapserver/tmp/"
    IMAGEPATH "/home/nicol/public_html/mapserver/phpmapserver/tmp/"
  END
  LAYER
    NAME "testlayer"
    STATUS DEFAULT
    DEBUG ON
    TYPE circle
    #TYPE line
    FEATURE
      POINTS
        8.2588482 48.87774279
        8.2588482 49.1577759
        #100 200
        #100 250
      END
      #TEXT "Buffer"
    END
    TEMPLATE "dummy.html"
    CLASS
      NAME test
      COLOR 0 0 255
      OUTLINECOLOR 0 0 0
      LABEL
        TYPE bitmap
        SIZE small
      END
    END
  END
END

Change History (1)

comment:1 by tbonfort, 13 years ago

Description: modified (diff)
Milestone: 6.0 release
Resolution: fixed
Status: newclosed

fixed in r11601

Note: See TracTickets for help on using tickets.