[mapserver-users] WMS for Google Earth

ben wyss bmwyss at gmail.com
Mon Jun 16 14:04:18 PDT 2008


Hello, I am trying to develop WMS to be compatible with Google Earth. My map
file seems to return a healthy XML file (no errors, and works in Cartoweb),
but it will not project (at all) in Google Earth?

 Can someone direct me toward a solution or documentation on this subject?
My XML file looks like this:

  Thanks, Ben


<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>

<!DOCTYPE WMT_MS_Capabilities SYSTEM "
http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"

 [

 <!ELEMENT VendorSpecificCapabilities EMPTY>

 ]>  <!-- end of DOCTYPE declaration -->



<WMT_MS_Capabilities version="1.1.1">



<!-- MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE -->



<Service>

  <Name>OGC:WMS</Name>

  <Title>Quakeloss2: Boumerdes - Goran</Title>

  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="
http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&"/>

  <ContactInformation>

  </ContactInformation>

</Service>



<Capability>

  <Request>

    <GetCapabilities>

      <Format>application/vnd.ogc.wms_xml</Format>

      <DCPType>

        <HTTP>

          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&amp
;"/></Get>

          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&amp
;"/></Post>

        </HTTP>

      </DCPType>

    </GetCapabilities>

    <GetMap>

      <Format>image/gif</Format>

      <Format>image/png</Format>

      <Format>image/png; mode=24bit</Format>

      <Format>image/jpeg</Format>

      <Format>image/wbmp</Format>

      <Format>image/tiff</Format>

      <Format>image/svg+xml</Format>

      <DCPType>

        <HTTP>

          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&amp
;"/></Get>

          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&amp
;"/></Post>

        </HTTP>

      </DCPType>

    </GetMap>

    <GetFeatureInfo>

      <Format>text/plain</Format>

      <Format>application/vnd.ogc.gml</Format>

      <DCPType>

        <HTTP>

          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&amp
;"/></Get>

          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&amp
;"/></Post>

        </HTTP>

      </DCPType>

    </GetFeatureInfo>

    <DescribeLayer>

      <Format>text/xml</Format>

      <DCPType>

        <HTTP>

          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&amp
;"/></Get>

          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&amp
;"/></Post>

        </HTTP>

      </DCPType>

    </DescribeLayer>

    <GetLegendGraphic>

      <Format>image/gif</Format>

      <Format>image/png</Format>

      <Format>image/png; mode=24bit</Format>

      <Format>image/jpeg</Format>

      <Format>image/wbmp</Format>

      <DCPType>

        <HTTP>

          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&amp
;"/></Get>

          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&amp
;"/></Post>

        </HTTP>

      </DCPType>

    </GetLegendGraphic>

    <GetStyles>

      <Format>text/xml</Format>

      <DCPType>

        <HTTP>

          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&amp
;"/></Get>

          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&amp
;"/></Post>

        </HTTP>

      </DCPType>

    </GetStyles>

  </Request>

  <Exception>

    <Format>application/vnd.ogc.se_xml</Format>

    <Format>application/vnd.ogc.se_inimage</Format>

    <Format>application/vnd.ogc.se_blank</Format>

  </Exception>

  <VendorSpecificCapabilities />

  <UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1"
RemoteWFS="0"/>

  <Layer>

    <Name>QL2_WMS</Name>

    <Title>Quakeloss2: Boumerdes - Goran</Title>

    <SRS>EPSG:4326</SRS>

    <SRS>EPSG:4269</SRS>

    <LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90" />

    <BoundingBox SRS="EPSG:4326"

                minx="-180" miny="-90" maxx="180" maxy="90" />

    <Layer queryable="1" opaque="0" cascaded="0">

        <Name>damage</Name>

        <Title>Damage and Losses</Title>

        <SRS>EPSG:4326</SRS>

        <SRS>EPSG:4269</SRS>

        <LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07"
maxy="2.5e+07" />

        <BoundingBox SRS="EPSG:4326"

                    minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07"
maxy="2.5e+07" />

        <Style>

          <Name>default</Name>

          <Title>default</Title>

          <LegendURL width="20" height="10">

             <Format>image/png</Format>

             <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="
http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=damage&format=image/png
"/>

          </LegendURL>

        </Style>

    </Layer>

  </Layer>

</Capability>

</WMT_MS_Capabilities>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080616/8d5b9d17/attachment.htm>


More information about the MapServer-users mailing list