The "createwellboregeometry" web service creates a geometry set for the well bore.
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/wellbores/{wellboreuniqueid}/wbgeometries with the POST method.
where
datasourcetype: type of a datasource, i.e. mongo, geofiles, s3, etc.
datasource: unique id of a datasource
wellboreuniqueid: a unique id of a well bore
The following parameters are available:
data: A JSON object representing the data to update. This is required parameter. It must include at least of the following:
name: specifies a new name for the being updated perforation set
sections: a JSON array representing geometry sections
Here is an example request body. This body has been formatted to improve readability
{
"data":{
"content":{
"name":"Andalusit-1 Casing data_Test-4",
"sections": [
{
"type": "casing",
"mdTop": {
"name": "mdTop",
"value": 0.0,
"units": "m"
},
"mdBottom": {
"name": "mdBottom",
"value": 66.0,
"units": "m"
},
"id": {
"name": "id",
"value": 738.0,
"units": "mm"
},
"od": {
"name": "od",
"value": 762.0,
"units": "mm\r"
},
"tvdTop": {
"name": "tvdTop",
"value": 0.0,
"units": "m"
},
"tvdBottom": {
"name": "tvdBottom",
"value": 66.0,
"units": "m"
}
},
{
"type": "casing",
"mdTop": {
"name": "mdTop",
"value": 0.0,
"units": "m"
},
"mdBottom": {
"name": "mdBottom",
"value": 1194.0,
"units": "m"
},
"id": {
"name": "id",
"value": 488.0,
"units": "mm"
},
"od": {
"name": "od",
"value": 508.0,
"units": "mm\r"
},
"tvdTop": {
"name": "tvdTop",
"value": 0.0,
"units": "m"
},
"tvdBottom": {
"name": "tvdBottom",
"value": 1194.0,
"units": "m"
}
},
{
"type": "casing",
"mdTop": {
"name": "mdTop",
"value": 1000.0,
"units": "m"
},
"mdBottom": {
"name": "mdBottom",
"value": 2339.0,
"units": "m"
},
"id": {
"name": "id",
"value": 323.73,
"units": "mm"
},
"od": {
"name": "od",
"value": 339.73,
"units": "mm\r"
},
"tvdTop": {
"name": "tvdTop",
"value": 1000.0,
"units": "m"
},
"tvdBottom": {
"name": "tvdBottom",
"value": 2339.0,
"units": "m"
}
},
{
"type": "casing",
"mdTop": {
"name": "mdTop",
"value": 2250.0,
"units": "m"
},
"mdBottom": {
"name": "mdBottom",
"value": 4386.0,
"units": "m"
},
"id": {
"name": "id",
"value": 231.78,
"units": "mm"
},
"od": {
"name": "od",
"value": 244.48,
"units": "mm\r"
},
"tvdTop": {
"name": "tvdTop",
"value": 2250.0,
"units": "m"
},
"tvdBottom": {
"name": "tvdBottom",
"value": 4386.0,
"units": "m"
}
}
]
}
}
}
Here is an example response. This response has been formatted to improve readability
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:CreateWellBoreGeometryJsonActor:FindWellBoreGeometryByUniqueIdFetcherResponse for FindWellBoreGeometryByUniqueIdRequest:FindWellBoreGeometryByUniqueIdRequest{klass=AbstractWellBoreGeometryFinder, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, uniqueId=fc5f6969-f983-47c6-9853-4cf62e302bdd, sourceType=mongo}"
},
"data": {
"id": "fc5f6969-f983-47c6-9853-4cf62e302bdd",
"content": {
"uid": "fc5f6969-f983-47c6-9853-4cf62e302bdd",
"name": "Andalusit-1 Casing data_Test-4",
"sections": []
},
"links": [
{
"rel": "self",
"relEntity": "v1/schema/int/wbgeometry",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/wbgeometries/fc5f6969-f983-47c6-9853-4cf62e302bdd",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": false
}
]
}
}
The output is the same as for the wellboregeometry service.
If the specified wellboreuniqueid doesn't match a valid well bore, no JSON response will be provided. The HTTP response will only show a "InvalidUniqueId" (error 404) in its headers.