[mapserver-users] MapFile[beginner]
Birgit Woods
birgit_woods@yahoo.com
Tue, 16 Jul 2002 13:13:19 -0700 (PDT)
--0-440520243-1026850399=:56895
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi, I have gotten the demo up and running, but I can't
generate my own map. I think the problem is somewhere
in my mapfile. The maps are not being generated in
the temporary directory for one thing. My units are in
decimal degrees and I have written in the extents. I
got the extents from ArcMap.
Also, my original map was an .mxd written in ArcMap.
Was it really necessary for me to change it to a .gif?
Because I first had to convert it to a bitmap image
and then to a gif with photoshop. Seems like a lot of
extra work, and I'm not sure if the extents of the
image still qualify, having gone through different
conversions.
I have attached my mapfile. If someone could quickly
take a look at it, I'd really appreciate it.
Thanks, B.
__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
--0-440520243-1026850399=:56895
Content-Type: text/plain; name="Coastlines.map"
Content-Description: Coastlines.map
Content-Disposition: inline; filename="Coastlines.map"
######################################################################################
# Start of map file
######################################################################################
NAME Coastlines
STATUS ON
SIZE 775 563
EXTENT -175.8686783943 -2.098642442 -46.7451486479 92.417822442 #minx miny maxx maxy taken from ArcMap
UNITS dd
SHAPEPATH "C:\temp\MapServer\FromJoost" #my shapefile NAMCOAST is located in this file
IMAGECOLOR 255 255 255
#FONTSET "c:/Inetpub/wwwroot/digilib/mapserver/fonts/fonts.txt"
#SYMBOLSET "c:/inetpub/wwwroot/digilib/mapserver/symbols/symbols.txt"
# IMAGETYPE GIF
######################################################################################
# Start of web interface definition (including WMS enabling metadata)
######################################################################################
WEB
HEADER demo_header.html
TEMPLATE InitializingWebpage.cfm
MINSCALE 100000
MAXSCALE 3250000
IMAGEPATH "C:\Program Files\Apache Group\Apache\htdocs\tmp\"
# Path to temporary directory for writing temporary files and images
IMAGEURL "/tmp/"
# Base URL for IMAGEPATH. This is the URL that will take the web browser to IMAGEPATH to get the images.
END
#QUERYMAP
# SIZE 200 200
# STATUS ON
# STYLE HILITE
# COLOR 255 0 0
#END
######################################################################################
# Start of legend
######################################################################################
LEGEND
STATUS ON
KEYSIZE 18 12
LABEL
TYPE BITMAP
COLOR 0 0 89
SIZE small
END
END
######################################################################################
# Start of Reference Map
######################################################################################
REFERENCE
STATUS ON
IMAGE "C:\temp\MapServer\FromJoost\Untitled.gif" #map image
SIZE 775 563
EXTENT -169.999427 7.205280 -52.614400 83.113900 #minx miny maxx maxy of the individual shapefile or layer in ArcMap
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
######################################################################################
# Start of scalebar
######################################################################################
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END
STYLE 1
SIZE 80 2
COLOR 0 0 0
UNITS METERS
INTERVALS 1
TRANSPARENT ON
STATUS ON
END
######################################################################################
# Start of layer definitions
######################################################################################
LAYER # North American Coastlines
NAME NAMCOAST
TYPE LINE
STATUS ON
DATA C/temp/MapServer/FromJoost/NAMCOAST.shp #Full file name of spacial data to process
CLASS
#NAME 'NAMCOAST'
COLOR 225 0 255
OUTLINECOLOR 0 0 0
END #CLASS
END #LAYER
# METADATA
# WMS_TITLE "North American Coastline"
# WMS_ABSTRACT "North American Coastline shapefile."
# WMS_SRS "EPSG:26915"
# END
END # Map File
--0-440520243-1026850399=:56895--