convertTrajectory API returns NaN value for the input request.
convertTrajectory API , which internally calls the convert API and the error is thrown from the convert API , and as this is not handled , so the WGS coordinates for x and y are set “NaN” in the convertTrajectory Response.
Request: { "azimuthReference": "GN", "interpolate": false, "referencePoint": { "x": 400000, "y": 6500000, "z": 100 }, "unitZ": "osdu:reference-data--UnitOfMeasure:ft:", "unitMD": "osdu:reference-data--UnitOfMeasure:m:", "inputStations": [ { "md": 0, "inclination": 0, "azimuth": 20 }, { "md": 100, "inclination": 10, "azimuth": 40 } ], "trajectoryCRS": "osdu:reference-data--CoordinateReferenceSystem:Projected:EPSG::32066:", "inputKind": "MD_Incl_Azim", "method": "AzimuthalEquidistant" }
Response:
{ "trajectoryCRS": "{"authCode":{"auth":"EPSG","code":"32066"},"name":"NAD_1927_BLM_Zone_16N","type":"LBC","ver":"PE_10_9_1","wkt":"PROJCS[\"NAD_1927_BLM_Zone_16N\",GEOGCS[\"GCS_North_American_1927\",DATUM[\"D_North_American_1927\",SPHEROID[\"Clarke_1866\",6378206.4,294.9786982]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",1640416.666666667],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-87.0],PARAMETER[\"Scale_Factor\",0.9996],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Foot_US\",0.3048006096012192],AUTHORITY[\"EPSG\",32066]]"}", "unitXY": "{"abcd":{"a":0.0,"b":1200.0,"c":3937.0,"d":0.0},"symbol":"ft[US]","baseMeasurement":{"ancestry":"L","type":"UM"},"type":"UAD"}", "unitZ": "{"abcd":{"a":0.0,"b":0.3048,"c":1.0,"d":0.0},"symbol":"ft","baseMeasurement":{"ancestry":"L","type":"UM"},"type":"UAD"}", "unitDls": "{"scaleOffset":{"scale":5.72614583987641E-4,"offset":0.0},"symbol":"deg/100ft","baseMeasurement":{"ancestry":"Rotation_Per_Length","type":"UM"},"type":"USO"}", "stations": [ { "md": 0.0, "inclination": 0.0, "azimuthTN": 18.903042055778428, "azimuthGN": 20.0, "dxTN": 0.0, "dyTN": 0.0, "point": { "x": 121920.24384049278, "y": 1981203.9624078341, "z": 99.99999999999999 }, "wgs84Longitude": "NaN", "wgs84Latitude": "NaN", "dls": 0.0, "original": true, "dz": 0.0 }, { "md": 100.0, "inclination": 10.0, "azimuthTN": 38.90304205577843, "azimuthGN": 40.0, "dxTN": 17.934591286244686, "dyTN": 22.224168064134773, "point": { "x": 121925.84664895518, "y": 1981210.6395745277, "z": -226.42085631407443 }, "wgs84Longitude": "NaN", "wgs84Latitude": "NaN", "dls": 3.048000000000004, "original": true, "dz": 326.4208563140744 } ], "localCRS": "{"name":"Azimuthal Equidistant","type":"LBC","ver":"PE_10_9_1","wkt":"PROJCS[\"Azimuthal Equidistant Lng=-90.56722112;Lat=17.88719244\",GEOGCS[\"GCS_North_American_1927\",DATUM[\"D_North_American_1927\",SPHEROID[\"Clarke_1866\",6378206.4,294.9786982]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Modified Azimuthal_Equidistant\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-90.56722111685697],PARAMETER[\"Latitude_Of_Origin\",17.887192439357598],UNIT[\"Foot_US\",0.3048006096012192]]"}", "method": "AzimuthalEquidistant", "operationsApplied": [ "derived TN from GN azimuth by grid convergence 358.903042", "unitMD Factor value: 1.0 is used for computation of MD", "computed deflections via minimum curvature method", "computation method: AzimuthalEquidistant", "conversion from 'Azimuthal Equidistant' to 'GCS_North_American_1927'", "conversion from 'GCS_North_American_1927' to 'NAD_1927_BLM_Zone_16N'" ], "scaleConvergenceList": [ { "scalefactor": 1.001368, "convergence": -1.09696, "point": { "x": 121920.24384049278, "y": 1981203.9624078341, "z": 99.99999999999999 } }, { "scalefactor": 1.001368, "convergence": -1.09695, "point": { "x": 121925.84664895518, "y": 1981210.6395745277, "z": -226.42085631407443 } } ], "unitMD": "{"abcd":{"a":0.0,"b":1.0,"c":1.0,"d":0.0},"symbol":"m","baseMeasurement":{"ancestry":"L","type":"UM"},"type":"UAD"}", "inputKind": "MD_Incl_Azim" }