- URL:https://<featurelayer-url>/convert3D
- Version Introduced:11.1
Description
The convert3D operation is used to convert small assets from one format to another. The assets must be uploaded previously by uploadAssets. Similar to queryAssets, the converted assets can be retrieved from the response (esriTransportTypeEmbedded) or as asset references (esriTransportTypeUrl).
Request parameters
Parameter | Details |
---|---|
transportType | Used to determine how the assets will be retrieved. The default value is esriTransportTypeUrl Values: esriTransportTypeUrl | esriTransportTypeEmbedded |
targetFormat | The format in which the converted assets should be returned in the response. Potential values: 3D_dae | 3D_dwg | 3D_fbx | 3D_glb | 3D_gltf | 3D_ifc | 3D_obj | 3D_shapebuffer | 3D_shapebufferg | 3D_usdc | 3D_usdz |
assets | An array of assets describing the 3D object that the client wants to convert to the specified targetFormat. Syntax: Example: |
f | The response format. The default response format is html. Values: html | json |
Example usage
The following is a sample request URL used to access the convert3D endpoint:
https://machine.domain.com/webadaptor/rest/services/City_Park_Assets/FeatureServer/0/convert3D
JSON Response syntax
{"assets": [<asset1>, <asset2>]}
JSON Response example
{
assets: [
{
"assetHash": "045ef29d382f1c8227bde3a25d37f7a62fe0d2259a3a14dd6486ee53c8faba18",
"contentType": "model/gltf-binary",
"assetName": "model.glb",
"assetURL": "https://machine.domain.com/webadapter/rest/services/ESRI3DO/FeatureServer/0/assets/045ef29d382f1c8227bde3a25d37f7a62fe0d2259a3a14dd6486ee53c8faba18"
}
]
}