Mapscript and SOS
Kralidis,Tom [Burlington]
Tom.Kralidis at EC.GC.CA
Fri Jul 6 08:00:53 PDT 2007
Trying this with svn trunk gives me blanks for all responses for SOS. Yet WMS and WFS seem to work (for GetCapabilities).
Using svn trunk, When testing a simple PHP Mapscript WxS:
<?php
dl("php_mapscript.so");
$request = ms_newowsrequestobj();
foreach ($_GET as $k=>$v) {
$request->setParameter($k, $v);
}
ms_ioinstallstdouttobuffer();
$oMap = ms_newMapobj("/path/to/config.map");
$oMap->owsdispatch($request);
$contenttype = ms_iostripstdoutbuffercontenttype();
$buffer = ms_iogetstdoutbufferstring();
header('Content-type: text/xml');
echo $buffer;
ms_ioresethandlers();
?>
- issuing a WMS 1.1.1 GetCapabilities works as expected
- issuing a WFS 1.0.0 GetCapabilities works as expected
- issuing a SOS 0.1.2b GetCapabilities returns a blank
Assefa: is there anything else in mapogcsos.c we have to do to make it mapscript WxS friendly?
..Tom
> -----Original Message-----
> From: UMN MapServer Users List
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of
> Kralidis,Tom [Burlington]
> Sent: 03 July, 2007 11:51 AM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] Mapscript and SOS
>
> Weird. What happens (in terms of the response) when you do a
> GetCapabilities via mapscript and regular SOS request? I
> wonder if the metadata is actually being set.
>
> ..Tom
>
>
> > -----Original Message-----
> > From: UMN MapServer Users List
> > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of "Peter Löwe"
> > Sent: 03 July, 2007 11:46 AM
> > To: MAPSERVER-USERS at LISTS.UMN.EDU
> > Subject: Re: [UMN_MAPSERVER-USERS] Mapscript and SOS
> >
> > Hello Tom:
> >
> > After calling up
> > http://localhost/swe/php_sos0.php?Request=GetObservation&servi
> > ce=SOS&offering=oid_1&observedproperty=1234&procedure=sputnik0
> > 01&version=0.0.31
> >
> > the apache access_log holds:
> >
> > ::1 - - [03/Jul/2007:17:36:37 +0200] "GET
> > /swe/php_sos0.php?Request=GetObservation&service=SOS&offering=
> > oid_1&observedproperty=1234&procedure=sputnik001&version=0.0.3
> > 1 HTTP/1.1" 200 790
> >
> > and this piece of XML is returned:
> >
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> <om:ObservationCollection
> > xmlns:gml="http://www.opengis.net/gml"
> > xmlns:ows="http://www.opengis.net/ows"
> > xmlns:swe="http://www.opengis.net/swe"
> > xmlns:xlink="http://www.w3.org/1999/xlink"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:sos="http://www.opengis.net/sos"
> > xmlns:om="http://www.opengis.net/om" gml:id="oid_1"
> > xsi:schemaLocation="http://www.opengeospatial.net/om
> > http://schemas.opengeospatial.net/om.xsd">
> > <om:eventTime>
> > <gml:TimePeriod xmlns:gml="http://www.opengis.net/gml">
> > <gml:beginPosition
> > xmlns:gml="http://www.opengis.net/gml">1982</gml:beginPosition>
> > <gml:endPosition
> > xmlns:gml="http://www.opengis.net/gml">2007</gml:endPosition>
> > </gml:TimePeriod>
> > </om:eventTime>
> > </om:ObservationCollection>
> >
> >
> >
> > ..Peter
> >
> >
> > >Can you check your server logs see, exactly, what mapscript
> > sends as the >GetObservation request?
> > >
> > >..Tom
> > --
> > Dr. Peter Löwe
> > <peter.loewe at gmx.de>
> >
> >
> >
> >
> >
> > Psssst! Schon vom neuen GMX MultiMessenger gehört?
> > Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
> >
>
More information about the MapServer-users
mailing list