[mapserver-users] PROJ4 and Layers

Stephen Lime steve.lime at dnr.state.mn.us
Wed Apr 25 10:25:17 EDT 2001


Your units setting is wrong so scales are screwed up and since the city layers use
MINSCALE/MAXSCALE who knows what you're going to get. Change the units
from dd to whatever is appropriate for mercator and it should work.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Thomas Pich" <pich at spektra.de> 04/25/01 08:30AM >>>
Hello,

does anybody know why the "city"-layers in the follow mapfile will not
be included? The "country"-layer is visible. The city-layers only
without projection are displayed.

thanks

Thomas

-------------------------------------------------

NAME DEMO
STATUS ON
SIZE 800 800
FONTSET ../fonts/fonts.list
SHADESET ../symbols/shade.sym
MARKERSET ../symbols/marker.sym
LINESET ../symbols/line.sym
EXTENT 5.0 47.0 15.0 55.0
UNITS DD
SHAPEPATH "../data/eur"
IMAGECOLOR 130 200 234

PROJECTION
  "proj=merc"
  "ellps=GRS80"
END

#XXX  Country  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
LAYER
  NAME country
  TYPE POLYGON
  STATUS DEFAULT
  DATA eurnuts0
  CLASS
    COLOR 255 255 220  
    OUTLINECOLOR 0 0 0
  END
  PROJECTION
    geographic
  END
END

#XXX City XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#XXX Scale: 5.000.000 bis 15.000.000 XXXXXXXXXX
LAYER
  NAME city
  TYPE POINT
  MAXSCALE 15000000
  MINSCALE 5000000
  STATUS ON
  DATA eur_city
  CLASS
    COLOR 153 153 153
    SYMBOL "city_shield"
  END
  PROJECTION
    geographic
  END
END

#XXX Scale: 200.000 bis 5.000.000 XXXXXXXXXXXXX
LAYER
  NAME city
  TYPE POINT
  MAXSCALE 5000000
  MINSCALE 200000
  STATUS ON
  DATA eur_city
  CLASS
    COLOR 153 153 153
    SYMBOL "city_shield2"
  END
  PROJECTION
    geographic
  END
END

#XXX Scale: 200.000 bis 15.000.000 XXXXXXXXXXXX
LAYER
  NAME city
  TYPE ANNOTATION
  MAXSCALE 15000000
  MINSCALE 200000
  STATUS ON
  DATA eur_city
  LABELITEM "Name"
  CLASS
    LABEL
      COLOR 0 0 0
      OUTLINECOLOR 255 255 0
      POSITION LC
      FONT arial
      TYPE TRUETYPE
      SIZE 10
      PARTIALS FALSE
      BUFFER 2
    END
  END
  PROJECTION
    geographic
  END
END




More information about the mapserver-users mailing list