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

Worth Lutz wal3 at mindspring.com
Thu Apr 4 16:52:56 PDT 2013


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-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees
Sent: Thursday, April 04, 2013 7:17 PM
To: Rahkonen Jukka; mapserver-users at 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.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)

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

  _____  

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130404/e1617d3b/attachment-0001.html>


More information about the mapserver-users mailing list