[mapserver-users] ms4w mapserver 5.0 can't display raster image.
ptang83 at yahoo.com
ptang83 at yahoo.com
Sun Apr 13 21:36:17 PDT 2008
Sorry for the confusion. I have it untared as
C:\oatdir\nitelti020l.tar\nitelti020l.tif
I can view it and I am also able to load it in to qgis.
--- On Sun, 4/13/08, Delfos, Jacob <Jacob.Delfos at maunsell.com> wrote:
> From: Delfos, Jacob <Jacob.Delfos at maunsell.com>
> Subject: RE: [mapserver-users] ms4w mapserver 5.0 can't display raster image.
> To: ptang83 at yahoo.com, mapserver-users at lists.osgeo.org
> Date: Sunday, April 13, 2008, 10:53 PM
> Hi,
>
> It may be worth trying to untar your image. I suspect
> mapserver *may*
> not be able to do this on the fly.
>
> Regards,
>
> Jacob
>
>
>
> > -----Original Message-----
> > From: mapserver-users-bounces at lists.osgeo.org
> > [mailto:mapserver-users-bounces at lists.osgeo.org] On
> Behalf Of
> > ptang83 at yahoo.com
> > Sent: 14 April 2008 11:41
> > To: mapserver-users at lists.osgeo.org
> > Subject: [mapserver-users] ms4w mapserver 5.0
> can't display
> > raster image.
> >
> > I used Mapserver + Openlayers + Postgis. I can load
> shp data
> > to postgis and display it without any problem.
> However,
> > somehow I am not able to display any raster map even
> without
> > using postgis. I only see a blank rectangular on my
> web
> > browzer. I wonder whether there is a bug or something
> I did
> > wrong. Thanks in advance..
> >
> >
> > I have downloaded ms4w Mapserver and has the following
> config.
> > # Apache 2.2.8
> > # PHP 5.2.5
> > # mapserv 5.0.2 at /cgi-bin/mapserv.exe
> > ===========================
> > LOG files show nothing wrong:
> > ======================================
> > Sun Apr 13 21:57:14
> > 2008,12804,127.0.0.1,nitelti020l,3,-0.000000
> -90.000000
> > 180.000000 90.000000,-1.000000 -1.000000,,normal
> execution
> > Sun Apr 13 21:57:14
> > 2008,14076,127.0.0.1,nitelti020l,3,-180.000000
> -90.000000
> > 0.000000 90.000000,-1.000000 -1.000000,,normal
> execution
> > =======================================
> > MAP file:
> > =========================================
> > # Map file created from QGIS project file C:/Program
> > Files/Quantum GIS/nitelti020l.qgs
> > # Edit this file to customize for your map interface
> > MAP
> > NAME nitelti020l
> > # Map image size
> > SIZE 600 600
> > UNITS dd
> >
> > EXTENT -6086744.000000 -5878356.737659
> 4278894.138000 7580130.593659
> > PROJECTION
> > # 'proj=longlat'
> > # 'ellps=WGS84'
> > # 'datum=WGS84'
> > # 'no_defs'
> > "init=epsg:4326"
> > END
> >
> > # Background color for the map canvas -- change as
> desired
> > IMAGECOLOR 192 192 192
> > IMAGEQUALITY 95
> > IMAGETYPE jpeg
> > OUTPUTFORMAT
> > NAME jpeg
> > DRIVER 'GD/JPEG'
> > MIMETYPE 'image/jpeg'
> > #IMAGEMODE PC256
> > EXTENSION 'jpeg'
> > END
> > # Legend
> > LEGEND
> > IMAGECOLOR 255 255 255
> > STATUS ON
> > KEYSIZE 18 12
> > LABEL
> > TYPE BITMAP
> > SIZE MEDIUM
> > COLOR 0 0 89
> > END
> > END
> >
> > # Web interface definition. Only the template
> parameter
> > # is required to display a map. See MapServer
> documentation
> > WEB
> > # Set IMAGEPATH to the path where MapServer should
> > # write its output.
> > IMAGEPATH '/tmp/'
> >
> > # Set IMAGEURL to the url that points to IMAGEPATH
> > # as defined in your web server configuration
> > IMAGEURL '/tmp/'
> >
> > # WMS server settings
> > METADATA
> > 'wms_title'
> 'nitelti020l'
> > 'wms_onlineresource'
> >
> 'http://localhost/cgi-bin/mapserv?map=wms.map&'
> > 'wms_srs'
> 'EPSG:4326'
> > END
> >
> > #Scale range at which web interface will operate
> > # Template and header/footer settings
> > # Only the template parameter is required to
> display a
> > map. See MapServer documentation
> > END
> >
> > WEB
> > LOG "c:\tmp\mapserv.log"
> > END
> >
> > LAYER
> > NAME 'nitelti020l'
> > TYPE RASTER
> > DATA
> 'C:\oatdir\nitelti020l.tar\nitelti020l.tif'
> > METADATA
> > 'wms_title' 'nitelti020l'
> > END
> > STATUS DEFAULT
> > TRANSPARENCY 100
> > PROJECTION
> > # 'proj=longlat'
> > # 'ellps=WGS84'
> > # 'datum=WGS84'
> > # 'no_defs'
> > "init=epsg:4326"
> > END
> > END
> >
> > END
> >
> >
> > ==============
> > Raster date download
> > ==============
> >
> http://edcftp.cr.usgs.gov/pub/data/nationalatlas/nitelti020l.tar.gz
> >
> > ================
> > simple open layer code
> > ================
> > <html
> xmlns="http://www.w3.org/1999/xhtml">
> > <head>
> > <style type="text/css">
> > #map {
> > width: 800px;
> > height: 475px;
> > border: 1px solid black;
> > }
> > </style>
> > <script
> >
> src="http://openlayers.org/dev/lib/OpenLayers.js"></script>
> > <script type="text/javascript">
> > <!--
> > var map, layer;
> >
> > function init(){
> > map = new OpenLayers.Map( 'map' );
> > layer = new OpenLayers.Layer.MapServer(
> "OpenLayers WMS",
> >
> "http://localhost/cgi-bin/mapserv.exe",
> > {map: 'C:/Program
> Files/ms4w/Apache/htdocs/nitelti020l.map'} );
> > map.addLayer(layer);
> > map.zoomToMaxExtent();
> > }
> > // -->
> > </script>
> > </head>
> > <body onload="init()">
> > <div id="map"></div>
> > </body>
> > </html>
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> >
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
>
> This email and any attachments are intended solely for the
> named recipient and are confidential. The copying or
> distribution of them or any information they contain by
> anyone other than the named recipient is prohibited. If you
> have received this document in error, please notify the
> sender and delete all copies from your computer system and
> destroy all hard copies. It is the recipient's
> responsibility to check this email and any attachments to
> this email for viruses before use.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the MapServer-users
mailing list