Converting KML (Keyhole Markup Language) files to SHP (Shapefile) format is a common task in GIS (Geographic Information Systems). KML files are often used to share geographic data via Google Earth, while SHP files are used in various GIS applications. In this blog post, we will understand the process of converting KML to SHP in C#.

Why Convert KML to SHP?

KML to SHP file conversion can be helpful for many reasone. The following are some of the benefits for the aforementioned conversion:

Compatibility: SHP files are widely supported by GIS software, making them a preferred format for geographic data exchange.

Performance: SHP files are optimized for spatial data operations, often resulting in better performance for large datasets.

Editing Capabilities: Many GIS tools provide extensive editing features for SHP files, allowing for more robust data manipulation.

KML to SHP Converter - C# API Installation

You can convert KML to SHP format by configuring the API in your environment. Run the following NuGet installation command to configure Conholdate.Total for .NET on your end:

PM> NuGet\Install-Package Conholdate.Total

Convert KML to SHP in C#

The steps below demonstrate how to convert a KML file to SHP format using C#:

  • Specify conversion settings using the ConversionOptions class.
  • Assigns Wgs84 spatial reference system.
  • Render the KML file to SHP format with the Convert method.

The sample code below shows how to convert KML to SHP in C#:

Free Evaluation License

You may request the free evaluation trial license by applying for the free temporary license. It is useful to test the API features to their full capacity without needing any payment method.


You can streamline your GIS data management process by converting KML to SHP file format. It ensures compatibility, performance, and editing capabilities for your geographic data. However, in case you have any ambiguities, please write to us at forum.


What is KML?

KML (Keyhole Markup Language) is an XML-based format used to represent geographic data in applications like Google Earth.

What is SHP?

SHP (Shapefile) is a popular geospatial vector data format for geographic information system (GIS) software.

How do I handle coordinate reference systems during the conversion?

The conversion provides support for spatial reference systems (SRS). You can set or transform the SRS during the conversion process to ensure the data aligns with your desired coordinate system.

Does it support other formats besides KML and SHP?

Yes, various formats are supported including GeoJSON, GPX, GML, and more. You can convert between these formats seamlessly using a similar approach.

See Also