Demo problems
Tsering Wangyal Shawa
shawatw at Princeton.EDU
Thu Nov 30 13:30:40 PST 2000
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