label___scale confusion, or, Can I find out the scale?

Rahkonen Jukka Jukka.Rahkonen at MMMTIKE.FI
Tue May 23 04:25:33 EDT 2006


Hi,
 
Being not a label specialist, either, here is one whole layer that worked just fine for me when I made my trial with LABELMAXSCALE. 
 
Regards,
 
-Jukka Rahkonen-
 
 LAYER
    NAME "siat"
    STATUS ON
    DATA "AIvalvonta.qix"
    TYPE POINT
    CLASSITEM "ELAINLAJI"
    UNITS METERS
    SIZEUNITS METERS
    SYMBOLSCALE 5
    LABELITEM "TKTUNNUS"
    LABELMAXSCALE 100000
    TOLERANCE 1
    TOLERANCEUNITS PIXELS
    FILTER ([ELAINLAJI] =03)
    FILTERITEM "ELAINLAJI"
    MAXFEATURES 10000
    TEMPLATE "../../../../../../..//ms101/data/query.html"
    METADATA
      "wms_title"    "siat"
    END
    PROJECTION
    END
    CLASS
      NAME "siat"
      LABEL
        TYPE BITMAP
        SIZE MEDIUM
        POSITION AUTO
        COLOR 150 0 200
      END
      STYLE
        SYMBOL 7
        COLOR 150 0 200
        OUTLINECOLOR 0 0 0
        MINSIZE 10
        MAXSIZE 10
      END
    END
  END 
 

________________________________

Lähettäjä: UMN MapServer Users List puolesta: Ben Madin
Lähetetty: ti 23.5.2006 4:38
Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU
Aihe: [UMN_MAPSERVER-USERS] label___scale confusion, or, Can I find out the scale?



Hopefully a quick one, but I am struggling with getting labels to 
display when zoomed in.

the mapscript seems to be working OK, as the output mapfile looks OK, 
but the labels choose to either display or not throughout the 
resulting map whether I zoom in or out. Ignore the actual values as I 
have tried quite a range in both orders!

     LABELITEM "ADMIN1"
     LABELMAXSCALE 5e+006
     LABELMINSCALE 10
       METADATA
       END
     NAME "default_layer"
     PROJECTION
       "proj=latlong"
       "ellps=WGS84"
     END

My questions are :

1.      can I find the actual value of the "scale" and display it on the 
screen (realising that it has no value to the user) (ideally in php-
mapscript)

2.      how does reprojecting the map affect the scale, and if we 
reproject, for which projection do we have to specify when the labels 
are added.

(to expand on 2, the map is ulitmately reprojected to orthographic)

cheers

Ben



--

Ben Madin

t/f: 08 9192 5535
m: 0448 887 220
ben at remoteinformation.com.au



More information about the mapserver-users mailing list