[mapserver-users] No Map
Nathan Froseth
nfro at satshot.com
Thu Jun 28 10:06:55 PDT 2001
Hi all,
I'm working on Unix with the nightly build of mapserver. It's compiled
with tiff/geotiff support, php, proj4, apxs, and without ttf. So far,
I've been able to display the scalebar and the legend but no map. It
does work with the version 3.2 but I still must have some syntax problems.
Below is my map file, if there's any suggestions it'll help. Thanx :)
#
# Start of map file
#
NAME SATSHOT
STATUS ON
SIZE 400 400
EXTENT -256400 3537000 829700 4684000
SHAPEPATH "/home/www/agi/ecom/vectors"
IMAGECOLOR 255 255 255
TRANSPARENT OFF
WEB
HEADER /home/httpd/html/templates/query_header.html
FOOTER /home/httpd/html/templates/query_footer.html
TEMPLATE /home/httpd/html/dev/satshot.html
IMAGEPATH "/home/httpd/html/tmp/"
IMAGEURL "/tmp/"
EMPTY ".../templates/query_empty.html"
MINSCALE 1
MAXSCALE 40000000
END
LEGEND
IMAGECOLOR 255 255 255
KEYSIZE 30 12
KEYSPACING 5 5
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 0
END
STATUS ON
END
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END
SIZE 380 5
COLOR 255 255 255
BACKGROUNDCOLOR 0 0 0
OUTLINECOLOR 0 0 0
UNITS MILES
INTERVALS 5
STATUS ON
END
#
# Start of layer definitions
#
LAYER
NAME "images"
TYPE RASTER
STATUS OFF
DATA "us_extract_idx"
TILEINDEX us_extract_idx
OFFSITE 0
END
LAYER
NAME "scenebounds"
TYPE POLYLINE
STATUS OFF
DATA "/home/www/agi/ecom/vectors/us_extract_idx"
CLASS
SYMBOL 0
COLOR 0 0 255
NAME "Scene Boundaries"
TEMPLATE "/home/httpd/html/dev/feature_query1.html"
END
# PROJECTION
# GEOGRAPHIC
# END
END
LAYER
NAME "state"
TYPE POLYLINE
STATUS ON
MINSCALE 1000000
DATA "n_america"
CLASS
SYMBOL 1
COLOR 0 0 0
NAME "State"
TEMPLATE "/home/httpd/html/dev/feature_query1.html"
END
# QUERY
# TEMPLATE feature_query1.html
# END
END
LAYER
NAME scenes
TYPE POLYGON
# STATUS QUERYONLY //It doesn't seem to like QUERYONLY for some reason
STATUS OFF
HEADER scene_header.html
FOOTER scene_footer.html
DATA us_extract_idx
CLASS
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 0 0 0
END
# QUERY
# TEMPLATE scene_query.html
# END
END
# End of Mapfile
END
More information about the MapServer-users
mailing list