Opened 17 years ago

Closed 17 years ago

#2050 closed defect (fixed)

upgrade the sos model to support several sensors per layer

Reported by: assefa Owned by: assefa
Priority: high Milestone:
Component: SOS Server Version: 5.0
Severity: normal Keywords:
Cc:

Description

In the current Mapserver SOS model, we have to specify 1 procedure (station) per
layer (using the sos_procedure metadata at the layer level). When the user wants
to use several stations, we eneded up duplication the layers with the procedure
being the only thing changing between layers 

The proposed change is to allow a use to specify a attribute from it's data that
can be ised as the procedure. Thus he could group into the same layer several
stations and the procedure could be extrcated from the data. 
To implement this the intention is to use an sos_procedure_item metadata.

Change History (3)

comment:1 by tomkralidis, 17 years ago

Cc: tom.kralidis@… added

comment:2 by assefa, 17 years ago

Current support has been upgraded to use a new metadata called sos_procedure_item. The value for sos_procedure_item is the field name containing the procedure values The use of this metadata as well as the sos_procedure is described here per type of request:

  1. GetCapabilities
    1. if sos_procedure is defined, use it
    2. if not look for sos_procedure_item : procedure values are extracted from the layer's attribute specified by this metadata. Not that this can be time consuming for layers with a large number of features.
    3. if none is defined return an exception

  1. DescribeProcedure
    1. if sos_procedure is defined, use it
    2. if not look for sos_procedure_item : procedure values are extracted from the layer's attribute specified by this metadata. Not that this can be time consuming for layers with a large number of features.
    3. if none is defined return an exception
  1. GetObservation

Both sos_procedure and sos_procedure_item can be define. Here are the cases:

  1. if only sos_procedure is defined:
    1. Use this metadata to match the layer with the procedure value sent in the request
    2. When outputing the <member/procedure> output the value of the metadata
  2. if only procedure_item is defined:
    1. se the sos_procedure_item and do a query on the layer to match the procedure with the layer.
    2. When outputting the <member/procedure> use the procedure_item as a way to only output the attribute value corresponding to the feature.
  3. both are defined:
    1. check in sos_procedure to match the procedure with the layer.
    2. When outputting the <member/procedure> use the procedure_item as a way to only output the attribute value corresponding to the feature

comment:3 by assefa, 17 years ago

Resolution: fixed
Status: newclosed

Closed. Doc updated.

Note: See TracTickets for help on using tickets.