<!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>
DEBUG OFF #set off for production purposes!<br>
NAME "COMPANY" <br>
STATUS ON<br>
EXTENT -146.4 52.161287067696 -93.6 97.7368329192244 #unprojected<br>
<br>
SIZE 684 561 #NB: overwritten in mapserverparam.js<br>
SHAPEPATH "D:\msMap_data\Export" <br>
SYMBOLSET "mapserverApp.symbols"<br>
FONTSET "mapserverApp.fonts"<br>
TRANSPARENT ON<br>
UNITS dd<br>
IMAGETYPE aggpng24<br>
<br>
OUTPUTFORMAT<br>
NAME aggpng24<br>
DRIVER AGG/PNG<br>
MIMETYPE "image/png"<br>
IMAGEMODE RGB<br>
EXTENSION "png"<br>
END<br>
###########################################################################################<br>
# WEB INTERFACE (including WMS enabling metadata)<br>
<br>
WEB<br>
MAXSCALE 40000000 <br>
MINSCALE 100 <br>
IMAGEPATH "C:\Inetpub\wwwroot\tmp\" <br>
IMAGEURL "/tmp/" <br>
LOG "C:\Inetpub\wwwroot\tmp\log\MS_ERRORS.LOG" <br>
HEADER "header.html" <br>
FOOTER "templates/footer.html" <br>
TEMPLATE "index.html" <br>
ERROR "/wms/templates/error.html"<br>
EMPTY "/wms/templates/empty.html"<br>
<br>
METADATA <br>
WMS_ONLINERESOURCE '<a class="moz-txt-link-freetext" href="http://ws7/wms/wms.php">http://ws7/wms/wms.php</a>?'<br>
#WMS_SRS 'EPSG:4326 EPSG:43204 EPSG:2580 EPSG:26908 EPSG:26909
EPSG:26910 EPSG:26911 EPSG:26912 EPSG:26913 EPSG:26914' <br>
OWS_SRS 'EPSG:4326 EPSG:43204 EPSG:2580 EPSG:26908 EPSG:26909
EPSG:26910 EPSG:26911 EPSG:26912 EPSG:26913 EPSG:26914' <br>
#WMS_ACCESSCONSTRAINTS 'none'<br>
#OWS_TITLE 'COMPANY Web GIS Portal'<br>
WMS_FEATURE_INFO_MIME_TYPE 'text/html'<br>
#WMS_ABSTRACT 'This Web Map Service broadcasts metadata about
COMPANY Publications available for review and download.' <br>
# ###<br>
# Increment when new data is available<br>
# ###<br>
ows_updatesequence '1' <br>
# ####<br>
OWS_TITLE 'msMap WMS Service'<br>
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>
OWS_KEYWORDLIST 'GEOLOGY,CHEMISTRY'<br>
OWS_FEES 'GRATUIT-FREE'<br>
OWS_ACCESSCONSTRAINTS 'NONE'<br>
OWS_CONTACTORGANIZATION 'NWT Business Office'<br>
OWS_SERVICE_ONLINERESOURCE '<a class="moz-txt-link-freetext" href="http://ws7/wms/wms.php">http://ws7/wms/wms.php</a>?'<br>
OWS_CONTACTPERSON 'co/ Librarian'<br>
OWS_CONTACTPOSITION 'Librarian' <br>
OWS_CONTACTVOICETELEPHONE '+01-555-555-5555'<br>
OWS_CONTACTFACSIMILETELEPHONE '+01-555-555-5555'<br>
ows_addresstype 'Mailing'<br>
ows_address 'Location Business Office'<br>
ows_address 'BOX 1500'<br>
ows_city 'Smallville'<br>
ows_stateorprovince 'Prov'<br>
ows_postcode 'X1X 1X1'<br>
ows_country 'Canada'<br>
ows_contactelectronicmailaddress '<a class="moz-txt-link-abbreviated" href="mailto:COMPANY@email.com">COMPANY@email.com</a>'<br>
OWS_hoursofservice '8:30-4:30 Local Time'<br>
ows_contactinstructions ''<br>
ows_role 'Librarian' <br>
END #METADATA <br>
END #WEB<br>
<br>
<br>
<br>
REFERENCE <br>
IMAGE "refmap2.jpg" <br>
EXTENT -146.4 52.161287067696 -93.6 97.7368329192244<br>
SIZE 80 120 <br>
STATUS ON <br>
COLOR -1 -1 -1<br>
OUTLINECOLOR 254 219 67<br>
MINBOXSIZE 10<br>
MAXBOXSIZE 120<br>
MARKER "star"<br>
MARKERSIZE 10<br>
END<br>
<br>
<br>
PROJECTION <br>
"init=EPSG:4326" <br>
END<br>
<br>
<br>
LEGEND<br>
STATUS ON<br>
#KEYSIZE 18 12<br>
KEYSIZE 24 16<br>
#IMAGECOLOR 235 250 235<br>
LABEL<br>
TYPE BITMAP<br>
SIZE MEDIUM<br>
COLOR 0 0 89<br>
END<br>
POSITION UR <br>
TEMPLATE "legend.html" #doesn't really exist<br>
END<br>
<br>
<br>
SCALEBAR<br>
STATUS ON<br>
POSITION LR<br>
POSTLABELCACHE TRUE<br>
COLOR 0 0 0<br>
OUTLINECOLOR 166 202 240<br>
TRANSPARENT ON<br>
UNITS KILOMETERS<br>
INTERVALS 4<br>
SIZE 200 6<br>
STYLE 1<br>
LABEL<br>
SIZE TINY<br>
COLOR 0 0 0<br>
ANTIALIAS TRUE<br>
#OUTLINECOLOR 254 219 67<br>
#SHADOWCOLOR 166 202 240<br>
#SHADOWSIZE 3 3<br>
END<br>
END<br>
<br>
QUERYMAP<br>
STATUS ON<br>
STYLE Hilite #shows selected features in highlight colour<br>
COLOR 254 219 67 # 0 0 255<br>
END<br>
<br>
<br>
#<br>
# LAYER DEFINITIONS <br>
#<br>
<br>
LAYER<br>
NAME 'References'<br>
DATA '4326References'<br>
STATUS on<br>
DUMP true # VERY IMPORTANT atribute<br>
<br>
TYPE Polygon<br>
TRANSPARENCY 100<br>
TOLERANCE 10<br>
TOLERANCEUNITS pixels<br>
HEADER "templates\referencesheader.html"<br>
TEMPLATE "templates\references.html" <br>
<br>
METADATA<br>
OWS_SRS 'EPSG:4326'<br>
OWS_TITLE 'References'<br>
WMS_FEATURE_INFO_MIME_TYPE 'application/vnd.ogc.gml'<br>
gml_include_items "all"<br>
gml_exclude_items "geometry"<br>
wfs_featureid 'C_REFER_ID' <br>
ows_title 'References'<br>
END #METADATA<br>
<br>
PROJECTION <br>
'init=EPSG:4326'<br>
END <br>
<br>
CLASSITEM 'CLASSCODE'<br>
<br>
CLASS<br>
NAME 'COMPANY Publications'<br>
EXPRESSION '4'<br>
STYLE<br>
#COLOR 150 180 250<br>
OUTLINECOLOR 255 0 0<br>
#WIDTH 1.5<br>
END #STYLE<br>
END #CLASS<br>
<br>
CLASS<br>
NAME 'Industry Reports A'<br>
EXPRESSION '1'<br>
STYLE<br>
#COLOR 150 180 250<br>
OUTLINECOLOR 0 0 0<br>
#WIDTH 1.5<br>
END #STYLE<br>
END #CLASS<br>
<br>
<br>
CLASS<br>
NAME 'Industry Reports B'<br>
EXPRESSION '21'<br>
STYLE<br>
#COLOR 150 180 250<br>
OUTLINECOLOR 0 255 0<br>
#WIDTH 1.5<br>
END #STYLE<br>
END #CLASS<br>
<br>
CLASS<br>
NAME 'Misc References'<br>
EXPRESSION '0'<br>
STYLE<br>
#COLOR 150 180 250<br>
OUTLINECOLOR 0 0 255<br>
#WIDTH 1.5<br>
END #STYLE<br>
END #CLASS<br>
<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->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>