DWG to Geojson Conversion processing only 10 shapes from Unit Layers

notescrew 51 Reputation points
2022-08-16T09:19:18.41+00:00

I am using AzureMaps API for DWG to GeoJson conversion, but after the conversion I am only getting 10 Shapes from Unit Layer in the result. Although DWG file has a lot more Shapes. What could be the reason for this?

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
836 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Clemens Schotte 356 Reputation points Microsoft Employee
    2022-08-17T15:56:02.013+00:00

    During the Conversion process, if there are any issues with the DWG package errors and warnings are provided in the response along with a diagnostic package to visualize and diagnose these issues. In case any issues are encountered with your DWG package, the Conversion operation status process as detailed here returns the location of the diagnostic package that can be downloaded by the caller to help them visualize and diagnose these issues.
    https://learn.microsoft.com/en-us/rest/api/maps/v2/conversion/convert?tabs=HTTP#debug-dwg-package-issues

    1 person found this answer helpful.

  2. IoTGirl 3,621 Reputation points Microsoft Employee Moderator
    2022-08-17T15:49:57.42+00:00

    Without the file it will be hard to know but I would guess that there is a problem at the 11th shape and the conversion stops. Can you validate the contents?


  3. notescrew 51 Reputation points
    2022-08-18T06:15:50.27+00:00

    I just re-visited the API(s) and found that dataset response is paginated and to retrieve all shapes, I would need to use next URL. By default it returns only 10 shapes per request. Thanks for your attention.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.