|
||||
[maplab-users] RE: MapServer Error in msSaveImage()Paul Spencer pgs@magma.caWed, 10 Jul 2002 22:34:13 -0400
|
Gonzalo, you probably haven’t set an IMAGETYPE property in your Map object. If IMAGETYPE is not set then it will default to GIF. Your mapscript doesn't support GIF output, so you need to set this to PNG or JPEG .... But ROSA doesn't support PNG in most browsers except very new IE and perhaps Netscape (depends on Java runtime version), so you will likely need to choose JPEG or add GIF support (if legal) to your mapscript (there are many references to this on the mapserver list). Cheers, Paul > -----Original Message----- > From: Gonzalo Valdés [mailto:gvaldes@conama.cl] > Sent: Wednesday, July 10, 2002 6:36 PM > To: 'Paul Spencer ' > Subject: RE: MapServer Error in msSaveImage() > > > Paul, thanks a lot. It finally work. > > But i have find some problem you problaly want to see > After I change my map file to set the values right there (I > have the rights values configured in the template.html file > and a reference in my map file, just like the one in the demo: > > IMAGEPATH "set in demo_init.html" > IMAGEURL "set in demo_init.html" > > But when i did the changes, a ERROR like this shows up: > ---------------------------------- > Warning: MapServer Error in msSaveImage(): GIF output is not > available. in > /home/www/mapas/maplab/htdocs/mapedit/preview.php on line 374 > > Fatal error: Failed writing image to > /home/www/mapas/tmp/10263402653171.gif > in /home/www/mapas/maplab/htdocs/mapedit/preview.php on line 374 > ---------------------------------- > > So I went to line 374 and uncoment the lines arround it and > it works OK. > > Thank, and congratulation for your development and good weel > to answer every body questions. > > Gonzalo Valdes. > Santiago > CHILE > > > -----Original Message----- > From: Paul Spencer > To: 'Gonzalo Valdés' > Cc: pagameba@magma.ca > Sent: 7/10/02 5:45 PM > Subject: RE: MapServer Error in msSaveImage() > > Okay, your map file needs to be in sync with your maplab.xml > file. You need to have a web object in the map file. If you > check this web object, there are two parameters that relate > to this problem. These are probably set to their default > values (if they are there): > > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > > However, in your maplab.xml file you have > > /home/www/mapas/tmp/ > > for the image path, so in the map file, your map file should > have IMAGEPATH "/home/www/mapas/tmp/" > > And you have > > http://sinia.cl/mapas/tmp/ > > for the image url, this should be changed to /mapas/tmp/, and > in your map file, you will need IMAGEURL "/mapas/tmp/" > > I hope this is the problem. If not, can you send me the map > file you are trying to use. > > Cheers, > > Paul > > > > <SNIP> > > >
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |