- For POST https://us.atlas.microsoft.com/conversions?api-version=2.0&udid={udid}&outputOntology=facility-2.0&subscription-key={Your-Azure-Maps-Subscription-key}, you are using facility-2.0 ontology, you can refer to this documentation (select tab on drawing package 1.0) https://github.com/Azure-Samples/am-creator-indoor-data-examples/tree/master/Drawing%20Package%201.0, as the document suggested, you would pair with this sample package https://github.com/Azure-Samples/am-creator-indoor-data-examples/tree/master/Drawing%20Package%201.0 to try out.
- For POST https://us.atlas.microsoft.com/conversions?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=2023-03-01-preview&udid={udid}&dwgPackageVersion=2.0, you are using custom ontology, you can refer to this documentation (select tab on drawing package 2.0): https://learn.microsoft.com/en-us/azure/azure-maps/drawing-package-guide?pivots=drawing-package-v2, as the document suggested, you would use with this sample package https://github.com/Azure-Samples/am-creator-indoor-data-examples/tree/master/Drawing%20Package%202.0 to try out.
DWG File Conversion Issue for Creator Indoor Maps: Invalid Manifest Version Error
I tried to create a sample indoor map using files from the Microsoft documentation. https://github.com/Azure-Samples/am-creator-indoor-data-examples/tree/master/Drawing%20Package%202.0
I have followed the below Microsoft documentation to create data registry and to upload the drawing package into my Azure storage account and registered it in Azure Maps account.
https://learn.microsoft.com/en-us/azure/azure-maps/creator-indoor-maps
After successfully registering, I attempted to convert the DWG file using the udid. I obtained the operation ID by making a POST request to the following URL :
POST https://us.atlas.microsoft.com/conversions?api-version=2.0&udid={udid}&outputOntology=facility-2.0&subscription-key={Your-Azure-Maps-Subscription-key}
When attempting to retrieve the conversion ID, I encountered the following error:
{
"operationId": "",
"created": "",
"status": "Failed",
"error": {
"code": "dwgConversionProblem",
"details": [
{
"code": "failed",
"details": [
{
"code": "manifestError",
"message": "manifest.json has an invalid 'version'."
}
]
}
]
},
"properties": {}
}
I also attempted using the old URL but encountered the same error when making a POST request:
POST https://us.atlas.microsoft.com/conversions?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=2023-03-01-preview&udid={udid}&inputType=DWG&dwgPackageVersion=2.0
In manifest.json also version 2.0 is mentioned { "version": "2.0", "building Levels": { "dwgLayers": [ "GROS$" ]}}
In the Azure Maps Creator Onboarding Tool, https://azure.github.io/azure-maps-creator-onboarding-tool/ I successfully converted the DWG file provided in the updated Azure Maps documentation. The tool uploads the file, performs the conversion, and generates a dataset, along with providing the MapConfigurationId.
-
Yuqi Zhang 81 Reputation points Microsoft Employee
2024-07-24T18:17:27.22+00:00