Last modified: Mon, 04/03/2017 - 17:29
A description of how to get the constraints that can be applied to a particular dataset and variable.
This action will return a list of constraint objects that are applicable to particular dataset and variable in an LAS installation. The URL for this action is:
http://server.gov:8080/las/getDataConstraints.do?dsid=datasetID&varid=va... example, the response for an LAS that contains the platforms data set and the sst variable. http://ferret.pmel.noaa.gov/las/getDataConstraints.do?dsid=platforms&var...
{"constraints": {
"constraint": [
{"constraint": {
"type": "variable",
"menu": [
{
"item": {
"values": "sst",
"content": "Sea Surface Temperature"
},
"type": "constraint",
"position": "lhs",
"name": "variable_platforms"
},
{
"item": [
{
"values": ">=",
"content": ">="
},
{
"values": ">",
"content": ">"
},
{
"values": "=",
"content": "="
},
{
"values": "!=",
"content": "!="
},
{
"values": "<",
"content": "<"
},
{
"values": "<=",
"content": "<="
}
],
"type": "constraint",
"position": "ops",
"name": "variable_platforms"
}
]
}},
{"constraint": {
"type": "text",
"menu": [
{
"item": {
"values": "country",
"content": "Country"
},
"type": "constraint",
"position": "lhs",
"name": "insitu_demo_2_CountryText"
},
{
"item": [
{
"values": "=",
"content": "="
},
{
"values": "!=",
"content": "!="
}
],
"type": "constraint",
"postion": "ops",
"name": "insitu_demo_2_CountryOps"
},
{
"item": [
{
"values": "AU",
"content": "Australia"
},
{
"values": "JP",
"content": "Japan"
},
{
"values": "US",
"content": "United States"
}
],
"type": "constraint",
"position": "rhs",
"name": "insitu_demo_2_Countries"
}
],
"name": "insitu_demo_2_Countries"
}},
{"constraint": {
"type": "text",
"menu": [
{
"item": {
"values": "type",
"content": "Platform"
},
"type": "constraint",
"position": "lhs",
"name": "insitu_demo_2_PlatformText"
},
{
"item": [
{
"values": "=",
"content": "="
},
{
"values": "!=",
"content": "!="
}
],
"type": "constraint",
"postion": "ops",
"name": "insitu_demo_2_PlatformOps"
},
{
"item": [
{
"values": "ARGO FLOAT",
"content": "ARGO float"
},
{
"values": "DRIFTING BUOY",
"content": "Drifting buoy"
},
{
"values": "MOORED BUOY",
"content": "Moored buoy"
},
{
"values": "SHIP",
"content": "Ship"
}
],
"type": "constraint",
"position": "rhs",
"name": "insitu_demo_2_Platforms"
}
],
"name": "insitu_demo_2_Platforms"
}}
],
"status": "ok",
"error": ""
}}