Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#2983 closed defect (fixed)

Getlegendgraphic with sizeunit set does not work

Reported by: assefa Owned by: assefa
Priority: normal Milestone: 5.4.1 release
Component: WMS Server Version: unspecified
Severity: normal Keywords: wms legend sizeunit
Cc: sholl

Description

Reported on the list by Jacolin Yves <yjacolin@…>

I ma using an OGC WMS webservice to get my legend with a GetLegendGraphic request. For one layer I am using SIZEUNITS parameter set to "meters". In this case, my legend icon does not appears

Change History (4)

comment:1 by assefa, 15 years ago

Owner: changed from mapserverbugs to assefa

committed in main trunk r8930

Will commit the fix in the 5.4 after the release tomorrow.

comment:2 by assefa, 15 years ago

Resolution: fixed
Status: newclosed

committed in 5.4.x branch (r8959)

comment:3 by tenglich, 14 years ago

Hello,

I still get this problem working with Mapserver Version 5.7 which I have taken from FWTools 2.4.7 for Windows.

I assume the problem might be that the calculated width of the line might be 0.

Here is a snippet of the mapfile which shows the layer which causes the problems:

LAYER

   NAME           "mylayer"
   STATUS          ON
   TYPE            LINE
   TEMPLATE       "mytemplate.html"
   HEADER         "myheader.html"
   FOOTER         "myfooter.html"
   MINSCALEDENOM   0        
   MAXSCALEDENOM   165000     
   TOLERANCE       20
   TOLERANCEUNITS  METERS
   SIZEUNITS       METERS

   METADATA
      WMS_TITLE                  "mytitle"
      WMS_SRS                    "epsg:31467"
      WMS_FEATURE_INFO_MIME_TYPE "text/html"
      WMS_EXTENT                 "3457312.92 5753546.26 3467917 5764666.5"
   END

   PROJECTION
      "init=epsg:31467"
   END
   
   DATA "myshape.shp"
  
   CLASSITEM "objectid"

   CLASS
      NAME       "myclass"
      EXPRESSION /./
      STYLE
        SYMBOL 'circle'
        COLOR   144 50 207
        SIZE    7
      END
   END
   
END

Has anyone an idea how to solve this problem?

Regards Tim

comment:4 by sholl, 14 years ago

Cc: sholl added
Note: See TracTickets for help on using tickets.