RASTER Layer.
Ed McNierney
ed at TOPOZONE.COM
Tue May 31 05:20:52 PDT 2005
Ryan -
I am not aware of any significance to spaces in MAP files. However, I
think it is a good idea to always put strings in quotes regardless of
spaces. I would not always expect a line like DATA BIG FILE to work, as
opposed to DATA "BIG FILE".
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
Phone: +1 (978) 251-4242
Fax: +1 (978) 251-1396
ed at topozone.com
________________________________
From: Owens, Ryan J NWD02 CONTRACTOR
[mailto:Ryan.J.Owens at nwo02.usace.army.mil]
Sent: Tuesday, May 31, 2005 8:00 AM
To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU
Subject: RE: [UMN_MAPSERVER-USERS] RASTER Layer.
Ed,
This is a bit overdue... but thanks for your assistance with my
question. I was able to get the raster layer to function properly.
Another question... do spaces in a map file cause problems? In other
words, am I creating problems when I am trying to make a map file more
readable by realigning code and adding spaces?
Ryan
________________________________
From: Ed McNierney [mailto:ed at topozone.com]
Sent: Tuesday, May 24, 2005 2:16 PM
To: Owens, Ryan J NWD02 CONTRACTOR; MAPSERVER-USERS at LISTS.UMN.EDU
Subject: RE: [UMN_MAPSERVER-USERS] RASTER Layer.
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/20050531/5ff917ec/attachment.htm>
More information about the MapServer-users
mailing list