Ok so I've tried both ways and they both output another box. However this time with an X in the corner. See attached. Thanks,Mark
From: w...@mindspring.com To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] adding gifs to index.html file? Date: Thu, 4 Apr 2013 19:52:56 -0400 MapServer Message Try: <img src="/wwwroot/M_Mirrlees_Assign4\bos.gif" width="150" height="100"> Or if “wwwroot” really is the web root: <img src="/M_Mirrlees_Assign4\bos.gif" width="150" height="100"> Worth Lutz From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Thursday, April 04, 2013 7:17 PM To: Rahkonen Jukka; mapserver-users@lists.osgeo.org Subject: [mapserver-users] adding gifs to index.html file? 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.rahko...@mmmtike.fi To: mapserver-users@lists.osgeo.org Date: Thu, 4 Apr 2013 07:55:41 +0000 Subject: Re: [mapserver-users] output issues (malformed template name) 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.3267 / Virus Database: 3162/6224 - Release Date: 04/04/13
<<attachment: image2.png>>
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users