Login  Register

generate raster image in mapserver

classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

generate raster image in mapserver

rishe
hi all
iam using mapserver to display raster image
but it is displaying blank
map is not generating
 my code is
 chameleon.map(mapfile)

#
# Start of map file
#
# Sample map file for a chameleon app.
#
NAME DEMO
STATUS ON
SIZE 400 300
SYMBOLSET ../etc/symbols.sym
EXTENT -2594561 -712631 3467361 3840000
UNITS METERS
SHAPEPATH "C:/ms4w/apps/chameleon/samples/data/"
IMAGECOLOR 255 255 255
FONTSET ../etc/fonts.txt
TRANSPARENT true

#
# Start of web interface definition
#
WEB
  #MINSCALE 2000000
  #MAXSCALE 50000000
#
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
# of the drive where the .MAP file resides.
#
TEMPLATE "C:/ms4w/apps/chameleon/samples/htdocs/template.html"
  IMAGEPATH "/ms4w/tmp/ms_tmp/"
  IMAGEURL "/ms_tmp/"
#  LOG "/tmp/gmap.log"
  METADATA
  END
END
PROJECTION
    "init=epsg:42304"
END
LAYER
  GROUP "Raster"
  NAME bathymetry
  METADATA
    "DESCRIPTION" "Elevation/Bathymetry"
    "GROUP" "Raster"
    "LAYER" "bathymetry"
  END
  TYPE RASTER
  STATUS ON
  DATA "C:/ms4w/apps/chameleon/samples/data/bath_mapserver.tif"
PROJECTION
    "init=epsg:42304"
END
END
END # Map File

startmap.html
<html>
<head><title>Creating a simple image using Mapserver and a Shapefile</title></head>
<body bgcolor="#FFFFFF">

Creating a simple image using Mapserver and a Shapefile

<p><hr><p>
This page simply contains a link which sends a set of instructions to the Mapserver application using a mapfile.<br />
The information stored within the mapfile tells the Mapserver application how to draw the map.<p>

<A HREF="http://localhost:8085/cgi-bin/mapserv.exe?map=C:\ms4w\apps\chameleon\samples\map\chameleon.map">
Click on this link to view a map generated using a Shapefile.
<p><hr><p>
 
</body>
</html>

template.html

<html>
<head><title>Simple Mapserver Template HTML Document</title></head>
<body bgcolor=#AAAAAA>

The image below was illustrated based on the instructions sent in the mapfile.


<img src="/[img]" border=1>
</body>
</html>

plz tell me the problem
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: generate raster image in mapserver

GregChapman
This forum is for Nabble  support only. Try a search at http://www.nabble.com for an appropriate forum.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.