Raster Problem in ms4w
baarFan (sent by Nabble.com)
lists at NABBLE.COM
Sat Feb 18 00:27:17 PST 2006
Hi everybody,
I am dealing with mapserver nearly 2 months and my studies was all on linux
till last 1 week. In FGS package I was able to load raster layers to my map.
But in ms4w with the same map file I could not load the raster layer. But
vector layer is still ok. I have updated all the links for windows. Do you
have any idea why this situation occurs? An example map file is below.
MAP
NAME USA3
STATUS ON
IMAGETYPE PNG
SIZE 800 500
SHAPEPATH "../data/"
EXTENT -6086744.000 -2784127 4278894 4485901
UNITS METERS
PROJECTION "proj=laea" "lat_0=45" "lon_0=-100" "ellps=GRS80"
"datum=NAD83" END
WEB
IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
IMAGEURL "/tmp/"
END
LAYER
NAME "US state boundaries"
TYPE POLYGON
STATUS ON
DATA "statesp020"
PROJECTION
"proj=latlong"
"ellps=GRS80"
"datum=NAD83"
END
CLASS
NAME "US states"
OUTLINECOLOR 50 50 50
SYMBOL 0
END
END
LAYER
NAME "Nighttime lights"
TYPE RASTER
STATUS ON
DATA "nitelti020l.tif"
END
END
tfw file is
769.4780
0.000000
0.000000
-769.4780
-6086744.0000
4485901.0000
and my simple phpscript is here..
<?
dl('php_mapscript_46.dll');
$map_path="C:\ms4w\apps\sample1\htdocs\\";
$map_file="europe.map";
$map = ms_newMapObj($map_path.$map_file);
$image=$map->draw();
$image_url=$image->saveWebImage();
echo $image_url
?>
<INPUT TYPE=IMAGE NAME="mapa" SRC="<?php echo $image_url?>" border="1">
thanx in advance...
Burak Oguz
--
View this message in context: http://www.nabble.com/Raster-Problem-in-ms4w-t1145396.html#a3003035
Sent from the Mapserver - User forum at Nabble.com.
More information about the MapServer-users
mailing list