Demo problems

Stephen Lime steve.lime at dnr.state.mn.us
Thu Nov 30 16:49:23 EST 2000


Ist question: your mapfile says to create a 400x300 map yet the template is expecting
600x600. Edit the <input type="image"... element and change the values for the
imgxy hidden variable to "199.5 149.5".

2nd question: must be a problem in your definitions. You should be able to do arial in
both places without a problem.

3rd question: see the 1st question 

Steve

Stephen Lime
Internet Applications Analyst

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

>>> Tsering Wangyal Shawa <shawatw at Princeton.EDU> 11/30/00 03:30PM >>>
MapServer friends:

I am pretty new to MapServer and trying to understand how everything works
in mapserver. Recently, I change some stuffs in a demo version and put new
data. When I run this demo version, my map is not centered properly. What
could be the reason? Is this something to do with projection problem?
Although all of my maps are in decimal degrees.

Another question: I like a font created in legend but I can not duplicate
the same font on the map even though I use same font. Anyone know the reason?

Third question I have is..a map generated by MapServer looks very bad. Does
any body knows why it is so? Is there any way to generate a better map?

My demo MapServer URL http://gisserver.princeton.edu/ms_demo/demo_init.html 

My mapfile is:
# Start of map file
#
NAME DEMO
STATUS ON
FONTSET "c:\inetpub\wwwroot\ms_demo\fonts\fonts.list"
SIZE 400 300
SHADESET symbols/shade.sym
MARKERSET symbols/marker.sym
LINESET symbols/line.sym
EXTENT -74.965063 40.105963 -74.457872 40.455099
UNITS DD
SHAPEPATH "c:\inetpub\wwwroot\ms_demo\data"
IMAGECOLOR 255 255 255

# LABELOVERLAP FALSE

#
# Start of web interface definition
#
WEB
  HEADER demo_header.html
  TEMPLATE demo.html
  MINSCALE 1000
  MAXSCALE 1550000
  IMAGEPATH "c:\inetpub\wwwroot\ms_demo\"
  IMAGEURL "/ms_demo/"
END

#
# Start of reference map
#
REFERENCE
  IMAGE graphics/mercer01.gif
  EXTENT -74.965063 40.105963 -74.457872 40.455099
  STATUS ON
  SIZE 80 55
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
END

#
# Start of legend
#
 LEGEND
      STATUS ON
      LABEL
       TYPE TRUETYPE
        ANTIALIAS
        FONT arial
        COLOR 0 0 0
        OUTLINECOLOR 220 220 220
        SIZE 8
        ANGLE AUTO
         END
    END

# Start of scalebar
#
SCALEBAR
  IMAGECOLOR 255 255 255
  LABEL
   TYPE BITMAP
    COLOR 0 0 0	
    END
  SIZE 350 4
  COLOR 255 255 255
  BACKGROUNDCOLOR 0 0 0
  OUTLINECOLOR 0 0 0
  UNITS MILES
  INTERVALS 4
  STATUS ON
END

#
# Start of layer definitions
#

LAYER
  NAME county
  TYPE POLYGON
  STATUS DEFAULT
  DATA county
  CLASS
    SYMBOL 0
    OUTLINECOLOR 0 0 0
    COLOR 255 255 255
  END
END

Many thanks.
-Wangyal





More information about the mapserver-users mailing list