Personal tools
You are here: Home gvSIG Projects gvSIG Mobile Documentation Documentación de desarrollo org.gvsig.sensors.mobile SOS-T analysis Detailed View org.gvsig.mobile.remoteclient.sos
gvSIG Mobile
gvSIG Mobile

Cached time 11/21/13 18:02:24 Clear cache and reload

 
gvSIG Mobile will receive sensor measures, due to upload them to the SOS server, the data have to be formatted as a XML file. In order to build the answer there will be several templates with some wildcards characters, these wildcards allow be substituted with the sensor data, time, server or sensor id. 

First of all the Sensor have to be registered by the SOS server.
In order to do that, the SOS-T Library will try to register the sensor to the server.
Next the insert sensor operation are explained.  

InsertSensor Operation
----------------------

The InsertSensor operation allows a client to register a new sensor system at the SOS. The operation is part of the Sensor Insertion requirements class. Sensor observations can only be inserted for sensors that have first been inserted in the SOS.

InsertSensor XML Example
-------------------------

52º North it’s the most complete implementation of the OGC SOS standard, because implements the transactional profile. If we take a look to the examples can think out the minimum useful template.    

.. code-block:: xml

 
 
   
     
     
       
       
         

         
           
             
               
                 urn:ogc:object:feature:Sensor:### SENSOR  IDENTIFIER WILDCARD ###
               
             
           
         

         
           
             
               
                 true
               
             
 
             
               
                 true
               
             
           
         
               
         
               
                   
                       
                          
                              
                                 
                                 ### LATITUDE VALUE WILDCARD ###
                              
                          
                          
                             
                                
                                ### LONGITUDE VALUE WILDCARD ###
                             
                          
                          
                             
                                
                                ### ALTITUDE VALUE WILDCARD ###
                            
                          
                       
                   
                
         
       
         
           
             
               
                 
                   
                     ### OFFERING IDENTIFIER WILDCARD ###
                      ### OFFERING NAME WILDCARD ###
                   
                  
                
               
             
           
         
       
     
    
   

    
     
       
       
       
       
       
     
   
     
 

InsertObservation Operation
---------------------------

The InsertObservation operation allows clients to insert new observations for a registered sensor system.

Workflow of Observation Insertion
---------------------------------

A sensor data producer first requests the service metadata before new observations can be inserted into an SOS.

1. The service metadata is retrieved by invoking the GetCapabilities operation. The returned Capabilities document contains, within the Contents section, the procedures which are registered at the SOS. The InsertionCapabilities section lists the observation types and result types which are supported by the SOS for insertion.
2. If it has not been registered at the SOS, the InsertSensor operation is called to insert the procedure description of the observation procedure. The SOS returns the ObservationOffering to which the procedure has been assigned.
3. Finally, the observation can be inserted using the InsertObservation operation, by specifying the ObservationOffering to which it shall be uploaded. 

Next are shown the minimum working XML templates that works with 52º North server.

.. code-block:: xml

 
 
  urn:ogc:object:feature:Sensor:### SENSOR  IDENTIFIER WILDCARD ###
          
    
      
        2008-04-01T19:44:15+00
      
    
    
    
    
    
    
      
    
    
    
      
      
        ### SENSOR VALUES TO  INSERT ###
      
    
    
 

View source document


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: