[mapserver-users] WMS in Google Earth
Frank Broniewski
liste at geo-dienstleistung.de
Mon Oct 6 00:43:35 PDT 2008
On Friday 03 October 2008 14:50:58 Alexandre Dube wrote:
> Tom,
>
> The log told me : "SERVICE parameter missing"... I must have done
> something wrong with my first attempt because now it's working if I add
> "service=WMS" in the Link string.
>
> Thank you very much,
>
> Alexandre
>
> Alexandre Dube wrote:
> > OK, I'll try that.
> >
> > Many thanks, Tom
> >
> > Alexandre
> >
> > Kralidis,Tom [Burlington] wrote:
> >> Right, those may or may not have MapServer WMSs with the service=
> >> required behaviour.
> >>
> >> That said, I can connect a WMS from my local ms4w to Google Earth
> >> without problem.
> >>
> >> Try this and check your web logs. See the actual request passed by
> >> GE, and this should help you diagnose the issue.
> >>
> >> Since you are using 5.2.0, I would not suspect it's an issue of a
> >> missing styles= parameter.
> >>
> >> ..Tom
> >>
> >>
> >>
> >> -----Original Message-----
> >> From: Alexandre Dube [mailto:adube at mapgears.com]
> >> Sent: Fri 03-Oct-08 08:09
> >> To: Kralidis,Tom [Burlington]
> >> Cc: MAPSERVER USERS
> >> Subject: Re: [mapserver-users] WMS in Google Earth
> >>
> >> Hi Tom,
> >>
> >> Thanks for your reply, but unfortunately that didn't solved the
> >> problem. In fact, the existing WMS servers in GE, don't use
> >> "service=WMS" in any "Link" string and they work...
> >>
> >> However, the wms_onlineresource IS always the first part of the
> >> "Link" string, not the actual local link you copy/paste when in the
> >> "WMS Parameters" menu... Does this means that GE don't accept local
> >> wms_onlineresource ? I think this could make sense...
> >>
> >> Any ideas ?
> >>
> >> Alexandre
> >>
> >> Kralidis,Tom [Burlington] wrote:
> >>>> -----Original Message-----
> >>>> From: mapserver-users-bounces at lists.osgeo.org
> >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of
> >>>> Alexandre Dube
> >>>> Sent: 02 October, 2008 4:40 PM
> >>>> To: MAPSERVER USERS
> >>>> Subject: Re: [mapserver-users] WMS in Google Earth
> >>>>
> >>>> Back with my local WMS on GE problem. I think it has something to
> >>>> do with the wms_onlineresource in WEB METADATA.
> >>>>
> >>>> I downloaded the gmap datas, which are already in GE as the last
> >>>> WMS service available, to be able to test locally what is already
> >>>> working on the internet. At first, it worked in GE. Then, I
> >>>> noticed that the wms_onlineresource was set to :
> >>>> "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"
> >>>> which seemed wrong to me, because my other map doesn't exist on the
> >>>> internet, only locally.
> >>>>
> >>>> So I changed it to :
> >>>> "http://127.0.0.1:port/cgi-bin/mapserv?map=/my/local/path/gmap
> >>>> 75_wms.map&"
> >>>> and then I doesn't work anymore... also tried :
> >>>> "http://127.0.0.1:port/cgi-bin/mapserv?"
> >>>> no result...
> >>>>
> >>>> I must be close the the answer. I have searched a lot over the
> >>>> internet but I haven't found anything yet. Any hints ?
> >>>>
> >>>> Alexandre
> >>>>
> >>>> Alexandre Dube wrote:
> >>>>> Hi list,
> >>>>>
> >>>>> I'm trying to figure how to setup my own wms layer in GE. So
> >>>>> far, I'm able to see each layer in the "WMS Parameters", but if I
> >>>>> select any, I get a big red X, meaning it's not working...
> >>>>>
> >>>>> If I copy the "Link" created by GE, paste it in a browser, add
> >>>>> "&SERVICE=WMS&BBOX=-180,-90,180,90", then I get a map. So, I
> >>>>> don't really know what I'm missing here. Any hint ? I use
> >>>>
> >>>> mapserver 5.2.0
> >>>>
> >>>>> on Linux.
> >>>
> >>> This might be due to the SERVICE parameter missing WMS GetMap request.
> >>> If you, once you add the layer, right click and select "Properties",
> >>> adding "&service=WMS" to the Link string, you should be able to get a
> >>> valid map image returned.
> >>>
> >>> That said, I thought we lifted the service param from WMS GetMap
> >>> requests (GetMap sans service= works for me in svn trunk).
> >>>
> >>> ..Tom
Hi,
though I am not using mapserver 5.2 but 5.02 ;-) I noticed a behavior from GE
always resetting the imageformat of the request string to image/gif. Maybe
this is your problem? So when leaving the WMS Parameters page check the
created URI in the link field for the correct imagetype.
HTH Frank
More information about the MapServer-users
mailing list