GIS Data Conversion Via C#

Convert GeoJSON, ESRI Shapefile SHX, TopoJSON, FIleGDB, GML, KML, MIF, OSM Data to build cross-platform .NET mapping applications.

 

To analyse spatial and geographic data, .NET GIS API facilitates for building solutions to capture, store, manage, manipulate, analyze and present all type of geographic data. It not only loads different vector and raster data formats but also renders to other formats with ease. Few of rendering scenarios such as GeoJSON to Shapefile , GeoJSON to topojson, GeoJSON to kml, Shapefile to GeoJSON and more. For any geographic information rendering application without requiring any additional tools or software, .NET GIS API has the capability to work with a number of geometrical features either simple or complex.

GeoJSON to Shapefile SHP Conversion

With just few lines of code, developers can convert GeoJSON data to Shapefile SHP file. API provides VectorLayer .Convert(source GeoJSON data file Path, GeoJson, destination Shapefile Path, Shapefile)

C# Code for GeoJSON to Shapefile Conversion
 

Convert Shapefile to GeoJSON

Process of converting Shapefile to GeoJSON is same as of the above one by using the VectorLayer and invoking the Convert method with relevant parameters.

C# Code for Converting Shapefile Data to GeoJSON
 

Convert KML to GeoJSON

By using the VectorLayer.Convert method with appropriate parameters, source KML file, KML Driver from Drivers class , GeoJSON file path and GeoJSON driver, devlopers can easily convert KML to GeoJSON data.

C# Code for KML to GeoJSON Conversion