Hi! I'm continuing to create a SOS SERVER with Mapserver 7.0.1. I used "sos_procedure_item" to create several "procedure" in a LAYER. They appears ok in GetCapabilities: (--- removed a lot of data ---) <sos:procedure xlink:href=""/> <sos:procedure xlink:href=""/> <sos:procedure xlink:href=""/> <sos:procedure xlink:href=""/> <sos:procedure xlink:href=""/> <sos:procedure xlink:href=""/> (--- removed a lot of data ---) But I want to filter GetObservation with "procedure". Parameter "procedure" of GetObservation Request (OGC 06-009r6 document, page 29):
<?xml version="1.0" encoding="UTF-8"?> <sos:GetObservation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sos/1.0 http://schemas.opengis.net/sos/1.0.0/sosAll.xsd" xmlns:sos="http://www.opengis.net/sos/1.0" xmlns:om="http://www.opengis.net/om/1.0" service="SOS" version="1.0.0" srsName="EPSG:4326"> <sos:offering>Estaciones</sos:offering> <sos:observedProperty>datos_station</sos:observedProperty> <sos:procedure>1-D</sos:procedure> <sos:responseFormat>text/xml; subtype="om/1.0.0"</sos:responseFormat> <sos:resultModel>om:Observation</sos:resultModel> <sos:responseMode>inline</sos:responseMode> </sos:GetObservation> The server returns: <?xml version="1.0" encoding="UTF-8"?> <om:ObservationCollection xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:swe="http://www.opengis.net/swe/1.0.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sos="http://www.opengis.net/sos/1.0" xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xmlns:om="http://www.opengis.net/om/1.0" gml:id="Estaciones" xsi:schemaLocation="http://www.opengis.net/om/1.0 http://schemas.opengis.net/om/1.0.0/om.xsd http://mapserver.gis.umn.edu/mapserver http://hergest.synology.me/sos?service=WFS&version=1.1.0&request=DescribeFeatureType&typename=test_sos_layer"> <gml:description xmlns:gml="http://www.opengis.net/gml">Datos de estaciones</gml:description> <gml:name xmlns:gml="http://www.opengis.net/gml">Estaciones</gml:name> </om:ObservationCollection> With no data. I tried "urn:ogc:def:procedure:1-D", but return error: <ows:ExceptionText>msSOSGetCapabilities(): SOS server error. Invalid procedure value urn:ogc:def:procedure:1-D</ows:ExceptionText> </ows:Exception> If I remove the "procedure" filter, the server returns all the procedures data ok: <?xml version="1.0" encoding="UTF-8"?> <om:ObservationCollection xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:swe="http://www.opengis.net/swe/1.0.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sos="http://www.opengis.net/sos/1.0" xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xmlns:om="http://www.opengis.net/om/1.0" gml:id="Estaciones" xsi:schemaLocation="http://www.opengis.net/om/1.0 http://schemas.opengis.net/om/1.0.0/om.xsd http://mapserver.gis.umn.edu/mapserver http://hergest.synology.me/sos?service=WFS&version=1.1.0&request=DescribeFeatureType&typename=test_sos_layer"> <gml:description xmlns:gml="http://www.opengis.net/gml">Datos de estaciones</gml:description> <gml:name xmlns:gml="http://www.opengis.net/gml">Estaciones</gml:name> <om:member> <om:Observation> <om:procedure xlink:href=""/> <om:observedProperty> <swe:CompositePhenomenon gml:id="datos_station" dimension="6"> <gml:name>Datos de estación</gml:name> <swe:component xlink:href=""/> <swe:component xlink:href=""/> <swe:component xlink:href=""/> <swe:component xlink:href=""/> <swe:component xlink:href=""/> <swe:component xlink:href=""/> </swe:CompositePhenomenon> </om:observedProperty> <om:resultDefinition> <swe:DataBlockDefinition> <swe:components> <swe:DataRecord> <swe:field name="time"> <swe:Time definition="urn:ogc:phenomenon:time:iso8601"/> </swe:field> <swe:field name="StationId"> <swe:Quantity definition="Id-Variable"> <swe:uom code="string"/> </swe:Quantity> </swe:field> <swe:field name="sta_ia_id"> <swe:Quantity definition="Id de la estación"> <swe:uom code="integer"/> </swe:Quantity> </swe:field> <swe:field name="variable"> <swe:Quantity definition="Variable"> <swe:uom code="variable"/> </swe:Quantity> </swe:field> <swe:field name="valor"> <swe:Quantity definition="Valor de la medida"> <swe:uom code="m2"/> </swe:Quantity> </swe:field> <swe:field name="nombrefoi"> <swe:Quantity definition="Nombre del FOI"> <swe:uom code="Localidad"/> </swe:Quantity> </swe:field> </swe:DataRecord> </swe:components> <swe:encoding> <swe:TextBlock tokenSeparator="," blockSeparator=" " decimalSeparator="."/> </swe:encoding> </swe:DataBlockDefinition> </om:resultDefinition> <om:result>2016/06/17 02:00:00,1-D,1,D,798,Danube</om:result> </om:Observation> </om:member> <om:member> <om:Observation> <om:procedure xlink:href=""/> <om:observedProperty> <swe:CompositePhenomenon gml:id="datos_station" dimension="6"> <gml:name>Datos de estación</gml:name> <swe:component xlink:href=""/> <swe:component xlink:href=""/> <swe:component xlink:href=""/> <swe:component xlink:href=""/> <swe:component xlink:href=""/> <swe:component xlink:href=""/> </swe:CompositePhenomenon> </om:observedProperty> <om:resultDefinition> <swe:DataBlockDefinition> <swe:components> <swe:DataRecord> <swe:field name="time"> <swe:Time definition="urn:ogc:phenomenon:time:iso8601"/> </swe:field> <swe:field name="StationId"> <swe:Quantity definition="Id-Variable"> <swe:uom code="string"/> </swe:Quantity> </swe:field> <swe:field name="sta_ia_id"> <swe:Quantity definition="Id de la estación"> <swe:uom code="integer"/> </swe:Quantity> </swe:field> <swe:field name="variable"> <swe:Quantity definition="Variable"> <swe:uom code="variable"/> </swe:Quantity> </swe:field> <swe:field name="valor"> <swe:Quantity definition="Valor de la medida"> <swe:uom code="m2"/> </swe:Quantity> </swe:field> <swe:field name="nombrefoi"> <swe:Quantity definition="Nombre del FOI"> <swe:uom code="Localidad"/> </swe:Quantity> </swe:field> </swe:DataRecord> </swe:components> <swe:encoding> <swe:TextBlock tokenSeparator="," blockSeparator=" " decimalSeparator="."/> </swe:encoding> </swe:DataBlockDefinition> </om:resultDefinition> <om:result>2016/06/17 07:00:00,1-W,1,W,3.71,Danube</om:result> </om:Observation> </om:member> <om:member> (--- removed a lot of data ---) What am I doing wrong? How I can get data from a single procedure? Thanks in advance. PD: The ".map" file: MAP NAME ESTACIONES_SOS STATUS ON SIZE 300 300 EXTENT -180 -90 180 90 UNITS METERS IMAGECOLOR 255 255 255 IMAGETYPE png WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "sos_title" "Servidor SOS de Estaciones" "ows_abstract" "SOS de Estaciones" "sos_onlineresource" "http://hergest.synology.me/sos" "sos_srs" "EPSG:4326" "ows_enable_request" "*" "ows_keywordlist" "SOS" "sos_keywordlist" "Estaciones medición caudal río" "ows_fees" "gratuito" "ows_accessconstraints" "Este servicio se puede usar de modo libre y gratuito siempre que se mencione a los autores y propietarios de la informacion" "ows_contactorganization" "Consejeria de Medio Ambiente y Ordenacion del Territorio. Junta de Andalucia" "ows_contactperson" "" "ows_contactposition" "Servicio de Informacion y Analisis Ambiental" "ows_contactvoicetelephone" "+34955003400" "ows_contactfacsimiletelephone" "" "sos_contactelectronicmailaddress" "rediam.cm...@juntadeandalucia.es" "ows_address" "Avda. Manuel Siurot,50" "ows_city" "Sevilla" "ows_stateorprovince" "Andalucia" "ows_postcode" "41071" "ows_country" "Spain" "ows_hoursofservice" "24h" "ows_contactinstructions" "" "ows_role" "" "sos_maxfeatures" "5000" "ows_language" "spa-CA" END END PROJECTION "init=epsg:4326" END LAYER NAME "test_sos_layer" METADATA "sos_procedure_item" "StationId" "sos_offering_id" "Estaciones" "sos_offering_name" "Estaciones" "sos_offering_description" "Datos de estaciones" "sos_offering_intendedapplication" "Natural resource planning" ## Texto opcional "sos_observedproperty_id" "datos_station" "sos_observedproperty_version" "1.0" "sos_observedproperty_name" "Datos de estación" "sos_describesensor_url" "http://hergest.synology.me/prueba/dummy_%procedure%.xml" ## REQUIRED (POR HACER!) "sos_timeitem" "timestamp" "gml_include_items" "all" ## Para WFS "sos_StationId_alias" "StationId" "sos_StationId_definition" "Id-Variable" "sos_StationId_uom" "string" "sos_sta_ia_id_alias" "sta_ia_id" "sos_sta_ia_id_definition" "Id de la estación" "sos_sta_ia_id_uom" "integer" "sos_variable_alias" "variable" "sos_variable_definition" "Variable" "sos_variable_uom" "variable" "sos_valor_alias" "valor" "sos_valor_definition" "Valor de la medida" "sos_valor_uom" "m2" "sos_nombrefoi_alias" "nombrefoi" "sos_nombrefoi_definition" "Nombre del FOI" "sos_nombrefoi_uom" "Localidad" END TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "sos_data.ovf" DATA "sos_data" PROJECTION "init=epsg:4326" END CLASS NAME "test_sos_layer" COLOR 255 0 0 SIZE 10 END END END #map |
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users