istsoslib.responders package

Submodules

istsoslib.responders.DSresponse module

class istsoslib.responders.DSresponse.DescribeSensorResponse(filter, pgdb)

Responer for the DescribeSensor request

smlFile

sensorML of this sensor

procedureType

type of sensor

stime

start time of this sensor

Type:str
etime

end time of this sensor

Type:str
observedProperties

the list of observed properties of this sensor

Note

observedProperties is a list of rows as: [“def_opr”, “name_opr”, “desc_opr”, “constr_pro”, “name_uom”]

Type:list

istsoslib.responders.GCresponse module

istsoslib.responders.GCresponse.BuildEnvelopeMinMax(pgdb, sosConfig)
istsoslib.responders.GCresponse.BuildEventTimeRange(pgdb, sosConfig)

Generate observation time interval

Parameters:
  • pgdb (obj) – the database object istsoslib.sosDatabase.PgDB
  • sosCOnfig (obj) – the istsos configuration object
Returns:

a two element list with begin and end position of sensor observations

Return type:

eventime (list)

istsoslib.responders.GCresponse.BuildOffEnvelope(pgdb, id, sosConfig)

Generate offering envelope

Parameters:
  • pgdb (obj) – the database object istsoslib.sosDatabase.PgDB
  • sosCOnfig (obj) – the istsos configuration object
Returns:

gml representation of offering bounding box as gml:envelope

Return type:

envel (str)

istsoslib.responders.GCresponse.BuildOffFoiList(pgdb, id, sosConfig)

Generate the list of feture of interest for a given offering

Parameters:
  • pgdb (obj) – the database object istsoslib.sosDatabase.PgDB
  • id (int) – the offering id
  • sosCOnfig (obj) – the istsos configuration object
Returns:

the list of feture of interest associated to the given offering id

Return type:

fois (list)

istsoslib.responders.GCresponse.BuildOffObsPrList(pgdb, id, sosConfig)

Generate the list of properties for a given offering

Parameters:
  • pgdb (obj) – the database object istsoslib.sosDatabase.PgDB
  • id (int) – the offering id
  • sosCOnfig (obj) – the istsos configuration object
Returns:

the list of properties associated to the given offering id

Return type:

properties (list)

istsoslib.responders.GCresponse.BuildOffProcList(pgdb, id, sosConfig)

Generate the list of procedures for a given offering

Parameters:
  • pgdb (obj) – the database object istsoslib.sosDatabase.PgDB
  • id (int) – the offering id
  • sosCOnfig (obj) – the istsos configuration object
Returns:

the list of procedured belonging to the given offering id

Return type:

procedures (list)

istsoslib.responders.GCresponse.BuildOffTimePeriod(pgdb, id, sosConfig)

Generate offering time interval

Parameters:
  • pgdb (obj) – the database object istsoslib.sosDatabase.PgDB
  • id (int) – the offering id
  • sosCOnfig (obj) – the istsos configuration object
Returns:

a two element list with begin and end position of the given offering id

Return type:

eventime (list)

istsoslib.responders.GCresponse.BuildOfferingList(pgdb, sosConfig)

Generate the offering list

Parameters:
  • pgdb (obj) – the database object istsoslib.sosDatabase.PgDB
  • sosCOnfig (obj) – the istsos configuration object
Returns:

the list of offering names

Return type:

offeringList (list)

istsoslib.responders.GCresponse.BuildOfferingList_2_0_0(pgdb, sosConfig)

Generate the sensor list

Parameters:
  • pgdb (obj) – the database object istsoslib.sosDatabase.PgDB
  • sosCOnfig (obj) – the istsos configuration object
Returns:

the list of sensor names

Return type:

sensorList (list)

istsoslib.responders.GCresponse.BuildSensorIdList(pgdb, sosConfig)

Generate the sensor list

Parameters:
  • pgdb (obj) – the database object istsoslib.sosDatabase.PgDB
  • sosCOnfig (obj) – the istsos configuration object
Returns:

the list of sensor names

Return type:

sensorList (list)

istsoslib.responders.GCresponse.BuildSensorList(pgdb, sosConfig)

Generate the list of sensors

Parameters:
  • pgdb (obj) – the database object istsoslib.sosDatabase.PgDB
  • sosCOnfig (obj) – the istsos configuration object
Returns:

the list of sensors

Return type:

sensors (list)

istsoslib.responders.GCresponse.BuildfeatureOfInterestList(pgdb, sosConfig)

Generate feature of interests

Parameters:
  • pgdb (obj) – the database object istsoslib.sosDatabase.PgDB
  • sosCOnfig (obj) – the istsos configuration object
Returns:

a list of unique feature of interests

Return type:

fois (list)

istsoslib.responders.GCresponse.BuildobservedPropertyList(pgdb, sosConfig)

Generate observed properties

Parameters:
  • pgdb (obj) – the database object istsoslib.sosDatabase.PgDB
  • sosCOnfig (obj) – the istsos configuration object
Returns:

a list of unique observed properties definitions

Return type:

obsprop (list)

class istsoslib.responders.GCresponse.GetCapabilitiesResponse(fil, pgdb)

The GetCapabilitiesResponse object

ServiceIdentifier

list of ServiceIdentifier objects (istsoslib.responders.GCresponse.ServiceIdentifier)

Type:list
ServiceProvider

list of ServiceProvider objects (istsoslib.responders.GCresponse.ServiceProvider)

Type:list
OperationsMetadata

list of OperationsMetadata objects (istsoslib.responders.GCresponse.OperationsMetadata)

Type:list
ObservationOfferingList

list of ObservationOfferingList objects (istsoslib.responders.GCresponse.ObservationOfferingList)

Type:list
.. note::

Attributes may vary depending of sections argument values

class istsoslib.responders.GCresponse.ObservationOfferingList(pgdb, sosConfig)

Observation offering list object

offerings

list of offerings objects (istsoslib.responders.GCresponse.Offering)

Type:list
responseFormat

response format

Type:str
resultModel

result model

Type:str
responseMode

response mode

Type:str
class istsoslib.responders.GCresponse.ObservationOfferingList_2_0_0(pgdb, sosConfig)

Observation offering list object

offerings

list of offerings objects (istsoslib.responders.GCresponse.Offering)

Type:list
responseFormat

response format

Type:str
resultModel

result model

Type:str
responseMode

response mode

Type:str
class istsoslib.responders.GCresponse.Offering

The Offering object

id

offering id

Type:str
name

offering name

Type:str
desc

offering description

Type:str
boundedBy

offering bounding box

Type:str
beginPosition

offering starting time of observation

Type:str
endPosition

offering end time of observation

Type:str
procedures

procedures list

Type:list
obsProp

observed properties list

Type:list
fois

feature of interest list

Type:list
class istsoslib.responders.GCresponse.Offering_2_0_0

The Offering object for SOS 2.0.0

id

offering id

Type:str
name

offering name

Type:str
desc

offering description

Type:str
boundedBy

offering bounding box

Type:str
beginPosition

offering starting time of observation

Type:str
endPosition

offering end time of observation

Type:str
procedures

procedures list

Type:list
obsProp

observed properties list

Type:list
fois

feature of interest list

Type:list
class istsoslib.responders.GCresponse.Operation(name, get='', post='')

Operation object

name

operation name

Type:str
get

address for get request

Type:str
post

address for post request

Type:str
parameters

list of parameter objects istsoslib.responders.GCresponse.Parameter

Type:list
addParameter(name, use='optional', allowedValues=[], range=[], referenceSystem=False)
class istsoslib.responders.GCresponse.OperationsMetadata(pgdb, sosConfig)

The GetCapabilities Metadata section object

OP

list of offered requests

Note

Each request is a list of operation objects (istsoslib.responders.GCresponse.Operation) with specific parameters

Type:list
srslist = None

GetCapabilities

class istsoslib.responders.GCresponse.OperationsMetadata_2_0_0(pgdb, sosConfig)

The GetCapabilities Metadata section object for SOS 2.0.0

OP

list of offered requests

Note

Each request is a list of operation objects (istsoslib.responders.GCresponse.Operation) with specific parameters

Type:list
class istsoslib.responders.GCresponse.Parameter(name, use='optional', allowedValues=[], range=[], referenceSystem=False)

Parameter object

name

attribute name

Type:str
use

attribute use

Type:str
allowedValues

allowed values

Type:list
range

ranges

Type:list
class istsoslib.responders.GCresponse.ServiceIdentification(sosConfig)

Service identification of the GetCapabilities responseFormat

title

service name

Type:str
abstract

service abstract

Type:str
keywords

service keywords

Type:str
serviceTypeCode

service type code

Type:str
serviceTypeValue

service type value

Type:str
serviceTypeVersion

service type version

Type:str
fees

service fees

Type:str
accessconstrains

service access constrains

Type:str
class istsoslib.responders.GCresponse.ServiceProvider(sosConfig)

Service provider of the GetCapabilities responseFormat

providerName

provider name

Type:str
providerSite

provider site

Type:str
individualName

individual name

Type:str
positionName

position name

Type:str
contactVoice

contact voice number

Type:str
contactFax

contact fax number

Type:str
contactDelivery

contact delivery address

Type:str
contactCity

contact city

Type:str
contactArea

contact area

Type:str
contactPostCode

contact post code

Type:str
contactCountry

contact country

Type:str
contactMail

contact email

Type:str

istsoslib.responders.GFresponse module

class istsoslib.responders.GFresponse.foi(filter, pgdb)

The Feature of interest object

name

feature of interest name

Type:str
type

feature of interest type

Type:str
desc

description of the feature of interest

Type:str
procedures

ordered list of procedures

Type:list
idPrc

ordered list of procdures id

Type:list
obsType

list of observation types

Type:list
samplingTime

list of eventime elements, one (instant) or two (period)

Type:list
properties

list of preperties

Type:list
geom

the feature of interest geometry as GML

Type:str

istsoslib.responders.GOresponse module

istsoslib.responders.IOresponse module

class istsoslib.responders.IOresponse.InsertObservationResponse(filter, pgdb)
procConstr = None

Building a matrix:

oprNames = [“urn:ogc:def:parameter:x-istsos:1.0:” +
“meteo:air:temperature” , …]

oprUoms = [“mm” , …] oprIds = [id_opr , …] proIds = [id_pro , …] obsPropConstr = [{

“interval”: [“-40”, “50”], “role”: “urn:ogc:def:classifiers:x-istsos:1.0:” +

“qualityIndex:check:acceptable”} , …]
procConstr = [{

“max”: “100”, “role”: “urn:ogc:def:classifiers:x-istsos:1.0:” +

“qualityIndex:check:reasonable”} , …]

istsoslib.responders.RSresponse module

istsoslib.responders.USDresponse module

class istsoslib.responders.USDresponse.UpdateSensorDescriptionResponse(filter, pgdb)
istsoslib.responders.USDresponse.get_name_from_urn(stringa, urnName, sosConfig)

istsoslib.responders.factory_response module

istsoslib.responders.factory_response.sosFactoryResponse(sosFilter, pgdb)

Module contents