[Tilecache] tilecache problem with LABELMAXSCALEDENOM

mojtabajml jamali.mojtaba at gmail.com
Sat Jan 29 05:05:42 EST 2011


I use tilecahce and mapserver and I have problem to showing labels. In
mapfile when I use LABELMAXSCALEDENOM option the label layers not show in
map. when I delete tis option the layer render without any problem.

my tilecache setting is:
[mun]                                  
type=MapServerLayer
mapfile=C:/label.map
layers=m-line-ll-utf8,m3-line-ll,m3-text-alley-utf8,m3-text-main-utf8
levels=18
maxResolution=0.05574403515625001
bbox=39.378851,24.702109,67.919797,40.140041
srs=EPSG:4326
extension=png 

/////////////
and map file layer config is:
 LAYER
    NAME 'm3-text-main-utf8'
    TYPE POINT
	LABELMAXSCALEDENOM 1
    DUMP true
    TEMPLATE fooOnlyForWMSGetFeatureInfo
	EXTENT 39.378851 24.702109 67.919797 40.140041
    DATA 'C:/map/m3-text-main-utf8.shp'
    METADATA
      'ows_title' 'm3-text-main-utf8'
    END
    STATUS OFF
    TRANSPARENCY 100
    PROJECTION
    'proj=longlat'
    'ellps=WGS84'
    'datum=WGS84'
    'no_defs'
    END
    LABELITEM 'STRING'
    CLASS
       NAME 'm3-text-main-utf8' 
       STYLE
         SYMBOL "circle" 
         SIZE 2.35 
         OUTLINECOLOR 0 0 0
         COLOR 59 114 249
       END
     LABEL 
      FONT tahoma
      TYPE truetype
      SIZE [TEXT_SIZE]
      COLOR 0 110 0
      ANGLE [TEXT_ANGLE]
	  ENCODING 'UTF-8'
	  MINSIZE 10
	  COLOR 218 5 2
      SHADOWCOLOR 21 218 218
      SHADOWSIZE 1 1
      POSITION cc
      FORCE true
     END 
    END
  END

////////////////
this layer show correctly when I use in mapserver directly but do not show
anything when using in tilecache. 
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/tilecache-problem-with-LABELMAXSCALEDENOM-tp5972374p5972374.html
Sent from the TileCache mailing list archive at Nabble.com.


More information about the Tilecache mailing list