RASTER Layer.
Ed McNierney
ed at TOPOZONE.COM
Tue May 24 12:16:29 PDT 2005
Ryan -
The example MAP file you give seems (at a quick look) OK if all your
input data is in the same projection. The only way you know what
projections to use is by knowing your source data. Some source formats,
like GeoTIFF, will have projection information embedded in them.
Others, like your shapefiles, usually do not - you need to know what you
have.
Do you think all your data is in the same projection? What does the
listgeo command tell you when you use it to dump the metadata from the
basin_alb.tif file?
I'm going to guess that your raster image is in the Albers or other
projection, and your shapefiles are in unprojected geographic
coordinates.
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
ed at topozone.com
(978) 251-4242
________________________________
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Owens, Ryan J NWD02 CONTRACTOR
Sent: Tuesday, May 24, 2005 2:45 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] RASTER Layer.
Hello Listserv,
I'm new to Map Server and I am having some difficulties with getting a
raster output to work. So far I have been able to get a TYPE LINE
output to work. I want to add another layer, a RASTER layer, but it
does not work and I don't know what I am doing wrong. Will someone scan
my code to see if I have done something incorrectly? I am outputting my
data to a Flash viewer in a HTML template.
Thank you,
Ryan
============================================================
MAP
NAME FMV_
EXTENT -544000 89800 1393000 1254000
WEB
log "./test.log"
TEMPLATE "test_template.html"
IMAGEPATH "./tmp/"
IMAGEURL "http://[my domain]/fmv/test/tmp/"
END
DEBUG ON
OUTPUTFORMAT
NAME swf
DRIVER "SWF"
MIMETYPE "application/x-shockwave-flash"
EXTENSION "swf"
IMAGEMODE PC256
FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
END
IMAGETYPE swf
SIZE 460 500
SHAPEPATH "data"
IMAGECOLOR 255 255 255
PROJECTION
# "proj=laea"
# "ellps=clrk66"
# "lat_0=45"
# "lon_0=-100"
#
# Alternatively, you can specify an EPSG code.
# "init=epsg:2163"
#
END
# Start of LAYER DEFINITIONS
---------------------------------------------
LAYER
NAME "basin"
DATA "data/basin_alb.tif"
STATUS DEFAULT
TYPE RASTER
PROCESSING "BANDS=1,2,3"
OFFSITE 71 74 65
# PROJECTION
# END
END
LAYER
NAME "river"
DATA missouri_river
STATUS DEFAULT
TYPE LINE
METADATA
"SWFDUMPATTRIBUTES" "NAME,LENGTH"
END
CLASS
COLOR 0 0 254
END
END
LAYER
NAME dcp
DATA dcps
STATUS DEFAULT
TYPE POINT
METADATA
"SWFDUMPATTRIBUTES" "MRADS_ID"
END
CLASS
SYMBOL 0
COLOR 0 0 254
END
END
# End of LAYER DEFINITIONS -------------------------------
END # end of map file/object^M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050524/0b9a8365/attachment.htm>
More information about the MapServer-users
mailing list