[mapserver-users] adding gifs to index.html file?

Mark Mirrlees mmirrlees at hotmail.com
Thu Apr 4 16:16:46 PDT 2013


Hi there, Ok I figured that part out! Thanks! Your a lifesaver! I have one other question I'm trying to add images (gif files) to my index.html file. When I place this code into my html file it neglects to show the image... <img src="file:/wwwroot/M_Mirrlees_Assign4\bos.gif" width="150" height="100">
It shows a white box with a black like square in the corner (see image)...not sure what i'm missing...any ideas? Thanks,Mark

 
 From: jukka.rahkonen at mmmtike.fi
To: mapserver-users at lists.osgeo.org
Date: Thu, 4 Apr 2013 07:55:41 +0000
Subject: Re: [mapserver-users] output issues (malformed template name)





MapServer Message




Hi,
 
The immediate reason for the error  is that you do not have a referred template file in your system
TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
 
For correcting this error you must change TEMPLATE to refer to something that exists. The template file must contain at least the magic string
 ‘mapserver template’ in the first line of the template 
http://www.mapserver.org/mapfile/template.html
However, I have a feeling that this will not be enough for making your application to launch. If this happens, please tell a bit more about your
 application, how it works and what happens when you press the launch button.  And absolutely add
CONFIG "MS_ERRORFILE" "c:\good_errorfile_path_for_you.txt” and
DEBUG 5 into your mapfile.  This way you will get much valuable information into the errorfile. Comment out the DEBUG line once everything works
 perfectly for you.
 
The PyQgis MapServer Export plugin should really be fixed. At least it should write the “wms_enable_request” metadata item. Now it does not and
 no mapfile created with QGis will work for WMS without editing. Plugin is also using the deprecated TRANSPARENCY and I  would rather see PROJECTION blocks to use "init=epsg:xxxx" but that  may not be so important.  I am not sure it the plugin writes always
 SYMBOLSET "/wwwroot/symbols/symbols.sty" and uses SYMBOL "circle" in some type of classes but if it does it can also lead to not working mapfiles.  Is there anything else to complain? I can make a QGis feature request once I have collected the most important
 things to correct and checked that they have not been corrected already.
 
-Jukka Rahkonen-
 
 
 



Mark Mirrlees wrote:


 

Hello everyone,

 

I am trying to create a new map and it is causing me some output issues.

 

When I click my launch button to start the application it comes up with this message

 

Content-type: text/html msReturnPage(): Web application error. Malformed template name (fooOnlyForWMSGetFeatureInfo). 

 

I have attached my mapfile and I do apologize for the length of it.

 

I'm not sure what's wrong in the map file! Any help would be greatly appreciated!



Thanks,

Mark

            






_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130404/34c39c6d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image1.png
Type: image/png
Size: 445 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130404/34c39c6d/attachment.png>


More information about the mapserver-users mailing list