[mapserver-users] displaying 3-band images

Michael Schulz mschulz at webgis.de
Wed Dec 8 03:20:11 EST 2010


Hi,

are you sure your raster can be read by mapserver cgi? Maybe try adding the
ON_MISSING_DATA config option at map file level to rule out this
error: CONFIG "ON_MISSING_DATA" "FAIL"
Also, I think IMAGEMODE is a parameter of the outputformat object not the
layer object.

Cheers, Michael


2010/12/8 David Hildebrand <David.Hildebrand at afsc.ca>

>  I have a TIFF image I want to display.  The image is a 3-band 8-bit
> image.  The server logs show no error but my display is coming out blank.  I
> am using ms4w with GDAL support so I’m not sure what is going wrong here.  A
> sample of the mapfile is shown below.  I get a parsing error if I include
> IMAGEMODE “RGB” in the layer definition.  Any suggestions?
>
>
>
> LAYER
>
>   NAME "awifs"
>
>   PROCESSING "BANDS=3,2,1"
>
>   PROCESSING "SCALE=AUTO"
>
>   METADATA
>
>     "wms_title" "awifs"
>
>     "wms_opaque" "1"
>
>     "ows_resolution" "56 56"
>
>     "wms_srs" "EPSG:43001"
>
>     "wms_extent" "-701344.000 -417256.000 803040.000 711368.000"
>
>     "wcs_srs" "EPSG:43001"
>
>     "wcs_extent" "-701344.000 -417256.000 803040.000 711368.000"
>
>   END
>
>   STATUS on
>
>   TYPE raster
>
>   DATA "//Plcoressatsb01/AWiFS/initial_delivery/images/July.tif"
>
>   PROJECTION
>
>     "init=epsg:43001"
>
>   END
>
>   EXTENT -701344.000 -417256.000 803040.000 711368.000
>
>   UNITS meters
>
> END
>
>
>
>
>
> ===========================
> David V. Hildebrand
> Agriculture Financial Services Corporation
> (403) 782-8239
>
> www.afsc.ca* <*http://www.afsc.ca*>
> *This communication is intended for the use of the recipient to which it
> is addressed, and may contain confidential, personal and/or privileged
> information. Please contact Agriculture Financial Services Corporation
> immediately if you are not the intended recipient of this communication, and
> do not copy, distribute, or take action relying on it. Any communication
> received in error, or subsequent reply, should be deleted or destroyed.
> Please consider the environment before printing this email.
>   ------------------------------
>
> *From:* Brent Wood [mailto:pcreso at yahoo.com]
> *Sent:* Monday, December 06, 2010 4:37 PM
> *To:* David Hildebrand; Brent Fraser
> *Cc:* mapserver-users at lists.osgeo.org
> *Subject:* Re: [mapserver-users] street maps
>
>
>
>
> Sigh,
>
> Get the link right!!
>
> PDF summarising Bing/Google licelice issues
>
>
> http://victorianspatialcouncil.org/cms/library/attachments/VSC%20Guidance%20Note%201_T&C%20Use%20of%20%20Google%20Maps%20and%20Bing%20Maps%20v1.0-May%202010.pdf
>
>
> Brent Wood
>
> --- On *Tue, 12/7/10, Brent Fraser <bfraser at geoanalytic.com>* wrote:
>
>
> From: Brent Fraser <bfraser at geoanalytic.com>
> Subject: Re: [mapserver-users] street maps
> To: "David Hildebrand" <David.Hildebrand at afsc.ca>
> Cc: mapserver-users at lists.osgeo.org
> Date: Tuesday, December 7, 2010, 10:02 AM
>
> David,
>
>   This thread may get you started with OpenStreetMap.  Be sure to read
> Google's and Bing's Term Of Service.
>
> http://lists.osgeo.org/pipermail/mapserver-users/2010-July/066061.html
>
> Best Regards,
>
> Brent Fraser
>
>
> On 12/6/2010 12:18 PM, David Hildebrand wrote:
>
> I want to add a street map (OpenStreetMap, Google, Bing, etc.) as a WMS
> layer but I’m not sure which service to use and what the URL would be to try
> them out?  My AOI is only about 10 by 10 degrees wide.
>
>
>
> Any suggestions?
>
>
>
> ===========================
> David V. Hildebrand
> Agriculture Financial Services Corporation
> (403) 782-8239
>
> www.afsc.ca* <*http://www.afsc.ca*>
> *This communication is intended for the use of the recipient to which it
> is addressed, and may contain confidential, personal and/or privileged
> information. Please contact Agriculture Financial Services Corporation
> immediately if you are not the intended recipient of this communication, and
> do not copy, distribute, or take action relying on it. Any communication
> received in error, or subsequent reply, should be deleted or destroyed.
> Please consider the environment before printing this email.
>
>
>
>
>
>
>
> _______________________________________________
>
> mapserver-users mailing list
>
>   mapserver-users at lists.osgeo.org <http://mc/compose?to=mapserver-users@lists.osgeo.org>
>
>   http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org<http://mc/compose?to=mapserver-users@lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


-- 
-----------------------------------------------------------
Michael Schulz
mschulz at webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101208/79a183a1/attachment-0001.html


More information about the mapserver-users mailing list