<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Milo (and Bob)<br>
<br>
Here is what I have as far as mapfile goes. This is from a dev machine
not open to the public but I can supply a getCapabilities response as
well. Looking at it like this I bet I can remove a bunch of the
scalebar, querymap stuff....<br>
<br>
<font face="Courier New, Courier, monospace" size="-2">MAP<br>
&nbsp; DEBUG OFF #set off for production purposes!<br>
&nbsp; NAME "COMPANY"&nbsp; <br>
&nbsp; STATUS ON<br>
&nbsp; EXTENT -146.4 52.161287067696 -93.6 97.7368329192244 #unprojected<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp; SIZE 684 561 #NB: overwritten in mapserverparam.js<br>
&nbsp; SHAPEPATH "D:\msMap_data\Export"&nbsp; <br>
&nbsp; SYMBOLSET "mapserverApp.symbols"<br>
&nbsp; FONTSET "mapserverApp.fonts"<br>
&nbsp; TRANSPARENT ON<br>
&nbsp; UNITS dd<br>
&nbsp; IMAGETYPE aggpng24<br>
<br>
OUTPUTFORMAT<br>
&nbsp; NAME aggpng24<br>
&nbsp; DRIVER AGG/PNG<br>
&nbsp; MIMETYPE "image/png"<br>
&nbsp; IMAGEMODE RGB<br>
&nbsp; EXTENSION "png"<br>
END<br>
###########################################################################################<br>
# WEB INTERFACE (including WMS enabling metadata)<br>
<br>
&nbsp; WEB<br>
&nbsp;&nbsp;&nbsp; MAXSCALE 40000000&nbsp; <br>
&nbsp;&nbsp;&nbsp; MINSCALE 100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; IMAGEPATH "C:\Inetpub\wwwroot\tmp\" <br>
&nbsp;&nbsp;&nbsp; IMAGEURL "/tmp/" <br>
&nbsp;&nbsp;&nbsp; LOG "C:\Inetpub\wwwroot\tmp\log\MS_ERRORS.LOG" <br>
&nbsp;&nbsp;&nbsp; HEADER "header.html" <br>
&nbsp;&nbsp;&nbsp; FOOTER "templates/footer.html" <br>
&nbsp;&nbsp;&nbsp; TEMPLATE "index.html" <br>
&nbsp;&nbsp;&nbsp; ERROR "/wms/templates/error.html"<br>
&nbsp;&nbsp;&nbsp; EMPTY "/wms/templates/empty.html"<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; METADATA&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;WMS_ONLINERESOURCE '<a class="moz-txt-link-freetext" href="http://ws7/wms/wms.php">http://ws7/wms/wms.php</a>?'<br>
&nbsp;&nbsp;&nbsp;&nbsp; #WMS_SRS&nbsp; 'EPSG:4326 EPSG:43204 EPSG:2580 EPSG:26908 EPSG:26909
EPSG:26910 EPSG:26911 EPSG:26912 EPSG:26913 EPSG:26914'&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_SRS&nbsp; 'EPSG:4326 EPSG:43204 EPSG:2580 EPSG:26908 EPSG:26909
EPSG:26910 EPSG:26911 EPSG:26912 EPSG:26913 EPSG:26914'&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp; #WMS_ACCESSCONSTRAINTS 'none'<br>
&nbsp;&nbsp;&nbsp;&nbsp; #OWS_TITLE 'COMPANY Web GIS Portal'<br>
&nbsp;&nbsp;&nbsp;&nbsp; WMS_FEATURE_INFO_MIME_TYPE 'text/html'<br>
&nbsp;&nbsp;&nbsp;&nbsp; #WMS_ABSTRACT 'This Web Map Service broadcasts metadata about
COMPANY Publications available for review and download.'&nbsp;&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp;&nbsp; &nbsp;# ###<br>
&nbsp;&nbsp;&nbsp; &nbsp;# Increment when new data is available<br>
&nbsp;&nbsp;&nbsp; &nbsp;# ###<br>
&nbsp;&nbsp;&nbsp; &nbsp;ows_updatesequence '1' <br>
&nbsp;&nbsp;&nbsp; &nbsp;# ####<br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_TITLE 'msMap WMS Service'<br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_ABSTRACT 'COMPANYs new online spatial tool for creating maps,
querying, and downloading our large database of mineral occurrences,
publications, exploration reports, and other references to geology and
mineral exploration in the NWT.'<br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_KEYWORDLIST 'GEOLOGY,CHEMISTRY'<br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_FEES 'GRATUIT-FREE'<br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_ACCESSCONSTRAINTS 'NONE'<br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_CONTACTORGANIZATION 'NWT Business Office'<br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_SERVICE_ONLINERESOURCE '<a class="moz-txt-link-freetext" href="http://ws7/wms/wms.php">http://ws7/wms/wms.php</a>?'<br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_CONTACTPERSON 'co/ Librarian'<br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_CONTACTPOSITION 'Librarian'&nbsp;&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_CONTACTVOICETELEPHONE '+01-555-555-5555'<br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_CONTACTFACSIMILETELEPHONE '+01-555-555-5555'<br>
&nbsp;&nbsp;&nbsp; &nbsp;ows_addresstype 'Mailing'<br>
&nbsp;&nbsp;&nbsp; &nbsp;ows_address 'Location Business Office'<br>
&nbsp;&nbsp;&nbsp; &nbsp;ows_address 'BOX 1500'<br>
&nbsp;&nbsp;&nbsp; &nbsp;ows_city 'Smallville'<br>
&nbsp;&nbsp;&nbsp; &nbsp;ows_stateorprovince 'Prov'<br>
&nbsp;&nbsp;&nbsp; &nbsp;ows_postcode 'X1X 1X1'<br>
&nbsp;&nbsp;&nbsp; &nbsp;ows_country 'Canada'<br>
&nbsp;&nbsp;&nbsp; &nbsp;ows_contactelectronicmailaddress '<a class="moz-txt-link-abbreviated" href="mailto:COMPANY@email.com">COMPANY@email.com</a>'<br>
&nbsp;&nbsp;&nbsp; &nbsp;OWS_hoursofservice '8:30-4:30 Local Time'<br>
&nbsp;&nbsp;&nbsp; &nbsp;ows_contactinstructions ''<br>
&nbsp;&nbsp;&nbsp; &nbsp;ows_role 'Librarian'&nbsp;&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp;&nbsp; END&nbsp; #METADATA&nbsp;&nbsp;&nbsp; <br>
&nbsp; END #WEB<br>
<br>
<br>
<br>
&nbsp; REFERENCE <br>
&nbsp;&nbsp;&nbsp; IMAGE "refmap2.jpg"&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; EXTENT&nbsp; -146.4 52.161287067696 -93.6 97.7368329192244<br>
&nbsp;&nbsp;&nbsp; SIZE 80 120 <br>
&nbsp;&nbsp;&nbsp; STATUS ON&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; COLOR -1 -1 -1<br>
&nbsp;&nbsp;&nbsp; OUTLINECOLOR 254 219 67<br>
&nbsp;&nbsp;&nbsp; MINBOXSIZE 10<br>
&nbsp;&nbsp;&nbsp; MAXBOXSIZE 120<br>
&nbsp;&nbsp;&nbsp; MARKER "star"<br>
&nbsp;&nbsp;&nbsp; MARKERSIZE 10<br>
&nbsp; END<br>
<br>
<br>
&nbsp; PROJECTION&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; "init=EPSG:4326" <br>
&nbsp; END<br>
<br>
<br>
&nbsp; LEGEND<br>
&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; #KEYSIZE 18 12<br>
&nbsp;&nbsp;&nbsp; KEYSIZE 24 16<br>
&nbsp;&nbsp;&nbsp; #IMAGECOLOR 235 250 235<br>
&nbsp;&nbsp;&nbsp; LABEL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE BITMAP<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE MEDIUM<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 89<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; POSITION UR&nbsp; <br>
&nbsp;&nbsp;&nbsp; TEMPLATE "legend.html" #doesn't really exist<br>
&nbsp; END<br>
<br>
<br>
&nbsp; SCALEBAR<br>
&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; POSITION LR<br>
&nbsp;&nbsp;&nbsp; POSTLABELCACHE TRUE<br>
&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp; OUTLINECOLOR 166 202 240<br>
&nbsp;&nbsp;&nbsp; TRANSPARENT ON<br>
&nbsp;&nbsp;&nbsp; UNITS KILOMETERS<br>
&nbsp;&nbsp;&nbsp; INTERVALS 4<br>
&nbsp;&nbsp;&nbsp; SIZE 200 6<br>
&nbsp;&nbsp;&nbsp; STYLE 1<br>
&nbsp;&nbsp;&nbsp; LABEL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE TINY<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #OUTLINECOLOR 254 219 67<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #SHADOWCOLOR 166 202 240<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #SHADOWSIZE 3 3<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; END<br>
<br>
&nbsp; QUERYMAP<br>
&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; STYLE Hilite #shows selected features in highlight colour<br>
&nbsp;&nbsp;&nbsp; COLOR&nbsp; 254 219 67&nbsp; # 0 0 255<br>
&nbsp; END<br>
<br>
<br>
#<br>
# LAYER DEFINITIONS <br>
#<br>
<br>
LAYER<br>
&nbsp; NAME 'References'<br>
&nbsp; DATA '4326References'<br>
&nbsp; STATUS on<br>
&nbsp; DUMP true # VERY IMPORTANT atribute<br>
&nbsp; <br>
&nbsp; TYPE Polygon<br>
&nbsp; TRANSPARENCY 100<br>
&nbsp; TOLERANCE 10<br>
&nbsp; TOLERANCEUNITS pixels<br>
&nbsp; HEADER "templates\referencesheader.html"<br>
&nbsp; TEMPLATE "templates\references.html" <br>
&nbsp; <br>
&nbsp; METADATA<br>
&nbsp;&nbsp; OWS_SRS 'EPSG:4326'<br>
&nbsp;&nbsp; OWS_TITLE 'References'<br>
&nbsp;&nbsp; WMS_FEATURE_INFO_MIME_TYPE 'application/vnd.ogc.gml'<br>
&nbsp;&nbsp; gml_include_items "all"<br>
&nbsp;&nbsp; gml_exclude_items "geometry"<br>
&nbsp;&nbsp; wfs_featureid 'C_REFER_ID'&nbsp;&nbsp; <br>
&nbsp;&nbsp; ows_title 'References'<br>
&nbsp; END #METADATA<br>
&nbsp; <br>
&nbsp; PROJECTION&nbsp; <br>
&nbsp; 'init=EPSG:4326'<br>
&nbsp; END&nbsp;&nbsp; <br>
&nbsp; <br>
CLASSITEM 'CLASSCODE'<br>
&nbsp; <br>
&nbsp;&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp;&nbsp; NAME 'COMPANY Publications'<br>
&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION '4'<br>
&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #COLOR 150 180 250<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 0 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #WIDTH 1.5<br>
&nbsp;&nbsp;&nbsp;&nbsp; END #STYLE<br>
&nbsp; END #CLASS<br>
&nbsp; <br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp;&nbsp; NAME 'Industry Reports A'<br>
&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION '1'<br>
&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #COLOR 150 180 250<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #WIDTH 1.5<br>
&nbsp;&nbsp;&nbsp;&nbsp; END #STYLE<br>
&nbsp; END #CLASS<br>
<br>
&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'Industry Reports B'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION '21'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #COLOR 150 180 250<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 255 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #WIDTH 1.5<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END #STYLE<br>
&nbsp; END #CLASS<br>
&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'Misc References'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION '0'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #COLOR 150 180 250<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 255<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #WIDTH 1.5<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END #STYLE<br>
&nbsp; END #CLASS<br>
&nbsp; <br>
END #LAYER <br>
<br>
END #End of Mapfile</font><br>
<br>
<br>
Milo van der Linden wrote:
<blockquote cite="mid:4AC22666.1020800@zeelandnet.nl" type="cite">
  <pre wrap="">Hello Josh,

I have three succesfully hosted wms layers withing Google Earth. It
probably has something to do with the image type not being supported or
wms parameters missing.

If you want me to help you can send me the metadata and the map section
snippets of your mapfile.

Josh Hevenor schreef:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I'm wondering if anyone has had success viewing their mapserver WMS
services through Google Earth? I can manually enter a GetMap request and
see the image but when I try to list my layers in the Refresh-&gt;WMS
Parameters section I get an error message stating that "This MWS server
has no layers which can be rendered by Google Earth"   

Are there any common trip-ups that others have experienced?  I can post
more details if required...

josh

_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>

  
    </pre>
    <pre wrap="">
<hr size="4" width="90%">

No virus found in this incoming message.
Checked by AVG - <a class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a> 
Version: 8.5.409 / Virus Database: 270.13.114/2402 - Release Date: 09/29/09 05:54:00

    </pre>
  </blockquote>
</blockquote>
</body>
</html>