An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Thank you for reaching out.
A .NET console application can write GeoJSON, but it still needs a Microsoft‑supported way to read each source file format.
From the formats mentioned, Microsoft provides a supported conversion path only for DWG files. DWG files can be converted by uploading them as a drawing package (ZIP containing DWG + manifest.json) to the Azure Maps Conversion service, where the converted data can then be queried and returned in GeoJSON format.
For the other formats listed:no
- IFC (BIM format) – Microsoft does not provide a built‑in .NET library or Azure service to convert IFC to GeoJSON.
- Horizon and similar domain‑specific geology formats – Not supported by Microsoft for GeoJSON conversion.
- LPKX / MPKX / LYRX / ATX / CPG – These are ArcGIS package, layer definition, or support files, not standalone GIS datasets. Microsoft does not provide a .NET API to read or convert these files directly to GeoJSON.
Because of this, a Microsoft‑only .NET console app cannot convert all these formats to GeoJSON. The only supported scenario using Microsoft technologies is DWG → GeoJSON via Azure Maps Conversion.
References:
- DWG to GeoJSON using Azure Maps Conversion : https://learn.microsoft.com/en-us/answers/questions/543740/how-we-can-convert-dwg-to-geojson-using-azuremaps
- Writing GeoJSON in .NET using Microsoft types (Azure.Core.GeoJson): https://learn.microsoft.com/en-us/dotnet/api/azure.core.geojson
- Azure Maps overview (Microsoft geospatial platform): https://learn.microsoft.com/en-us/azure/azure-maps/
Please let us know if you require any further assistance, we’re happy to help. If you found this information useful, kindly mark this as "Accept Answer". So that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.