Open tbonfort opened 12 years ago
Author: assefa Date: 2007/03/30 - 03:06
adding Tom in cc
Author: tomkralidis Date: 2007/03/30 - 03:44
Options:
- pass pszProdedure in msSOSGetObservation() to the code which then calls
msSOSAddMemberNode()
- when a match is found while looping (via sos_procedure OR
sos_procedure_item), then break and set the procedure ID and pass to
msSOSAddMemberNode()
This would work for requests which pass single procedure parameters.
Are we supporting procedure parameters passed as lists? If yes, then we need
some more logic to pass these lists and match them up on output
O
Author: tomkralidis Date: 2007/03/30 - 20:18
Update:
sos_procedure, as defined as a space seperated list of procedures, is to be
applied to GetCapabilities and DescribeSensor requests only, so that MapServer,
if sos_procedure is defined, can quickly process as opposed to processing
through the dataset. So, even if sos_procedure_item is defined, it's not used
for GetCapabilities and DescribeSensor
For GetObservation, sos_procedure cannot be used in all cases. In the case of a
GetObservation request with no procedure parameter passed, sos_procedure would
be passed as a whole.
So, upon discussion with Assefa, we realize that sos_procedure_item MUST be
defined for GetObservation request.
for msSOSGetObservation(), the code shall first check if sos_procedure_item is
defined. If not, an ExceptionReport should be returned. If sos_procedure_item
is defined, then MapServer will output the procedure per member as per the value
in that column foreach record.
Author: Assefa Date: 2007/04/25 - 02:09 I would like to make a comment regarding the last update :
for GetObservation, I think It should be valid only to define an sos_procedure and not sos_procedure_item. This could be the case where we have one procedure per layer. So if the sos_prodecure_item is not define we can just output what there is in sos_procedure
What do you think about this ?
I have made the changes in cvs so that It uses the procedure_item for each feature if defined.
I will wait on TomK comments to see if we should clsoe this bug
Author: tomkralidis Date: 2007/04/25 - 15:30
So, for !GetObservation, if sos_procedure_item is defined, then use it to look up and match the procedures to the observations. If sos_procedure_item is not defined, then apply the entire sos_procedure value to the procedure of the observation.
This is okay with me for !GetObservation, however how does this impact !GetCapabilities and !DescribeSensor? Remember we put sos_procedure as a list string for these operations to use as opposed to running through an entire table.
Author: assefa Date: 2007/04/25 - 15:59 The GetCapbilities :
DescribeSensor
check first sos_procedure if found use it. If not found look for procedure_item.
GetObservation
case 1 : only procedure is defined : check in sos_procedure to match the procedure with the layer. When outputing the <member/procedure> output the value of the metadata case 2 : only procedure_item is defined : use the sos_procedure_item and do a query on the layer to match the procedure with the layer. When outputing the <member/procedure> use the procedure_item as a way to only output the attribute value corresponding to the feature. case 3 : both are defined. check in sos_procedure to match the procedure with the layer. When outputing the <member/procedure> use the procedure_item as a way to only output the attribute value corresponding to the feature.
Author: tomkralidis Date: 2007/04/25 - 16:02 Works. As discussed off trac.
Reporter: assefa Date: 2007/03/30 - 03:00