[mapserver-users] Wrong Scaledenom-Interpretation on GetLegendGraphic-Request

teeschke daniel.teske at web.de
Mon Jan 26 06:18:13 EST 2009


dear Mapserver..

a Layer that has a MaxScaleDenom of 200.001 becomes an empty LegendGraphic
with SCALE=200000

http://localhost/cgi-bin/mapserv.exe?map=C:/Projekte/legend/mapfile.map&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.1.1&FORMAT=image/gif&LAYER=tw_messstellen&SCALE=200000

The LegendGraphic is rendered correctly with SCALE < 199668 like 

http://localhost/cgi-bin/mapserv.exe?map=C:/Projekte/legend/mapfile.map&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.1.1&FORMAT=image/gif&LAYER=tw_messstellen&SCALE=199667

My Layer is defined as following:

LAYER
  NAME 'myLayer'
  STATUS ON
  TYPE POINT
  DATA "shapes/myShape"
  PROJECTION
    "init=epsg:31466"
   END
  TEMPLATE 'template.html'
  DUMP TRUE
  DEBUG 5
  METADATA
    "ows_title" "myLayer Title"
    "ows_extent" "2454609 5423025 2709939 5650998"
    "wms_feature_info_mime_type" "text/html"
    "wms_server_version" "1.1.1"
    "wms_format" "image/png"
    "wms_srs" "epsg:31466"
    "wms_exceptions_format" "application/vnd.ogc.se_xml"
    "gml_featureid" "ID"
    "gml_include_items" "NAME"
    "gml_NAME_alias" "Name"
  END #METADATA
  MINSCALEDENOM 0
  MAXSCALEDENOM 200001
  CLASS
    NAME ' '
    MINSCALEDENOM 0
  	MAXSCALEDENOM 200001
    STYLE
      COLOR 128 171 255
      OUTLINECOLOR 0 0 255
      SYMBOL 'circle'
      SIZE 13
    END #STYLE
  END #CLASS
END #LAYER

Thank a lot for solving this problem and best regards..
..Daniel

-- 
View this message in context: http://n2.nabble.com/Wrong-Scaledenom-Interpretation-on-GetLegendGraphic-Request-tp2217378p2217378.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the mapserver-users mailing list