The "importtrajectories" web service imports a well deviation into the specified datasource.
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/trajectories/import with the POST method.
where
datasourcetype: type of a datasource, i.e. mongo, s3, etc.
datasource: unique id of a datasource
The following parameters are available:
importoptions : a JSON object representing import options. The following parameters are available:
runName: is the name of a well log
overwrite indicates whether to override an existing well table. If overwrite is false and a well table already exists then an error will be thrown. This is an optional parameter. The default is false.
usekb: indicates whether kelly bushing of each well must be used
deviationFormat: an XML descriptor to define the trajectory
deviationFormatId: a unique id of a XML descriptor to define the trajectory
file: a file containing a being imported well deviation. This is required parameter.
All row and column indices start at 1.
An example import is shown below (pass multipart/form-data as Content-Type):
importoptions:
{
"runName":"Survey",
"overwrite":true
}
deviationformat:
{
"crs": {
"id":"28351",
"content": {
"name":"GDA94 / MGA zone 51",
"type":"",
"subtype":"",
"descr":"",
"wellName":"",
"props":{},
"propsMetaData":[]
}
},
"epsgCode":"28351",
"towgs84Code":"unknown",
"depthUnit":"m",
"wellName":"Boreas-1",
"wellNameColumn":4,
"wellNameLine":2,
"isManualWellName":true,
"isFileName":false,
"isFromFile":false,
"isExistingWellName":true,
"isManualKb":false,
"isKbFromWellHead":false,
"kb":"21.80000000",
"kbRow":5,
"kbColumn":4,
"wellHeadDelimiter":"whitespace & tab",
"wellNameDelimiter":"whitespace & tab",
"kbDelimeter":"whitespace & tab",
"delimiter":"whitespace & tab",
"wellHeadXCoordLine":3,
"wellHeadXCoordColumn":5,
"isManualWellHeadXCoord":false,
"wellHeadXCoord":"424077.27700000",
"wellHeadYCoordLine":4,
"wellHeadYCoordColumn":5,
"isManualWellHeadYCoord":false,
"wellHeadYCoord":"8490107.52400000",
"isTvdMeasuredFromKB":false,
"noOfLinesToSkip":11,
"trajectoryType":"MD, TVD, X, Y",
"measuredDepthColumn":1,
"trueValueDepthColumn":5,
"xCoordinatesColumn":2,
"yCoordinatesColumn":3
}